vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

djbaxter 08-30-2010 09:38 PM

1. This add-on works for me with 4.06.

2. Since 4.04 , you can do insert the appropriate placeholder for this add-on into an appropriate location in postbit, similar to the instructuions given in the second link provided:

In the postbit template (or I guess postbit_legacy if that's what you're using), FIND at the end of the template:

Code:

{vb:raw template_hook.postbit_end}
ADD BEFORE:

Code:

<!-- ad after first post -->
<vb:if condition="$post['isfirstshown']">
<div align="center" style="padding: 10px;">
<!--@vbbanners:0@-->
<br/>
</div>
</vb:if>
<!-- end ad after first post -->

Change "<!--@vbbanners:0@-->" to the appropriate placeholder for your banners.

atlemacks 08-31-2010 08:41 PM

How do I get the banners to show? I am using 4.0.1 and nothing shows up no matter what position i put my banners...

djbaxter 08-31-2010 08:58 PM

Quote:

Originally Posted by atlemacks (Post 2092164)
How do I get the banners to show? I am using 4.0.1 and nothing shows up no matter what position i put my banners...

If you're using vBSEO, turn off "remove white space" as an option.

Check View Source from your browser on a page where you should be seeing the ad. Do you see a placeholder something like <!--@vbbanners:0@--> anywhere on the page?

inigo 08-31-2010 10:20 PM

I need more than 10 different banner locations, can be done?

djbaxter 08-31-2010 10:41 PM

Why on earth do you need more than 10 locations? You do realize you can put more than one banner per location, right? And that you can add the placeholder for one "ad location" to more than one template?

In real;ity, all you really need is one for each size banner you're using, e.g., vertical, small banner, sqaure, rectangle, etc.

inigo 09-01-2010 05:03 AM

Sorry for my english, I´ll try to explain my project, and why I think I need more locations.

I have 50 forum ids in my forum. I want to put different banners in each forum, so I think I need 50 different banner locations, didn´t I?

In each forum for example 6 banners, with the same banner code, but one banner code for each forum id, because in forum Id=1 it will be 6 banners showing (and 15 banner possibilities for example in that banner code), but in forum id=2 it will be other 6 banners (of 12 possibilities for example, but different than the 15 previous ones, so i´ll nedd other banner code),... and all the same for the 50 forum ids.

apart of this i`ll need other

So I need for example 50 banner locations for the forums, and about 10 more locations (for photo gallery, news peage cms, downloads, ...). So i´ll like about 75 different locations if it´s possible, or the way to add myself the number of locations I want.

Any help or suggestion would be apreciated,

Thanks in advance,

onehost 09-13-2010 03:20 AM

Is it possible to setup banners in-post? as if the banner is part of a post?
if so, I would like an ad to show like every 5 posts or so...

demo:
http://www.patientenfragen.net/en/vo...ome-t1810.html

y2ksw 09-13-2010 08:40 AM

Quote:

Originally Posted by onehost (Post 2097404)
Is it possible to setup banners in-post? as if the banner is part of a post?
if so, I would like an ad to show like every 5 posts or so...

demo:
http://www.patientenfragen.net/en/vo...ome-t1810.html

Yes sure. put a placeholder in the postbit template and every post will hold a banner, unless they are all used up :)

However, you presumably use vB4 and then you would use the vBulletin advertising for discussions, select the box to the right of the first/last post, and paste into the Banner HTML a placeholder, set eventually some criteria (which is ideally handled by vbulletin only) and save.

Nephalim 09-19-2010 11:52 PM

Hello. Really nice add-on. Can't wait to really make use of it. Right now I put the <!--@vbbanners:4@--> in the ad_thread_first_content template. copy and paste my google adsense code into the text area of that positions banner in the banner rotation system dropdown. And there's space now where it should be, but it does not show. I have the default VB4 style and custom VB skin. Niether will show my banner there. But I do have my banner working under the navbar. I just went thru all 60 pages here and didn't see help on this.

Thank you much! What did I do wrong? lol

adsense ad size is 200px X 200px

y2ksw 09-20-2010 05:06 AM

Quote:

Originally Posted by Nephalim (Post 2100733)
Hello. Really nice add-on. Can't wait to really make use of it. Right now I put the <!--@vbbanners:4@--> in the ad_thread_first_content template. copy and paste my google adsense code into the text area of that positions banner in the banner rotation system dropdown. And there's space now where it should be, but it does not show. I have the default VB4 style and custom VB skin. Niether will show my banner there. But I do have my banner working under the navbar. I just went thru all 60 pages here and didn't see help on this.

Thank you much! What did I do wrong? lol

adsense ad size is 200px X 200px

There are also some problems reported with Blogs. Probably it is related to caching, which in some way does not handle correctly banner replacements. It is also a version problem, since it has been working until 4.0.3. Maybe refreshing the CMS cache will solve the problem temporarily.


All times are GMT. The time now is 09:00 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.03161 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete