Need help including ads to phpBB 2.0.10

Discussion in 'Co-op Advertising Network' started by onestop, Dec 16, 2004.

  1. #1
    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
     
    onestop, Dec 16, 2004 IP
  2. Redleg

    Redleg Raider

    Messages:
    360
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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):
     
    Redleg, Dec 16, 2004 IP
  3. onestop

    onestop Well-Known Member

    Messages:
    534
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    138
    #3
    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.
     
    onestop, Dec 16, 2004 IP
  4. Redleg

    Redleg Raider

    Messages:
    360
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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..)
     
    Redleg, Dec 16, 2004 IP
  5. onestop

    onestop Well-Known Member

    Messages:
    534
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    138
    #5
    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.
     
    onestop, Dec 16, 2004 IP
  6. onestop

    onestop Well-Known Member

    Messages:
    534
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    138
    #6
    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 :)
     
    onestop, Dec 16, 2004 IP