How place html in first post ?

  • Thread starter Thread starter Deleted member 10469
  • Start date Start date
D

Deleted member 10469

Guest
Hello, how parsed a html code in firstpost please ?

Template: message
Render:
1dD85.jpg


html code placed in template message is not parsed :S

code:
Code:
        <xen:hook name="message_content" params="{xen:array 'message={$message}'}">
 
                    <!-- Z - Publicité droite premiers message -->
                        <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0 AND {$xenOptions.XenCrea_Ads_AddonActive} == 1 AND {$xenOptions.XenCrea_Ads_AdsForRegisterMember} == 0">
                            <div id="firstMessageRightBloc">
                                <div class="firstMessageRightBlocLabel">{$xenOptions.XenCrea_Ads_Title}</div>
                                <div class="firstMessageRightBlocAds">{$xenOptions.XenCrea_Ads_Script}</div>
                            </div>
 
                             <div class="messageContent messageContentFirstPostMinHeight">
                        <xen:else/>
                             <div class="messageContent">
                        </xen:if>
                    <!-- /Z -->

{$xenOptions.XenCrea_Ads_Script} = <b>test</b>

1dDfd.jpg


Thank.
 
Thank cclaerhout :)
Are there any other filters intéréssant to know ?
 
Many ^^
For the xen codes, see that post
For the xen codes helper, see that post
To make your own helpers, see that post (great tutorial)

If you use Javascript in template, this one is very useful: {xen:jsescape $variable} //it will escape the double quotes (")
If you want escape single quotes, see that post

If you notice the author of most of replies, you will now understand his surname "Probably knows the answer" ;)
 
Thank :)

If you notice the author of most of replies, you will now understand his surname "Probably knows the answer" ;)

I noticed even before buying XenForo, Jake is great for that ^^.
 
Back
Top Bottom