• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How place html in first post ?


Well-known member
Hello, how parsed a html code in firstpost please ?

Template: message

html code placed in template message is not parsed :S

        <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 class="messageContent messageContentFirstPostMinHeight">
                             <div class="messageContent">
                    <!-- /Z -->
{$xenOptions.XenCrea_Ads_Script} = <b>test</b>



Well-known member
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" ;)