how to use PhpAds in header?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • islandman
    New Member
    • Aug 2000
    • 19

    how to use PhpAds in header?

    How do I use this header fragment which is Php code calling PhpAds?

    ==============


    <table width="100%"><tr><td><img src=an image here></td>
    <td>
    <?php
    include ("../config.inc.php3");
    include ("../view.inc.php3");
    view("468x60");
    ?>
    </td>
    </tr></table>

    =============

    I tried the

    $header ="<table width="100%"><tr><td><img src=an image here></td>
    <td>
    <?php
    include ("../config.inc.php3");
    include ("../view.inc.php3");
    view("468x60");
    ?>
    </td>
    </tr></table>";
    ==================
    but it did not work... global.php3 error

    Same with
    =================

    $header ="$header ="<table width=\"100%\" align=\"center\"><tr><td><img src=\"an image here\"></td>
    <td>
    <?php
    include ("../config.inc.php3");
    include ("../view.inc.php3");
    view("468x60");
    ?>
    </td>
    </tr></table>";

    ==================

    Please advise via email
  • TechTalk
    Senior Member
    • Jul 2000
    • 769

    #2
    Please reply here as well....I too would like to know the proper way of doing the php thing in the header because I have yet to make it work

    Thanks
    ~Chris

    [Edited by TechTalk on 08-28-2000 at 01:23 AM]

    Comment

    • George L
      Former vBulletin Support
      • May 2000
      • 32996
      • 3.8.x

      #3
      same here...installed phpads and can't get it to work in the header template along with my html code in the header ... tried all of the above and no go ...
      :: Always Back Up Forum Database + Attachments BEFORE upgrading !
      :: Nginx SPDY SSL - World Flags Demo [video results]
      :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

      Comment

      • cyo
        Senior Member
        • Jul 2000
        • 451
        • 3.0.7

        #4
        It took me a while but i got it install by doing this
        Code:
        require("/home/domains/cyo/christianfourm/htdocs/ads/config.inc.php");
        require("/home/domains/cyo/christianfourm/htdocs/ads/view.inc.php");
        require("/home/domains/cyo/christianfourm/htdocs/ads/acl.inc.php");
        
        
        $id = view("468x60", 0, "_blank"); 
        $arr = array( array("!=" => $id));
        view("default", 0, "", 0, $arr);
        Change the require statments to where you keep your phpads scripts.

        default is for the keywords
        view 468 X 60 is the banner size. I am still trying to get it to work with text ads.

        Make sure you type in the height and width in phpads admin.

        Also make sure you go to change options and select yes for useadvheader if you want the banner on top. If you want the banner of bottom you need to turn useadvfooter to yes.

        Comment

        • islandman
          New Member
          • Aug 2000
          • 19

          #5
          Here&#039;s how I did it...

          By using phpAds' remote invocation (see phpAds documentation)

          No need to turn on the adv header option since it is basically an ordinary image call.

          Hope this helps.

          Anyway, if I can only figure out how http://www.EXTREMEFORUMS.com is able to display allof the latest threads, members on his homepage..

          Comment

          • George L
            Former vBulletin Support
            • May 2000
            • 32996
            • 3.8.x

            #6
            Re: Here&#039;s how I did it...

            Originally posted by islandman
            By using phpAds' remote invocation (see phpAds documentation)

            No need to turn on the adv header option since it is basically an ordinary image call.

            Hope this helps.
            well i can't seem to get the phpads html banners called using that only 468x60



            Anyway, if I can only figure out how http://www.EXTREMEFORUMS.com is able to display allof the latest threads, members on his homepage..

            check this thread at http://vbulletin.com/forum/showthread.php?threadid=2658 and my example at http://animeboards.net
            :: Always Back Up Forum Database + Attachments BEFORE upgrading !
            :: Nginx SPDY SSL - World Flags Demo [video results]
            :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...