KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones
Webtips
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,

Find

//
// Start initial var setup
//

Right below it, add

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

Find

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

Right below it, add:

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

Find

$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

Find

<!-- END topicrow -->

Right above it, add

{topicrow.AD_ROW}

save viewforum_body.tpl.

OK. Coffee time.

 

 

 

 

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

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