1. 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 ?

Discussion in 'XenForo Development Discussions' started by Zephyr, Oct 11, 2012.

  1. Zephyr

    Zephyr 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>


  2. cclaerhout

    cclaerhout Well-Known Member

    Use this xen code:
    {xen:raw $xenOptions.XenCrea_Ads_Script}
  3. Zephyr

    Zephyr Well-Known Member

    Thank cclaerhout :)
    Are there any other filters intéréssant to know ?
  4. cclaerhout

    cclaerhout 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" ;)
  5. Zephyr

    Zephyr Well-Known Member

    Thank :)

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

Share This Page