Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-01-2013, 11:13 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I'll give a shot, thanks.
Reply With Quote
  #12  
Old 11-04-2014, 06:38 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So guys a year has gone by and I'm still fighting with this. I've now moved on to this code but still no dice getting it to show.

ob_start();
include_once('scripts/125_adverts.php');
echo "<div align='center'>$bannerAd</div>";
$output .= ob_get_contents();
ob_end_clean();

Help!
Reply With Quote
  #13  
Old 11-04-2014, 07:11 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try adding "return $output;" at the end of that code?

Edit: ...assuming you're creating a forum block. If not, let us know where you're putting that code.
Reply With Quote
  #14  
Old 11-04-2014, 07:34 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do the images exist on your server at (example): http://domain.com/adimages/6-2013/CTGY:shirts_kids.jpg ?

Although the code is ugly, it should work just fine.
Reply With Quote
  #15  
Old 11-04-2014, 08:12 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes they do. And yep I'm putting it in forum block code. I know it's ugly code but if it ain't broke...haha. Well I guess it kinda is.

When I get home I'll try adding the "return output" code and let you know. Thanks for the reply.
Reply With Quote
  #16  
Old 11-04-2014, 08:20 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not install this banner mod instead? Its much easier to place your banners anywhere you want in the templates and you do not have a total headache of dealing with trying to parse PHP code correctly in the side bar. https://vborg.vbsupport.ru/showthrea...ghlight=banner That one best I've found and all you have to do is add the proper code in the area you want banners to be placed and then add the banners via your vb admincp.
Reply With Quote
  #17  
Old 11-05-2014, 12:14 AM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Did you try adding "return $output;" at the end of that code?

Edit: ...assuming you're creating a forum block. If not, let us know where you're putting that code.
Well when I tried adding that the page wouldn't even load!

Got this Firefox error..."The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression."

--------------- Added [DATE]1415155943[/DATE] at [TIME]1415155943[/TIME] ---------------

Quote:
Originally Posted by HM666 View Post
Why not install this banner mod instead? Its much easier to place your banners anywhere you want in the templates and you do not have a total headache of dealing with trying to parse PHP code correctly in the side bar. https://vborg.vbsupport.ru/showthrea...ghlight=banner That one best I've found and all you have to do is add the proper code in the area you want banners to be placed and then add the banners via your vb admincp.
Actually that banner rotator does work fine, I'm just gonna go with that.

Thanks a bunch for all the help and suggestion!
Reply With Quote
  #18  
Old 11-05-2014, 02:24 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VHLinks View Post
Well when I tried adding that the page wouldn't even load!

Got this Firefox error..."The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression."

--------------- Added [DATE]1415155943[/DATE] at [TIME]1415155943[/TIME] ---------------



Actually that banner rotator does work fine, I'm just gonna go with that.

Thanks a bunch for all the help and suggestion!
No problem, glad I could help.
Reply With Quote
Reply


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. The time now is 02:31 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.04043 seconds
  • Memory Usage 2,254KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete