vBadvanced Forums  
Go Back   vBadvanced Forums > Other > Chit Chat

Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-2004, 03:55 PM
Fess Fess is offline
Junior Member
 
Join Date: Mar 2004
Posts: 6
Unhappy Banner/Header Problem

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();
The post instructs to place $mybannerad in the position where you want the ads to show.......which leads to my problem.

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>
After attempting this, the banner rotation displays but a huge text error destroys my table:

Quote:
Warning: Unknown(): stream does not support seeking in /home/httpd/example/example.com/html/forum/global.php(385) : eval()'d code on line 8
Think its an error with the code in my phpinclude_start template. I am not sure what is causing that error, but it may has to do with my custom code in that template.

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();
Can someone show mercy and advise me on this harassing error an how to fix?

Thank You
FessB
Reply With Quote
  #2  
Old 04-16-2004, 04:53 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Banner/Header Problem

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.
Reply With Quote
  #3  
Old 04-16-2004, 08:03 PM
TexasOutdoors TexasOutdoors is offline
Senior Member
 
Join Date: Jan 2004
Location: South Texas
Posts: 278
Default Re: Banner/Header Problem

If all else fails, use the Javascript function to call the banners. I use it with no problems using PhpAdsNew.
__________________
TXO Hosting
TexasOutdoors Forums
Reply With Quote
  #4  
Old 04-17-2004, 12:10 AM
Fess Fess is offline
Junior Member
 
Join Date: Mar 2004
Posts: 6
Default Re: Banner/Header Problem

Brian....

Quote:
require("/full/path/to/your/banner.php");
require("http://www.example.com/phpAdsNew-2.0/banner.php");
Thanks, I'm aware of this, just changed it for the purpose of this forum post....

Texas...

Thanks for the suggestion, I read in the manual that this way is a little slower...

Regards
Fess
Reply With Quote
  #5  
Old 08-02-2004, 02:31 PM
03GTFL 03GTFL is offline
Member
 
Join Date: Apr 2004
Posts: 41
Default Re: Banner/Header Problem

How do you generate the code from PHPADS? im trying to get the code

Thanks
Reply With Quote
  #6  
Old 08-02-2004, 05:51 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Banner/Header Problem

Quote:
Originally Posted by 03GTFL
How do you generate the code from PHPADS? im trying to get the code

Thanks
Click "Direct Selection" choose "Remote Invocation for Java Script" then click "Generate"
Reply With Quote
  #7  
Old 08-02-2004, 08:40 PM
03GTFL 03GTFL is offline
Member
 
Join Date: Apr 2004
Posts: 41
Default Re: Banner/Header Problem

And that code will put random banners on my forums?
Reply With Quote
  #8  
Old 08-02-2004, 11:17 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Banner/Header Problem

Quote:
Originally Posted by 03GTFL
And that code will put random banners on my forums?
Yea if you have phpadsnew installed and have setup up mulitiple accounts with numerous banners.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:47 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.