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)

kiawah75 03-16-2010 12:51 PM

Quote:

Originally Posted by y2ksw (Post 1822648)
  1. right
  2. you will need to insert a placeholder in your templates, e.g. open ad_navbar_below, and insert: <div align="center"><!--@vbbanners:0@--></div><br /> in order to show all banners which belong to position 0.
  3. You are fine with the latest version.

I have two banners that I would like to place in rotation. I have placed them in position "0" in the ad_navbar_below section of the website. When I activate both of them they both show up at once rather than rotating them. I tried adding another <!--@vbbanners:0@--> in the style sheet based upon some other posts and that does not seem to work. Any suggestions would be appreciated. I am using 4.02 Patch 1. Thanks.

y2ksw 03-16-2010 02:17 PM

Quote:

Originally Posted by kiawah75 (Post 2004778)
I have two banners that I would like to place in rotation. I have placed them in position "0" in the ad_navbar_below section of the website. When I activate both of them they both show up at once rather than rotating them. I tried adding another <!--@vbbanners:0@--> in the style sheet based upon some other posts and that does not seem to work. Any suggestions would be appreciated. I am using 4.02 Patch 1. Thanks.

If you have only 2 banners in your database, of course they will never rotate, if you also show them both on a page :)

In order to make banners rotate, you should have more banners (with the same criteria) in your database than the highest number of banners you ever will show on a single page, unless you accept that in certain moments or pages no rotating is fine.

This product chooses from a number of banners, which fit the rules to show up, shuffles and then picks one for each placeholder. Thus, if there are 2 banners and 2 placeholders, all of them are shown.

kiawah75 03-16-2010 02:57 PM

Quote:

Originally Posted by y2ksw (Post 2004820)
If you have only 2 banners in your database, of course they will never rotate, if you also show them both on a page :)

In order to make banners rotate, you should have more banners (with the same criteria) in your database than the highest number of banners you ever will show on a single page, unless you accept that in certain moments or pages no rotating is fine.

This product chooses from a number of banners, which fit the rules to show up, shuffles and then picks one for each placeholder. Thus, if there are 2 banners and 2 placeholders, all of them are shown.

Sorry in advance for the follow up question - I am sure I am missing the obvious. I want to have two different banners rotate in the same location and have them each show up 50% of the time - is that not possible? For example each time the page is refreshed the new banner would show up. Thanks in advance for your help.

Videx 03-16-2010 03:53 PM

Quote:

Originally Posted by kiawah75 (Post 2004834)
I want to have two different banners rotate in the same location and have them each show up 50% of the time - is that not possible?

Yes, that is what this mod does by default. Stop messing with it and that's what will happen.

Note that at least one other mod (chatbox) cuts off the 'navbar below' ad location.

y2ksw 03-16-2010 05:59 PM

Quote:

Originally Posted by kiawah75 (Post 2004834)
Sorry in advance for the follow up question - I am sure I am missing the obvious. I want to have two different banners rotate in the same location and have them each show up 50% of the time - is that not possible? For example each time the page is refreshed the new banner would show up. Thanks in advance for your help.

Just use 1 placeholder on your pages and the 2 banners in your database will alternate each other with about 50% of the time.

While I am at it, if you have for example 1 unique banner and 2 identical banners in your database, you may move the weight to one side. The unique banner will get 33% and the other two 66%, which looks like, as if one banner appears more often.

kiawah75 03-16-2010 06:15 PM

Quote:

Originally Posted by y2ksw (Post 2004931)
Just use 1 placeholder on your pages and the 2 banners in your database will alternate each other with about 50% of the time.

While I am at it, if you have for example 1 unique banner and 2 identical banners in your database, you may move the weight to one side. The unique banner will get 33% and the other two 66%, which looks like, as if one banner appears more often.

Thanks for your help, I am still having the problem. I am going to reinstall the mod and hopefully that will clear up the problem.

rEd86 03-16-2010 10:12 PM

Greetings.

It would appear that only users that are primary users of the "Administrators" group have access to this tool. Users that are in the Administrators group, but as an "Additional Usergroups" don't have access. Is this a bug or a feature? :)

Thanks!

--Ed

HRCHOSTING 03-17-2010 01:58 AM

Banner not showing on content.php page (main cms page)

Have I dont something wrong on the install or is this feature not available?

dadams982 03-17-2010 03:50 PM

I watched your video and this seem quite easy. Anyone know where to edit a template to put a place holder to place two of them side by side between forum topics on forumhome?

Hope that made sense.

Overbr 03-19-2010 01:56 PM

Hello ! Thanks your help-me ! (sorry my englhish OK)

Look, this, i?m inserting in POSTBIT_LEGACY an the codig.

Quote:


<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
<div class="postbit">
<h3 class="posthead">&nbsp; &nbsp;Publicidade</h3>
<div class="postbody"><br />
</div>
<!--@vbbanners:0@-->
<br />
<br />
</div>
</vb:if>
but when done this way he does not show the banners. Please, if you forgot to do some procedure? I'm sorry if already been answered in almost 50 pages.
I read up to 40 and could not do anything that would help me.
I use VB 4.0.2 OK.
Thanks in advance for any help and tip possible. I really need to make this mod work


All times are GMT. The time now is 02:33 AM.

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.03089 seconds
  • Memory Usage 1,752KB
  • 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
  • (7)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