Ok, i just setup a vBulletin tech forum I also have ads working on phpbb and html/php files site http://help.supportcave.com/index.php? Trying to see which bullentin board i like better for the vBulletin i can only get the index page to show the ads? and at the top i would like to move them to the bottom my phpinclude_start: shows include ('../ad_network.php'); for step 4 added this $ad_network[0],$ad_network[1],$ad_network[2],$ad_network[3],$ad_network[4] to SHOWTHREAD_SHOWPOST, printthread and footer even tried only $ad_network[0] any ideas??
Shawn yes i did i coulnt find <div class="pagebody"> <?php so i added it at the top (im not very good php ) here is the code <?php include ('../ad_network.php'); echo $ad_network[0]; echo $ad_network[1]; echo $ad_network[2]; echo $ad_network[3]; echo $ad_network[4];
yup $ad_network[0] tried it all over the place in the file footer [Edit] [Revert] [View Original] this is the correct template right? even tried the header must have messed something else up. ill keep checking
There isn't a whole lot TO mess up though... you are sure the include code is in the phpinclude_start template?
ya messed that step up added it to the _edn but now need to fix the ad placement http://help.supportcave.com/index.php? thanks shawn guess i need to read better
You could run $ad_network[0] in the header, $ad_network[1] in the footer, etc. if you want to break up the locations, but you should only use each variable (0-4) once across all templates.
hey shawn on the archive page http://help.supportcave.com/archive/index.php/ i get this Warning: main(../ad_network.php): failed to open stream: No such file or directory in /home/jason/public_html/help/archive/index.php on line 2 Warning: main(): Failed opening '../ad_network.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jason/public_html/help/archive/index.php on line 2 u helped me with my phpbb by giving me this include ($phpbb_root_path . 'ad_network.php'); i tried include ($help_root_path . 'ad_network.php'); include ($help_root_path . '../ad_network.php'); include ($ vBulletin_root_path . '../ad_network.php'); cant get it working .. as per your instructions i before "http://forums.digitalpoint.com/showthread.php?t=8146" moded the ad_network.php to include.. Put the ad_network files on the root directory. Hard code the ad_network_ads.txt path within the ad_network.php file by making it: /home/jason/public_html/ad_network_ads.txt plz help
The only instructions you should follow are the normal setup instructions for vBulletin 3.x. It looks like you are mixing and matching all sorts of unrelated instructions (including phpBB).
Shawn, sorry gave to much info made it confusing this is the page http://help.supportcave.com/archive/index.php <?php include ('../ad_network.php'); echo $ad_network[0]; error Warning: main(../ad_network.php): failed to open stream: No such file or directory in /home/jason/public_html/help/archive/index.php on line 2 Warning: main(): Failed opening '../ad_network.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jason/public_html/help/archive/index.php on line 2 Warning: Cannot modify header information - headers already sent by (output started at /home/jason/public_html/help/archive/index.php:2) in /home/jason/public_html/help/includes/functions.php on line 2809
Your PHP code is wrong (and in the wrong place within the file). See step 5 from the setup: http://www.digitalpoint.com/tools/ad-network/setup.php?type=6