Thread: Miscellaneous Hacks - Rotating Banner System
View Single Post
  #1957  
Old 06-13-2012, 10:17 PM
dog-tag's Avatar
dog-tag dog-tag is offline
 
Join Date: Jan 2012
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

I have tried many different ways.. here is one example of using HTML with images from an external site -

Code:
<center><a href="http://www.afas.org/"><img src="http://imgur.com/osde8.jpg" /></a></CENTER>
It's not a case of what have I not done, it's more a case of what I haven't.

I'm focusing on this side of the problem, but I have tried them all (my site caches fine BTW)

Quote:
In order to catch all possible errors, please make sure, your placeholder in the options looks
like <!--@vbbanners:%d@--> or like @vbbanners:%d@ (if you have vbSEO or other software
which cleans HTML). It may have any other combination of characters, as long as a %d
appears inside. %d is replaced with numbers between 0 and 9 at runtime.

vbSEO or HTML cleaning software users:
vBulletin Options - Rotating Banner System Options - Nth Placeholder: @vbbanners:%d@

All other users:
vBulletin Options - Rotating Banner System Options - Nth Placeholder: <!--@vbbanners:%d@-->

(2)
Now put a:
vbSEO or HTML cleaning software users:
<div align="center">@vbbanners:0@</div>
<div align="center">@vbbanners:1@</div>

All other users:
<div align="center"><!--@vbbanners:0@--></div>
<div align="center"><!--@vbbanners:1@--></div>
in the template: ad_navbar_below


(3)
and enable the default banners, moving the second banner to position 1. Both banners should
appear, one below the other.
---
On a standard installation, this combination of settings works 100% guaranteed on 4.x. I
have set it up once again from scratch just to be sure. If it doesn't work for you, I'll install a
test board with these settings on, in order to demonstrate the facts.

Possible issues:

- You are using a style which does not implement ad_navbar_below, or which comments out
that template. In this case, no banner appears.

- Your system caches pages (e.g. Apache mod_cache). Unless you refresh the page
explicitly, the banners don't seem to rotate or won't even appear. 24 / 25

- Your vBulletin Options - Rotating Banner System Options - Nth Placeholder is setup like:
<!--@vbbanners:0@--> or @vbbanners:0@. In this case, only banners at location 0 appear.
You should have set: <!--@vbbanners:%d@--> or @vbbanners:%d@ instead.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01115 seconds
  • Memory Usage 1,771KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete