PHPBB3 Advertisement Management AD Stlye

PHPBB Community Forum - Remove ViewForum

As I carry on adding modifications to the PHPBB3 forum I am working on I got around to adding the Advertisement Management addon (

Anyway, out of the box this is a great mod, but I wasn’t happy with the way some of the adverts were displayed, especially the one’s that go under the first post and every post on the forum. Out of the box, the adverts are just displayed in the background and the first and second posts are pushed out, now I can be a perfectionist and liked to have to advert look as if it was posted.

Here’s how to do the above

Open: Styles/{YOUR_THEME}/template/viewtopic_body.html

If you have already installed the mod, find: {ADS_5} and replace with the following:

<!-- IF ADS_5 --><!-- IF postrow.S_FIRST_ROW -->
<div id="p{postrow.POST_ID}">
<div style="padding-top: <span class=;">5px;"><center>{ADS_5}</center></div>
<dl id="profile{postrow.POST_ID}"><dt><strong>Advertisement</strong></dt></dl>
<div><a title="{L_BACK_TO_TOP}" href="#wrap">{L_BACK_TO_TOP}</a></div>
<!-- ENDIF -->

Now open Styles/{YOUR_THEME}/theme/content.css
Find: /* Poster profile block

Before add:

/* Advertisement Management block
.advertisementmanagement {
 margin: 5px 0 10px 0;
 min-height: 50px;
 color: #666666;
 border-left: 1px solid #FFFFFF;
 width: 22%;
 float: right;
 display: inline;
.pm .advertisementmanagement {
 border-left: 1px solid #DDDDDD;

.advertisementmanagement dd, .advertisementmanagement dt {
 line-height: 1.2em;
 margin-left: 8px;

And thats it, you will now have a banner that looks like the image above

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
PHPBB Community Forum - Remove ViewForum

PHPBB: Remove Viewtopic/Viewforum From Title

Next Post

Sound Deadening Removal

Related Posts