How to add Advertisements on PHPBB3 Forums

2 replies
Hey there!
I searched about a tutorial like that here but no results where found.
I got this guide/tutorial from a website and was useful to me so i am sharing it.
This is the source: win-a-game.eu/forum/viewtopic.php?f=21&t=37

How to put Advertisements in the first post of topic in PHPBB3 Forums.

Here's a simple guide on just how to do that.

1. Go to Administration Control Panel. Click on STYLES, then
on Themes and then click on Edit, near the prosilver template.
At the bottom paste:

a body {
max-width: 1024px;
margin: 0px auto;
}
ul.forums1 {
background-color: #cddeee;
}
li.row1 {
border-top: 1px solid #FFFFFF;
}
dd.mali span {
display: block;
padding-left: 10px;
}
dd.veliki span {
display: block;
padding-left: 10px;
}


2. Go to Administration Control Panel. Click on STYLES, then
on Templates, and then click on Edit, near the prosilver
template

3. Choose viewtopic_body.html Template file.

4. In template editor find
<div class="content">{postrow.MESSAGE}</div>

4.1. Before <div class="content">{postrow.MESSAGE}</div> insert
code:

<!-- IF postrow.S_FIRST_ROW -->
Your advertisement code here
<br><br>
<!-- ENDIF -->

4.2. After <div class="content">{postrow.MESSAGE}</div> insert
code:

<!-- IF postrow.S_FIRST_ROW -->
<br><br>
Your advertisement code here
<!-- ENDIF -->


How to put Advertisements in viewforum section of PHPbb3

1. Go to your Administration Control Panel. Click on STYLES,
then on Themes and then click on Edit, near the prosilver
template. On bottom paste:

a body {
max-width: 1024px;
margin: 0px auto;
}
ul.forums1 {
background-color: #cddeee;
}
li.row1 {
border-top: 1px solid #FFFFFF;
}
dd.mali span {
display: block;
padding-left: 10px;
}
dd.veliki span {
display: block;
padding-left: 10px;
}


2. Go to your Administration Control Panel. Click on STYLES,
then on Templates, and then click on Edit, near the prosilver
template.

3. Choose viewforum_body.html Template file.

4. In template editor find
<!-- INCLUDE forumlist_body.html -->

4.1. Before <!-- INCLUDE forumlist_body.html --> insert code:

<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt><a href="your forums url here/" title="Advertisements"
target="_blank">USTP</a></dt>
</dl>
</li>
</ul>
<ul class="topiclist forums1">
<li class="row1">
<dl class="icon1">
<dd class="mali"><span>
Your advertisement code here
</span></dd>
<dd class="veliki"><span>
Your advertisement code here
</span></dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span></div></div>

4.2. If you want to add Ads on bottom paste same code
after <!-- INCLUDE forumlist_body.html -->

5. In template editor find
<!-- IF topicrow.S_FIRST_ROW or not
topicrow.S_TOPIC_TYPE_SWITCH -->
and after that paste same code

5.1. In template editor find
<!-- IF topicrow.S_LAST_ROW --> Leave

</ul>
<span class="corners-bottom"><span></span></span></div>
</div>

and after that, just before <!-- ENDIF --> paste same code.

How to put Advertisements in viewtopic section of PHPbb3

1. Go to your Administration Control Panel. Click on STYLES,
then on Themes and then click on Edit, near the prosilver
template. On bottom paste:

a body {
max-width: 1024px;
margin: 0px auto;
}
ul.forums1 {
background-color: #cddeee;
}
li.row1 {
border-top: 1px solid #FFFFFF;
}
dd.mali span {
display: block;
padding-left: 10px;
}
dd.veliki span {
display: block;
padding-left: 10px;
}


2. Go to your Administration Control Panel. Click on STYLES,
then on Templates, and then click on Edit, near the prosilver
template

3. Choose viewtopic_body.html Template file.

4. In template editor find
<!-- BEGIN postrow -->

4.1. Before <!-- BEGIN postrow --> insert code:

<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl class="icon">
<dt><a href="your forums url here/" title="Advertisement"
target="_blank">USTP</a></dt>
</dl>
</li>
</ul>
<ul class="topiclist forums1">
<li class="row1">
<dl class="icon1">
<dd class="mali"><span>
Your advertisement code here
</span></dd>
<dd class="veliki"><span>
Your advertisement code here
</span></dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span></div></div>

4.2. If you want to add Ads on bottom paste the same
code after <!-- END postrow -->
#add #advertisements #forums #phpbb3 #win-a-game.eu
  • Profile picture of the author Artmin
    I can't find the STYLES at the Administration Control Panel
    {{ DiscussionBoard.errors[5172169].message }}
    • Profile picture of the author SeeSharp
      Originally Posted by Artmin View Post

      I can't find the STYLES at the Administration Control Panel

      His tutorial is for the phpBB3, what version of phpBB do you have?
      {{ DiscussionBoard.errors[5172236].message }}

Trending Topics