Announcement

Collapse
No announcement yet.

PHP Includes template help...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Includes template help...

    Hello again
    Im trying to add phpads and I sql get errors after I add the required stuff in my VB phpinclude template... This is what I have now:

    if (!isset($mainfile)){
    include("../vbp_includes.php");
    }

    and i need to add this to it:

    require("phpads/phpadsnew.inc.php");
    $ad1 = view_raw("top","_window");
    $ad2 = view_raw("bottom","_window");

    If i just paste it in i get a ton of sql errors and the portal won't load.. How do I add both to the phpincludes template??

    Oh btw phpads works fine if I remove the portal stuff and of course the portal works if there is no banner stuff... They just dont work together...

    Thanks in advance
    Andrew

  • #2
    Re: PHP Includes template help...

    Originally posted by andrew67
    Oh btw phpads works fine if I remove the portal stuff and of course the portal works if there is no banner stuff... They just dont work together...
    ah ha.... a conflict!

    what is the error you are getting?

    lastly... this prolly isn't something we could help you with since it isn't part of vB.

    Comment


    • #3
      Jake's right. This is hacking and belongs over at vbulletin.org.
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment


      • #4
        put this in you phpinclude:

        $Banner= "/path/to/your/ads/";
        include("$Banner" . "phpadsnew.inc.php");
        $banner1=view_raw("forum",0,"_blank","",1);


        I use "forum" keyword to only display banner on my forum that has "forum" keywords in them. This way I can have more control of what banners will appear on my forum. If you don't need to use keywords, just leave this variable blank like this ""


        Then put this in your header template where you want the banner to appear:

        $banner1[html]

        It will print the banner.
        'beta tester'

        Comment


        • #5
          Cool, thanks champ works a treat... umm one more question how can I make it have 2 rotations display? as in something like this:

          $Banner= "/path/to/your/ads/";
          include("$Banner" . "phpadsnew.inc.php");
          $banner1=view_raw("bottom",0,"_blank","",1);
          $banner2=view_raw("top",0,"_blank","",1);

          cause the above give me a sql error... Thanks again and triple that if you can help again

          Comment

          Loading...
          Working...
          X