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:

Twisted Shifter 10-25-2008 11:55 PM

Can anyone tell me where I might find a "forumlist" I have looked all over the styles and templates with no luck. I want to put an Ad in the middle of the page between 2 forum sections.

vividbreeze 10-26-2008 02:31 AM

Why doesnt show the Clickout stats??

Twisted Shifter 10-26-2008 02:58 AM

you need to check the box that says "count ad clicks"

Apolo. 10-26-2008 03:07 AM

Quote:

Originally Posted by Twisted Shifter (Post 1652839)
you need to check the box that says "count ad clicks"

I believe the plug-in doesn't count the clicks for Flash-type banners?

Thank you.

vividbreeze 10-26-2008 03:40 AM

I did check the box.

It only shows impressions, never clickouts - do I have to buy the plugin?

y2ksw 10-26-2008 09:02 AM

Quote:

Originally Posted by Apolo. (Post 1652843)
I believe the plug-in doesn't count the clicks for Flash-type banners?

Thank you.

Quote:

Originally Posted by vividbreeze (Post 1652861)
I did check the box.

It only shows impressions, never clickouts - do I have to buy the plugin?

The click checks apply for images only. Scripts won't work since it is not possible to wrap arbitrary scripts in a box and call the wrapper without creating a lot of problems, both to browsers and sources.

The plugin is for free, but priority support.

Apolo. 10-26-2008 06:29 PM

Hi Giovanni,

When I clic on Rotating Banner System - Options, all I get to the right is an empty page.

Which should be the contents of that page?

Thank you.

Twisted Shifter 10-26-2008 10:37 PM

Can the code be put some place that will show an ad between say forum groups 5-6?

y2ksw 10-27-2008 03:00 PM

Quote:

Originally Posted by Apolo. (Post 1653287)
Hi Giovanni,

When I clic on Rotating Banner System - Options, all I get to the right is an empty page.

Which should be the contents of that page?

Thank you.

How empty is it (white page)? You should get the vBulletin Options listed, with specific options for the banners. If this doesn't work for some reason, please try to re-upload the files which come with the product, making sure they are replaced/uploaded correctly (as notified in the help).

However it is more likely something is wrong with your board, since the options are loaded from the database and have no specifically associated file, except for standard vBulletin scripts of course.

wAnBoA 10-27-2008 04:58 PM

I'm using this mod. It's awesome.
Now i have one problem.
Is there a way to have another set of rotating banners for another theme?

y2ksw 10-27-2008 10:20 PM

Quote:

Originally Posted by wAnBoA (Post 1653915)
I'm using this mod. It's awesome.
Now i have one problem.
Is there a way to have another set of rotating banners for another theme?

If your different theme is assigned to different forums, you may create a banner set which is shown only on those.

Otherwise, you may use the horizontal banners for one theme and the vertical ones for another. Of course, you will not be able to have horizontal and vertical banners, but only one type.

y2ksw 10-27-2008 10:20 PM

PS: Would you mind to click installed? ;)

raznaran 10-28-2008 03:03 AM

I don't know what I am doing wrong. Everything seems to work. I get a rectangular border where the banner is supposed to be.

This is what I am using to code the picture. It seems like it should work:

<img src="/images/trollspread2.gif" width="580" height="215" />

The images directory I am referring to is at the same level as /forums.

Any thoughts?

Cheers,
Richard

Gigio755 10-28-2008 09:00 AM

Quote:

Originally Posted by Apolo. (Post 1653287)
Hi Giovanni,

When I clic on Rotating Banner System - Options, all I get to the right is an empty page.

Which should be the contents of that page?

Thank you.

me too.

i have the same exact problem with the Options page in Rotating Banner System (vbulletin 3.7.3 pl1)

i don't understand what can i do to solve this problem :(

y2ksw 10-28-2008 12:39 PM

Quote:

Originally Posted by raznaran (Post 1654261)
I don't know what I am doing wrong. Everything seems to work. I get a rectangular border where the banner is supposed to be.

This is what I am using to code the picture. It seems like it should work:

<img src="/images/trollspread2.gif" width="580" height="215" />

The images directory I am referring to is at the same level as /forums.

Any thoughts?

Cheers,
Richard

Place in fields:OR
  • Name: Banner name
  • URL: leave empty
  • Image: leave empty
  • Text:
    <a href="URL" target="_blank"><img src="images/trollspread2.gif" width="580" height="215" border="0" alt="Tooltip/title"/></a>
If you want click tracking, you must use the first solution.

For images like in your example, the first solution is always reccomended. Use the second format only for banners which can't be expressed as a simple picture, e.g. Google AdSense scripts, Flash animations, Streaming video or similar.

y2ksw 10-28-2008 12:40 PM

Quote:

Originally Posted by Gigio755 (Post 1654381)
me too.

i have the same exact problem with the Options page in Rotating Banner System (vbulletin 3.7.3 pl1)

i don't understand what can i do to solve this problem :(

How empty is the page? White?

If you go into the vbulletin Options list and access the options from there, do they show up?

Do you have Settings permissions (admin permissions) ... ? Just guessing.

raznaran 10-28-2008 01:35 PM

Thank you. Thank you. I was obviously confused. Appreciate you getting me straightened out.

I am using the program to rotate two banners. It doesn't always rotate. When I reload the page to test it, it only changes every other time. Occasionally it will do it every reload.

Don't know if that is expected behavior. Might matter if I was using paid ads though.

y2ksw 10-28-2008 02:42 PM

Quote:

Originally Posted by raznaran (Post 1654512)
Thank you. Thank you. I was obviously confused. Appreciate you getting me straightened out.

I am using the program to rotate two banners. It doesn't always rotate. When I reload the page to test it, it only changes every other time. Occasionally it will do it every reload.

Don't know if that is expected behavior. Might matter if I was using paid ads though.

It is choosing the banners randomly from the available, and the overall distribution is pretty even. Over long time, you will see it yourself from the impression count of two or more banners registered in the same moment. :)

Apolo. 10-28-2008 07:07 PM

Hi,

In my case:

Quote:

Originally Posted by y2ksw (Post 1654472)
How empty is the page? White?

No, it is not white. It is blue, like the admin interface, but just blank, no info displayed there.


Quote:

Originally Posted by y2ksw (Post 1654472)
If you go into the vbulletin Options list and access the options from there, do they show up?

Yes, that way it works.


Quote:

Originally Posted by y2ksw (Post 1654472)
Do you have Settings permissions (admin permissions) ... ? Just guessing.

Yes, indeed.

And yes, I already try to re-upload the files, twice.

Thank you.

raznaran 10-28-2008 10:05 PM

Gotcha. All is well. Thanks again.

y2ksw 10-29-2008 10:08 AM

Quote:

Originally Posted by Apolo. (Post 1654751)
No, it is not white. It is blue, like the admin interface, but just blank, no info displayed there.

If you are logged to the AdminCP, and paste these URLs, do the options look up?
  • options.php?do=options&amp;dogroup=rbs_options
  • options.php?do=options&dogroup=rbs_options
The only Idea I get here, the options script does not recognize the query (weird).

Apolo. 10-29-2008 11:40 AM

Hi Giovanni,

The first one displays the vBulletin Options.

The second one displays the Rotating Banner System Options.

In both cases, the lateral menu to the left is missing.

Thank you.

y2ksw 10-29-2008 01:39 PM

1 Attachment(s)
Quote:

Originally Posted by Apolo. (Post 1655259)
Hi Giovanni,

The first one displays the vBulletin Options.

The second one displays the Rotating Banner System Options.

In both cases, the lateral menu to the left is missing.

Thank you.

Ok let's try this attachment ... it replaces the XML file in [forumhome]/includes/xml/

Thanks :)

Apolo. 10-29-2008 02:51 PM

Hi Giovanni,

Should I upload that file via FTP or should I import it via the /admincp

?

:)

y2ksw 10-29-2008 03:36 PM

Quote:

Originally Posted by Apolo. (Post 1655374)
Hi Giovanni,

Should I upload that file via FTP or should I import it via the /admincp

?

:)

Obviously via FTP :)

fodvapor 10-29-2008 03:46 PM

Sweet....cool mod !

Apolo. 10-30-2008 12:19 AM

Quote:

Originally Posted by y2ksw (Post 1655302)
Ok let's try this attachment ... it replaces the XML file in [forumhome]/includes/xml/

No, it didn't work.

Lucky me I did a backup first.

When I uploaded that file and enter the /admincp interface, the menu to the left was broken.

Instead of the of the option vBSEO, it was displaying these weird characters:

*[]*

And the Rotating Banner System was not showing up anywhere, it was missing.

Regards,

jgalante 10-30-2008 06:21 PM

Nevermind

elrafei 10-30-2008 08:27 PM

great mod thank you!

y2ksw 10-30-2008 11:24 PM

Quote:

Originally Posted by Apolo. (Post 1655695)
No, it didn't work.

Lucky me I did a backup first.

When I uploaded that file and enter the /admincp interface, the menu to the left was broken.

Instead of the of the option vBSEO, it was displaying these weird characters:

*[]*

And the Rotating Banner System was not showing up anywhere, it was missing.

Regards,

I'm sure you are making something wrong. If you replace the cpnav_rbs.xml file, nothing can go wrong with vbSEO!

Well anyway, if the plugin works and just the options from the menu aren't, you can use the options from the vBulletin Options list instead. I'm out of options, sorry ;)


All times are GMT. The time now is 08:19 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.04322 seconds
  • Memory Usage 1,839KB
  • 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
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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