Original Author: angelside
Original Thread: http://startrekguide.com/forum/f27t1512 ... _post.html
This is [How To] Add ads in your viewtopic_body.html page.
Create a new file and save as ./styles/prosilver/template/viewtopic_ads.html
OPEN NEW DOCUMENT AND PAST IN:
- Código: Seleccionar todos
<div class="post bg3">
<div class="inner"><span class="corners-top"><span></span></span>
<dl class="postbody">
<br>
<div class="content">
- YOUR ADS GO HERE -
</div>
</dl>
<dl class="postprofile">
<dd style="text-align: center;">
<b class="postauthor"> - YOUR ADS NAME GOES HERE - </b>
<br><br>
- YOUR ADS AVATAR GOES HERE -
</dd>
</dl>
<span class="corners-bottom"><span></span></span></div>
</div>
<hr class="divider" />
OU ESTE
- Código: Seleccionar todos
<!-- IF not S_HIDE_ADS -->
<div class="post bg3">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="postbody"><br /><br />
<center><a href="{PHPBB_ROOT_PHAT}/XXXXXXXXXX.php"><strong><font color="black"; size="2">Como colocar Publicidade no MEU-SITE.com</font></strong></a></center>
<div class="content">
<!-- Begin RandomBanners 728 X 90 -->
<center><script language="JavaScript" src="{PHPBB_ROOT_PATH}/O-MEU-BANNER-ou-GOOGLE-ADSENSE-Code-BANNER.js"></script></center>
<!-- End RandomBanners -->
</div>
</div>
<dl class="postprofile">
<dt>
<a href="{PHPBB_ROOT_PATH}/LINK.php"><img src="{PHPBB_ROOT_PATH}/images/IMAGE-do-LINK.png" align="center" width="" height="" border="0" name="submit" alt="Donate for PayPal"></a>
</dt>
</dl>
<div class="back2top"><a href="#wrap" class="top" title="{L_BACK_TO_TOP}">{L_BACK_TO_TOP}</a></div>
<span class="corners-bottom"><span></span></span></div>
</div>
<hr class="divider" />
<!-- ENDIF -->
SAVE AS ./styles/prosilver/template/viewtopic_ads.html
Open ./styles/prosilver/template/viewtopic_body.html
FIND:
- Código: Seleccionar todos
<hr class="divider" />
<!-- END postrow -->
REPLACE WITH: (Assim aparece após o 1º post e no final se o tópico tiver mais de 5 comentários)
- Código: Seleccionar todos
<hr class="divider" />
<!-- IF postrow.S_FIRST_ROW or postrow.S_ROW_COUNT > 5 and postrow.S_LAST_ROW --><!-- INCLUDE viewtopic_ads.html --><!-- ENDIF -->
<!-- END postrow -->
OU
REPLACE WITH: (Assim aparece apenas após o 1º post)
- Código: Seleccionar todos
<!-- IF postrow.S_FIRST_ROW --><!-- INCLUDE viewtopic_ads.html --><!-- ENDIF -->
CLOSE AND SAVE.
![Bom :bom:](./images/smilies/up.gif)