vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Header S.O.S. (https://vborg.vbsupport.ru/showthread.php?t=88969)

FessB 04-16-2004 06:39 PM

Header S.O.S.
 
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 please advise me on this harassing error? :confused:

Thank You
FessB

Jolten 04-16-2004 08:00 PM

Why do you need 3 table cells? Couldn't you use one and add colspan="3" to it?

Tony G 04-16-2004 11:45 PM

Moving to design/coding help - this forum isn't for support.

FessB 04-17-2004 03:12 AM

Quote:

Why do you need 3 table cells? Couldn't you use one and add colspan="3" to it?
Scott, you think this will solve my issue? I don' think the problem is with the table..... :rolleyes:

Thanks
Fess


All times are GMT. The time now is 11:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02739 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete