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)

jeffinj 10-17-2008 10:33 PM

I like this hack. Its really useful. Thanks y2ksw.

SpiderFive 10-18-2008 03:32 PM

Quote:

Originally Posted by y2ksw (Post 1645086)
The new version should fix it though ... the conflicting function is renamed everywhere in the product.

Sorry but this do not fix the problem, testec with version 2.0.6
2.0.3 works fine, great hack


Fatal Error

Quote:

Fatal error: Cannot redeclare rbs_url_sanity2() (previously declared in my site /forum/includes/functions.php(5586) : eval()'d code:302) in my site /forum/includes/functions.php(5586) : eval()'d code on line 320

y2ksw 10-18-2008 11:26 PM

Quote:

Originally Posted by SpiderFive (Post 1647723)
Sorry but this do not fix the problem, testec with version 2.0.6
2.0.3 works fine, great hack


Fatal Error

Well, the only remaining point is that at some place vbCMS or vBulletin load all the plugins two times.

If you edit the plugin, you may wrap the function with the following:

if(!function_exists('rbs_url_sanity2'))
{
// place the rbs_url_sanity2 function here
}

However it is a workaround for a problem which should not exist - if a software loads two times the board for each session, something is going really wrong ;)

Automaton 10-21-2008 02:50 AM

If we upload the updated version of this, will we lose our current data?
Will we have to re-enter all of our banner from scratch?

viper357 10-21-2008 09:22 AM

Quote:

Originally Posted by Automaton (Post 1649420)
If we upload the updated version of this, will we lose our current data?
Will we have to re-enter all of our banner from scratch?

You won't lose anything, I just upgraded and all my info is still there, just follow the instructions and you'll be fine.

UltraSTYLE 10-22-2008 08:23 PM

Hi,

This script is excellent.
I install it on vb 3.7.3 with no issues.

the only question I have is related to problem with Photopost Classifieds integration. I see that someone else had the same issue, and I understand that main VB engine is in root while PP Classifieds is in mydomain.com/classifieds directory.

is there any way to use script instead of string @vbbanners@ ?
Maybe point it out to main VB engine to read banners?

if not ....

is there a way to set condition so if main VB engine is detected it will show banners, if not it will show nothing.

I'm not a programmer so I'm not sure what it is possible or not.
Any help is appreciated ;)

BeastPower 10-23-2008 09:26 AM

Works great. Thanks.

y2ksw 10-23-2008 10:35 AM

Quote:

Originally Posted by UltraSTYLE (Post 1650704)
Hi,

This script is excellent.
I install it on vb 3.7.3 with no issues.

the only question I have is related to problem with Photopost Classifieds integration. I see that someone else had the same issue, and I understand that main VB engine is in root while PP Classifieds is in mydomain.com/classifieds directory.

is there any way to use script instead of string @vbbanners@ ?
Maybe point it out to main VB engine to read banners?

if not ....

is there a way to set condition so if main VB engine is detected it will show banners, if not it will show nothing.

I'm not a programmer so I'm not sure what it is possible or not.
Any help is appreciated ;)

If you use different placeholders, for example a HTML comment (replace default both in your templates and options):

<!--banner-->

then the banner is inserted only when the vbulletin engine is active, or it remains a little comment (invisible to browsers) in your pages ;)

UltraSTYLE 10-23-2008 04:38 PM

works great :up:

thank you

Twisted Shifter 10-25-2008 04:36 PM

Took me a little to figure it out, not that its hard, I am new to this forum thing. I am a diesel mechanic and drag racer!

This hack rocks! I recommend it to anyone wanting to put add on a website. 2 :up::up:


All times are GMT. The time now is 11:32 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.02696 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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