Topic: how to create or add div on viewforum?

Hy punbb
how to create div like thishttps://s31.postimg.org/xb0rxcyx7/2016_07_30_063300.png
please your help big_smile

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

2 (edited by PanBB.Ru 2016-07-30 06:09)

Re: how to create or add div on viewforum?

Look how it

Pan Output Info - вывод рекламных блоков на форуме

Re: how to create or add div on viewforum?

yes thxx u for fast reply sir, for now im still learn your code sir big_smile
Thxx again for knowledge this :*

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

Re: how to create or add div on viewforum?

or you need to insert a div is editing the file itself viewforum.php ?

Re: how to create or add div on viewforum?

yes on one file only, ext make me confused T.T

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

6 (edited by PanBB.Ru 2016-08-06 09:57)

Re: how to create or add div on viewforum?

After hook vf_row_pre_display
Add

if($forum_page['item_count'] == '5')
{
?>
        <div class="main-item<?php echo $forum_page['item_style'] ?>" >
                <span>Some Div Here</span>
        </div>
<?php
}

Re: how to create or add div on viewforum?

Problem solved
this what my problem hhee
http://i.giphy.com/3o7TKsQxJqOTRQ4NZS.gif
sorry my english is BAD for speak in missunderstood before
Thank you so much for helping Mr.Panbb.ru
big_smile

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

8

Re: how to create or add div on viewforum?

I also need such a feature. can not in settings with forums to create a new forum and it is an empty html or php field. I would like to create a new forum itself field with link to a blank url

9 (edited by PanBB.Ru 2016-09-05 15:38)

Re: how to create or add div on viewforum?

After hook vf_row_pre_display
Add code:

if($forum_page['item_count'] == '5')
{
?>
<div id="topic26163" class="main-item odd main-first-item posted sticky">
            <span class="icon posted sticky"><!-- --></span>
            <div class="item-subject">
                <h3 class="hn"><span class="item-num">1</span> <span class="posted-mark">·</span> <span class="item-status"><em class="sticky">Sticky</em>:</span> <a href="http://punbb.informer.com/forums/topic/26163/list-of-all-extensions-in-this-forum/">List of all extensions in this forum</a></h3>
                <p><span class="item-starter">by <cite>Trace</cite></span></p>
            </div>
            <ul class="item-info">
                <li class="info-replies"><strong>10</strong> <span class="label">replies</span></li>
                <li class="info-views"><strong>20,250</strong> <span class="label">views</span></li>
                <li class="info-lastpost"><span class="label">Last post</span> <strong><a href="http://punbb.informer.com/forums/post/154632/#p154632">2015-06-01 02:20</a></strong> <cite>by PanBB.Ru</cite></li>
            </ul>
        </div>
<?php
}

And edit