I've included below code to page_tail.php just above exit include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK' => $ad_network[0])); $template->assign_vars(array('AD_NETWORK2' => $ad_network[1])); $template->assign_vars(array('AD_NETWORK3' => $ad_network[2])); $template->assign_vars(array('AD_NETWORK4' => $ad_network[3])); $template->assign_vars(array('AD_NETWORK5' => $ad_network[4])); Code (markup): And below code to overall_footer.tpl just before </body> <p align="center"><basefont size="1">{AD_NETWORK}{AD_NETWORK2}{AD_NETWORK3}{AD_NETWORK4}{AD_NETWORK5}</p> Code (markup): I've uploaded ad_network_php and ad_network_ads.txt nad changed ad_network_txt mod to 777. It doesn't work. I only have a mod (able2know) which shows .html URL's if a visitor is not logged in, and session id's are cleaned up. What am I doing wrong? Thanks in advance
Try and change it to this: include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK' => $ad_network[0])); unset ($ad_network); include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK2' => $ad_network[0])); unset ($ad_network); include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK3' => $ad_network[0])); unset ($ad_network); include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK4' => $ad_network[0])); unset ($ad_network); include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK5' => $ad_network[0])); unset ($ad_network); Code (markup):
I just found out what I did wrong. I've used vBulletin code instead of phpBB. It's fixed now. Thanks for your reply though.
No problem.. You should also upgrade your forum to 2.0.11 by the way.. (there's a couple of very serious security issues with 2.0.10..)
It works now. After adding coop ads to my new site, I've decided to add it on one of my popular sites, and it works on the forums. This site is only 4 months old and I've added the ads only on forums, and got 27,000 weight I am happy now.
Thanks Redleg for reminding the upgrade. It's a big hassle since I've some mods and template changes, but I'll do it this week