How can I add banners after categories in main page in Phpbb?
I tried in forumlist_body.html, viewforum_body.html and viewtopic_body.html. But I never see a difference. I use phpbb 3.1.
its my style in admin panel. I used DVGFX theme but it inheritanced from prosilver.
Thanks.
The file to change is forumlist_body.html
Here are the original lines 11 to 27
<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW or forumrow.S_NO_CAT -->
<div class="forabg">
<div class="inner">
<ul class="topiclist">
<li class="header">
<!-- EVENT forumlist_body_category_header_row_prepend -->
<dl class="icon">
<dt><div class="list-inner"><!-- IF forumrow.S_IS_CAT --><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a><!-- ELSE -->{L_FORUM}<!-- ENDIF --></div></dt>
<dd class="topics">{L_TOPICS}</dd>
<dd class="posts">{L_POSTS}</dd>
<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
</dl>
<!-- EVENT forumlist_body_category_header_row_append -->
</li>
</ul>
<ul class="topiclist forums">
<!-- ENDIF -->
You have to prepend something like this :
<!-- IF forumrow.S_IS_CAT -->
add your ADS here
<!-- ENDIF -->
But the best way is to overload the forumlist_body_category_header_before
event. So your code should be :
<!-- IF forumrow.S_IS_CAT -->
<a href="site2.com">
<img alt="" height="80" src="site1.com/reklam/ads.jpg"; width="1000">
</a>
<!-- ENDIF -->
<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW or forumrow.S_NO_CAT -->
<div class="forabg">
<div class="inner">
<ul class="topiclist">
<li class="header">
<!-- EVENT forumlist_body_category_header_row_prepend -->
<dl class="icon">
<dt><div class="list-inner"><!-- IF forumrow.S_IS_CAT --><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a><!-- ELSE -->{L_FORUM}<!-- ENDIF --></div></dt>
<dd class="topics">{L_TOPICS}</dd>
<dd class="posts">{L_POSTS}</dd>
<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
</dl>
<!-- EVENT forumlist_body_category_header_row_append -->
</li>
</ul>
<ul class="topiclist forums">
<!-- ENDIF -->
This tips will help you during dev : Check that in PCA
> General
> Server configuration
> Load Settings
> General options
> Recompile stale style components
is set to Yes . So you don't have to reload cache after each update