I hope this is an easy one

Discussion in 'Co-op Advertising Network' started by bloodwrath, Jan 28, 2005.

  1. #1
    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??
     
    bloodwrath, Jan 28, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Did you modify your index.php file by chance?
     
    digitalpoint, Jan 28, 2005 IP
  3. bloodwrath

    bloodwrath Active Member

    Messages:
    1,364
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Shawn yes i did
    i coulnt find
    <div class="pagebody">
    <?php
    so i added it at the top
    (im not very good php :p )
    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];
     
    bloodwrath, Jan 28, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    You do not need to edit the index.php (only the one within your archive folder).
     
    digitalpoint, Jan 28, 2005 IP
  5. bloodwrath

    bloodwrath Active Member

    Messages:
    1,364
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #5
    removed the code in the index.php
    but still no ads?

    added the code to the archive index.php
     
    bloodwrath, Jan 28, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    You sure you added the $ad_network[0] variable to the footer template?
     
    digitalpoint, Jan 28, 2005 IP
  7. bloodwrath

    bloodwrath Active Member

    Messages:
    1,364
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #7
    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
     
    bloodwrath, Jan 28, 2005 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    There isn't a whole lot TO mess up though... you are sure the include code is in the phpinclude_start template?
     
    digitalpoint, Jan 28, 2005 IP
  9. bloodwrath

    bloodwrath Active Member

    Messages:
    1,364
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #9
    bloodwrath, Jan 28, 2005 IP
  10. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #10
    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.
     
    digitalpoint, Jan 28, 2005 IP
  11. bloodwrath

    bloodwrath Active Member

    Messages:
    1,364
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #11
    yup working on that now
    and then need to add my google ads...
     
    bloodwrath, Jan 28, 2005 IP
  12. bloodwrath

    bloodwrath Active Member

    Messages:
    1,364
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #12
    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
     
    bloodwrath, Jan 28, 2005 IP
  13. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #13
    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).
     
    digitalpoint, Jan 28, 2005 IP
  14. bloodwrath

    bloodwrath Active Member

    Messages:
    1,364
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #14
    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
     
    bloodwrath, Jan 28, 2005 IP
  15. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #15
    digitalpoint, Jan 28, 2005 IP
  16. bloodwrath

    bloodwrath Active Member

    Messages:
    1,364
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #16
    Thanks shawn, i couldnt find that on the index page till now
     
    bloodwrath, Jan 28, 2005 IP