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)

attroll 07-01-2011 03:56 PM

1 Attachment(s)
Quote:

Originally Posted by djbaxter (Post 2215497)
:confused:

I cannot even imagine how you managed to get that to happen. Can you post a screen shot?

Sure. Here is the screen shot.

y2ksw 07-01-2011 04:20 PM

Quote:

Originally Posted by attroll (Post 2215489)
Let me make sure I understand this correctly.

If I have ten banners created for for "position 0" and I have them all enabled. Then those 10 banners will rotate constantly?

If that is the case it is not working because the banners all show up in "position 0" at the same time.

Assumed you have 1 placeholder for each page, (almost) each page view will show a different one out of those 10 banners. The function shuffles the available banners and casually picks one. The casualty is pretty even. If you have more location 0 placeholders on the same page, the function picks more banners in the same way.

There is however no such "constantly in-place rotating", unless you will use the unsupported add-on. The standard behaviour is 1 banner each page view.

y2ksw 07-01-2011 04:23 PM

Quote:

Originally Posted by foudu1030 (Post 2212928)
Hi,
I do upload to Root (rbs_iframe.php) ?
It's only file ?
Tahnks :)

Please see post n. 989 for more about this file ;)

djbaxter 07-01-2011 04:25 PM

Quote:

Originally Posted by attroll (Post 2215502)
Sure. Here is the screen shot.

:confused: I only see one banner in that screen shot.

Videx 07-01-2011 04:58 PM

Quote:

Originally Posted by djbaxter (Post 2215512)
:confused: I only see one banner in that screen shot.

Me too, but I think it's your fault for asking for a screenshot and not a link. Except he's not a noob so he really should have known better.

attroll 07-01-2011 08:26 PM

There is another banner under the Jacks R Better banner. It looks like text but it is a banner.

attroll 07-01-2011 08:31 PM

Quote:

Originally Posted by y2ksw (Post 2215507)
Assumed you have 1 placeholder for each page, (almost) each page view will show a different one out of those 10 banners. The function shuffles the available banners and casually picks one. The casualty is pretty even. If you have more location 0 placeholders on the same page, the function picks more banners in the same way.

There is however no such "constantly in-place rotating", unless you will use the unsupported add-on. The standard behaviour is 1 banner each page view.

Here is the code I have in the template ad_navbar_below.
PHP Code:

<div align="center">@vbbanners:0@</div

If I user the following code in the ad_navbar_below template and I also have 10 banners for location 0. Then shouldn't it rotate between all 10 banners and show one at a time?

demo7up 07-03-2011 11:58 PM

this is awesome!!!!! Installed

y2ksw 07-04-2011 07:42 AM

Quote:

Originally Posted by attroll (Post 2215618)
Here is the code I have in the template ad_navbar_below.
PHP Code:

<div align="center">@vbbanners:0@</div

If I user the following code in the ad_navbar_below template and I also have 10 banners for location 0. Then shouldn't it rotate between all 10 banners and show one at a time?

It shows one banner at each time. Every time you refresh or reload a page with this template, another banner out of 10 is shown. It works like any other HTML with dynamic content.

attroll 07-05-2011 05:59 PM

Quote:

Originally Posted by y2ksw (Post 2216541)
It shows one banner at each time. Every time you refresh or reload a page with this template, another banner out of 10 is shown. It works like any other HTML with dynamic content.

I found my problem and it is working now. Than you all for the help.


All times are GMT. The time now is 04:11 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.03477 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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