Added.... [ <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[0]; ?>]|[ <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[1]; ?>] to the overall_footer.tpl file in phpBB bulletin board. No adverts showing. Have added: AddType application/x-httpd-php .php .htm .htm .tpl .html to .htaccess Any suggestions please... Thanks
If im not mistaking no need to add that in the footer.tpl ,you ll need to add in your footer just this for example , {AD_NETWORK}::{AD_NETWORK2}::{AD_NETWORK3}::{AD_NETWORK4}::{AD_NETWORK5} ,then search in your root/includes/ for the file page_tail.php, add the code for example, include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK' => $ad_network[0])); , right there, in front of the line $template->pparse('overall_footer'); Follow the setup instructions carefully step by step and you ll do well
You will need to add in the page_tail.php a line of code for each ad you like to display, take the example from above, then it would look like this. include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK' => $ad_network[0])); include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK2' => $ad_network[2])); include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK3' => $ad_network[3])); include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK4' => $ad_network[4])); include ($phpbb_root_path . 'ad_network.php'); $template->assign_vars(array('AD_NETWORK5' => $ad_network[5])); include ($phpbb_root_path . 'ad_network.php'); That works for me..