KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones
Insert advertisments between forum list in phpBB?

The following code is used to insert one AD code into your phpBB view forum list.

Open viewforum.php in the main phpBB directory,


// Start initial var setup

Right below it, add

$myadtext = <<<EOM
< tr><td colspan=6 align=center>
Your ads script goes here
< /td>
< /tr> EOM;


for($i = 0; $i < $total_topics; $i++)

Right below it, add:

if ($i==0) {
$adrow = $myadtext;
} else {
$adrow = "";


$template->assign_block_vars('topicrow', array(
'ROW_COLOR' => $row_color,

Right below it add:

'AD_ROW' => $adrow,

save viewforum.php.


Modify viewforum_body.tpl

viewforum_body.tpl locates at templates/subSilver/. Open this file


<!-- END topicrow -->

Right above it, add


save viewforum_body.tpl.

OK. Coffee time.





Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © All rights reserved(new). Privacy|Copyright
designed by

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer



html template download, html download,download forum,coupon,deal web hosting,web host java download,html download, java,html,download