Login  Register

Re: Can I Add More Adsense Units to Nabble?

Posted by Pedro on Jul 30, 2012; 9:06pm
URL: https://support.nabble.com/Can-I-Add-More-Adsense-Units-to-Nabble-tp7435096p7580921.html

1 - override your classic_message_cell macro, like this:
<override_macro name="classic_message_cell" requires="node">
    <n.pending_notice/>
    <n.updated_notice/>
    <n.reply_notice/>
    <n.message_text/> 
</override_macro> 
2 - override your classic_row macro, change the condition2 like this:
<override_macro name="classic_row" requires="node_list">
    <n.if.has_small_avatar>
        <then.current_node.classic_row_with_small_avatar/>
        <else.current_node.classic_row_with_big_avatar/>
    </n.if.has_small_avatar>
    <n.if.is_last_element>
        <then.current_node.mark_as_visited/>
    </n.if.is_last_element>
    <n.if>
   <condition.both>
       <condition1.not.is_blog_topic/>
       <condition2>
           <n.int. i="[n.current_index/]">
               <n.is_less_than i="3"/>
           </n.int.>
       </condition2>      
   </condition.both>
   <then>
       <n.show_ad location="blog_topic" class="shaded-bg-color rounded" style="margin:0 0 1em;padding:.5em"/>
   </then>    
</n.if>        
</override_macro>
My test forum.