1 (edited by kudataz 2016-08-21 18:02)

Topic: how to display in firstpage only?

how to add div on viewtopic & only in first page & after firstpost div?

here i try but not work T__T

        <hook id="vt_row_pre_display"><![CDATA[    
                if (($cur_topic['first_post_id'] == $cur_post['id']).$forum_page['item_count'] == 2)    
                    echo 'abc';                            
        ]]></hook>

please your help punbb ^^http://i.giphy.com/lKXEBR8m1jWso.gif

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

2 (edited by PanBB.Ru 2016-08-21 19:28)

Re: how to display in firstpage only?

Add after hook vt_row_pre_display

if($forum_page['page'] == '1' && $forum_page['item_count'] == '2')
{
    echo 'I am AdSense';
}

3 (edited by kudataz 2016-08-22 07:30)

Re: how to display in firstpage only?

WHHHHHHHYYYYYYY ur so smart then im stupid T___T
im try once then work fine..
how can u write code so easily? please teach meeeee ..

BTW Thank you so much for helping..

sorry my BAD english T___T
Have a nice day >.<
(^____^)v