• 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 ?

Zephyr

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

Template: message
Render:


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>



Thank.
 

cclaerhout

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