![]() |
|
#1
|
|||
|
|||
|
Hello,
I'm in need of some scripting help perhaps. I have just installed & configured the latest version of phpadsnew on my server. I have read this post:http://www.vbulletin.com/forum/showt...anner+rotation and placed this in my phpinclude_start: Code:
ob_start();
require("/full/path/to/your/banner.php");
$mybannerad = ob_get_contents();
ob_end_clean();
I need to place the $mybannerad in a 3 celled table. I tried this: Code:
<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="5%"><img src="$stylevar[imgdir_misc]/test_air_header_rs_02.jpg" width="16" height="60" alt="" /></td> <td width="90%">$mybannerad</td> <td width="5%"><img src="$stylevar[imgdir_misc]/test_air_header_rs_03.jpg" width="43" height="60" alt="" /></td> </tr> </table> Quote:
Here is exactly everything in my phpinclude_start template. Code:
// Example of how to include a seperate file:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
ob_start();
require("http://www.example.com/phpAdsNew-2.0/banner.php");
$mybannerad = ob_get_contents();
ob_end_clean();
Thank You FessB |
|
#2
|
||||
|
||||
|
We can't really provide support here for non-vBa products. I'll move this to the Chit Chat forum though incase somebody else here that uses the product knows what the problem is.
I'm not sure if you changed the paths and such for the post, but if what you posted is the exact code you have in your templates then I can tell you right off the bat there are a couple of problems. require("/full/path/to/your/banner.php"); require("http://www.example.com/phpAdsNew-2.0/banner.php"); Those should both be changed to reflect the locations on your server. |
|
#3
|
|||
|
|||
|
If all else fails, use the Javascript function to call the banners. I use it with no problems using PhpAdsNew.
|
|
#4
|
|||
|
|||
|
Brian....
Quote:
Texas... Thanks for the suggestion, I read in the manual that this way is a little slower... Regards Fess |
|
#5
|
|||
|
|||
|
How do you generate the code from PHPADS? im trying to get the code
Thanks |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
And that code will put random banners on my forums?
|
|
#8
|
||||
|
||||
|
Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|