multiple ads not showing in phpBB

Discussion in 'Co-op Advertising Network' started by giorgioarmani, Jan 2, 2005.

  1. #1
    I have the following in my overall_footer.tpl:

    Visit also:
    {AD_NETWORK} | {AD_NETWORK1} | {AD_NETWORK2} | {AD_NETWORK3} | {AD_NETWORK4}
    PHP:
    But it only shows the first ad.... Any suggestions? Has the weight now been calculated with one ad or with all five?
     
    giorgioarmani, Jan 2, 2005 IP
  2. crazyhorse

    crazyhorse Peon

    Messages:
    1,137
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you edit your page_tail as well. YOur weight is calculated on bases of the number of ads showing on the page you have entered in your account settings.
     
    crazyhorse, Jan 2, 2005 IP
  3. giorgioarmani

    giorgioarmani Well-Known Member

    Messages:
    2,634
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Thanks.. I found the error now.. I forgot to edit the unique names in the page_tail

    
    include ($phpbb_root_path . 'ad_network.php');
    $template->assign_vars(array('AD_NETWORK' => $ad_network[0]));
    $template->assign_vars(array('AD_NETWORK1' => $ad_network[1]));
    $template->assign_vars(array('AD_NETWORK2' => $ad_network[2]));
    $template->assign_vars(array('AD_NETWORK3' => $ad_network[3]));
    $template->assign_vars(array('AD_NETWORK4' => $ad_network[4]));
    
    PHP:
    Now it all works with the above code
     
    giorgioarmani, Jan 2, 2005 IP