Topic: how to create or add div on viewforum?
Hy punbb
how to create div like this
please your help
Have a nice day >.<
(^____^)v
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.4 additions → how to create or add div on viewforum?
Hy punbb
how to create div like this
please your help
yes thxx u for fast reply sir, for now im still learn your code sir
Thxx again for knowledge this :*
or you need to insert a div is editing the file itself viewforum.php ?
yes on one file only, ext make me confused T.T
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
}
Problem solved
this what my problem hhee
sorry my english is BAD for speak in missunderstood before
Thank you so much for helping Mr.Panbb.ru
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
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
PunBB Forums → PunBB 1.4 additions → how to create or add div on viewforum?
Powered by PunBB, supported by Informer Technologies, Inc.