Announcement

Collapse
No announcement yet.

PHP Includes template help...

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

  • andrew67
    replied
    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

    Leave a comment:


  • Mitrofan
    replied
    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.

    Leave a comment:


  • Steve Machol
    replied
    Jake's right. This is hacking and belongs over at vbulletin.org.

    Leave a comment:


  • Jake Bunce
    replied
    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.

    Leave a comment:


  • andrew67
    started a topic PHP Includes template help...

    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
Loading...
Working...
X