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)

Flyte 04-23-2010 08:31 PM

We had this mod working fine with 4.0.2
We upgraded to 4.0.3 and now when enabled our CMS crashes and we are getting the following error message:
Fatal error: Call to undefined function rbs_url_sanity() in /home/content/92/5987292/html/mx/forum/includes/functions.php(6811) : eval()'d code on line 62

Please help....thanks!

djbaxter 04-23-2010 11:03 PM

Quote:

Originally Posted by Flyte (Post 2026167)
We had this mod working fine with 4.0.2
We upgraded to 4.0.3 and now when enabled our CMS crashes and we are getting the following error message:
Fatal error: Call to undefined function rbs_url_sanity() in /home/content/92/5987292/html/mx/forum/includes/functions.php(6811) : eval()'d code on line 62

Please help....thanks!

It's working fine in 4.03 for me. However, I currently have the CMS disabled - it's possible that's the problem. See if the error goes away if you disable CMS (as a way of tracking down where the error is occurring).

Also check:

1. that all files for this add-on still exist on your server - I'd recommend you just re-upload everything to be sure

2. that an add-on installed later is not conflicting with this one

Flyte 04-23-2010 11:50 PM

Okay, I will check that and report back to you....Thank you for your timely response.

mobe00 04-24-2010 11:19 AM

i cant get this mod to work..no ads shows up . all the settings done as instructions is told ..i add this code to below_navbar template

<!--@vbbanners:0@-->

i have two adds which is set to position 0. The url to the images is correct. but nothing happens...what can be wrong ?
start date is from yesterday and end date is in july on both ads.

Flyte 04-25-2010 12:36 AM

Quote:

Originally Posted by djbaxter (Post 2026231)
It's working fine in 4.03 for me. However, I currently have the CMS disabled - it's possible that's the problem. See if the error goes away if you disable CMS (as a way of tracking down where the error is occurring).

Also check:

1. that all files for this add-on still exist on your server - I'd recommend you just re-upload everything to be sure

2. that an add-on installed later is not conflicting with this one

yep I was missing files!! Thanks for telling me to check that! Works great.

Flyte 04-26-2010 04:13 PM

Okay, so everything seems to be working fine except I can't figure out how to get the banners to 'refresh' and change without a total page refresh.
I would like to set it so the banners all change and refresh every 2-4 seconds.
Can someone tell me how to enable / set this please?

Thank You!

y2ksw 04-26-2010 07:05 PM

Quote:

Originally Posted by Flyte (Post 2027686)
Okay, so everything seems to be working fine except I can't figure out how to get the banners to 'refresh' and change without a total page refresh.
I would like to set it so the banners all change and refresh every 2-4 seconds.
Can someone tell me how to enable / set this please?

Thank You!

If you need this functionallity, you will have to paste your own Java Script with timing and banner visualizzation in the text box in order to achieve this function. Maybe also an iframe to a specifically built banner page may work. Or a Flash banner which rotates banners in a different manner.

Flyte 04-26-2010 08:22 PM

Quote:

Originally Posted by y2ksw (Post 2027761)
If you need this functionallity, you will have to paste your own Java Script with timing and banner visualizzation in the text box in order to achieve this function. Maybe also an iframe to a specifically built banner page may work. Or a Flash banner which rotates banners in a different manner.

I hate to sound lazy...but do you know anyone that already has this script because I am not exactly sure how to do this myself.

Thanks!

y2ksw 04-26-2010 09:08 PM

Quote:

Originally Posted by Flyte (Post 2027787)
I hate to sound lazy...but do you know anyone that already has this script because I am not exactly sure how to do this myself.

Thanks!

I'm unable to tell you how to solve issues which go beyond PHP coding. I can imagine how it should be done, but know nothing special about Java. If I had to do it myself, I probably would ask (and pay) somebody to make me a Flash wrapper which rotates banners the way I like most ;)

mobe00 04-27-2010 06:58 AM

Quote:

Originally Posted by mobe00 (Post 2026434)
i cant get this mod to work..no ads shows up . all the settings done as instructions is told ..i add this code to below_navbar template

<!--@vbbanners:0@-->


i have two adds which is set to position 0. The url to the images is correct. but nothing happens...what can be wrong ?
start date is from yesterday and end date is in july on both ads.

*bump* anyone knows why i cant get it to work ? im clueless..did all what the instructions told as far as i know

wampforum 04-27-2010 07:09 AM

Quote:

Originally Posted by mobe00 (Post 2027996)
*bump* anyone knows why i cant get it to work ? im clueless..did all what the instructions told as far as i know

have you checked the start date for each ad? it sometimes puts it as a date in the future on mine. make sure its today and a time just passed and see if that works.

any suggestions on the clicks not registering?

mobe00 04-27-2010 09:14 AM

Quote:

Originally Posted by wampforum (Post 2028002)
have you checked the start date for each ad? it sometimes puts it as a date in the future on mine. make sure its today and a time just passed and see if that works.

any suggestions on the clicks not registering?

ja i have. also dated it back 2 months..but nothing happens. everything seems right..but nothing shows up. when i try to write ordinary characters after the code they show up.so the code is in the template..meaning i dont have to revert the template...so strange ..i have no clue what to do

y2ksw 04-27-2010 12:37 PM

Quote:

Originally Posted by mobe00 (Post 2028027)
ja i have. also dated it back 2 months..but nothing happens. everything seems right..but nothing shows up. when i try to write ordinary characters after the code they show up.so the code is in the template..meaning i dont have to revert the template...so strange ..i have no clue what to do

does it work with the standard style?

Videx 04-27-2010 01:55 PM

Make sure you test it with a local plain .gif (not Google!), and make sure that plain .gif shows up if you just craft a url straight to it.

mobe00 04-27-2010 08:18 PM

Quote:

Originally Posted by Videx (Post 2028110)
Make sure you test it with a local plain .gif (not Google!), and make sure that plain .gif shows up if you just craft a url straight to it.

i linked to a jpg file that was under /images/ads
and if i type in the url in the adress field in the browser it of course shows up

not working with my default vbulletin design or my own design..

fluidswork 04-29-2010 04:40 PM

This is what i am looking for .....

Great addition...............

wampforum 04-29-2010 04:47 PM

any news on why the clicks might not be working mate?

Mike1018 05-04-2010 12:39 AM

I have been looking everywhere for a mod like this. Superb job.

y2ksw 05-04-2010 05:00 PM

Quote:

Originally Posted by wampforum (Post 2029103)
any news on why the clicks might not be working mate?

Clicks work only when enabled (the obvious) and on images or wrapped flash banners. For some situations, code changes may be necessary, such as if you have vbulletin banners outside of the standard forum folders. Difficult to tell, why. Also content caching may be one of the possible reasons ...

Scooterpig 05-09-2010 06:44 AM

Am trying to move our banners over to the center of the logo line but not having any luck whatsoever.

Can you please explain what the positions option mean as have no idea sorry?

Thanks..:)

jskoh 05-09-2010 02:43 PM

hi, can i check if i need to put two banner in a style below the nav bar. how should the code goes? i tried put the code in this way but it does work.

<!--@vbbanners:0@--><!--@vbbanners:1@-->

salvador21 05-09-2010 05:04 PM

No.

I think you just put two Google ad scripts instead of one in the text field for you banner position.

You could put <br /> between the ads for one on top of the other depending on the width of the banners and width of your forum, but this would happen automatically if the forum is not as wide as two banners.

No need to add anything different to templates.

y2ksw 05-09-2010 07:56 PM

Quote:

Originally Posted by Scooterpig (Post 2034028)
Am trying to move our banners over to the center of the logo line but not having any luck whatsoever.

Can you please explain what the positions option mean as have no idea sorry?

Thanks..:)

I'm sorry, too. This is a style problem and I am unable to help you there.

If you get an 'X' on the logo line at the desired location, you also may show a banner there :)

y2ksw 05-09-2010 07:59 PM

Quote:

Originally Posted by jskoh (Post 2034150)
hi, can i check if i need to put two banner in a style below the nav bar. how should the code goes? i tried put the code in this way but it does work.

<!--@vbbanners:0@--><!--@vbbanners:1@-->

If you use just two of the same:

<!--@vbbanners:0@--><!--@vbbanners:0@-->

and have at least 2 location: 0 banners in your database, they will show there one beneath each other. The more banners you have in the db, the more they vary :)

abqtj 05-09-2010 09:06 PM

I think I'm a little lost and have a few questions

-Do I put the <!--@vbbanners:0@--> code in the Advertising/Manage Ads part of the Admin CP?

-in the Rotating Banner System portion of the Admin CP, the URL field is the destination of when someone clicks a banner...and the Image/Flash is the actual URL of where the banner is hosted? Do I need to put the full url? Or if it's in, say, images/ads/SAMPLE.gif, is that enough?

-When I'm placing banners, if I want all of them in one location on my site, do I use Horizontal (0) for the upper right banner, above the navbar?

Thanks and sorry for the questions, I'm usually not this lost with mods. I like this one and it looks like most are having great success with it.

y2ksw 05-10-2010 08:02 PM

Quote:

Originally Posted by abqtj (Post 2034277)
I think I'm a little lost and have a few questions

-Do I put the <!--@vbbanners:0@--> code in the Advertising/Manage Ads part of the Admin CP?

-in the Rotating Banner System portion of the Admin CP, the URL field is the destination of when someone clicks a banner...and the Image/Flash is the actual URL of where the banner is hosted? Do I need to put the full url? Or if it's in, say, images/ads/SAMPLE.gif, is that enough?

-When I'm placing banners, if I want all of them in one location on my site, do I use Horizontal (0) for the upper right banner, above the navbar?

Thanks and sorry for the questions, I'm usually not this lost with mods. I like this one and it looks like most are having great success with it.

This mod allows you to show banners at a place you decide. The available "locations" 0 to 9 are merely intended as banner types, such as horizontal, vertical, square, flash, text, scripts or whatever you may need. Usually you will use at most 2 "locations" for all of your banners. On most of my sites, I use only 1 location.

You may put <!--@vbbanners:0@--> to <!--@vbbanners:9@--> literally everywhere in your styles. The plugin replaces these codes at the end of the page rendering process. If more codes of the same "location" are available, more banners of the same "location" are inserted from the database. However, the mod makes sure that on a single page, only one of the same banner appears. If there are more placeholders on a page than banners in the database, the rest of the banner locations are wiped.

If you use the banners only in your forum, you may use relative HTTP paths. However, on some systems or browsers it may not work, and in any case I'd suggest to use always full paths. File system paths are not considered valid (such as /var/www/htdocs/forum/banners/abc.gif or d:\vhosts\mysite.tld\httpdocs\forum\banners\abc.gi f).

You choose the physical banner location by adding a <!--@vbbanners:0@--> in the template you retain most useful for showing a banner. This mod has no "fixed location" injection system: it does not make changes to styles. It just replaces a placeholder.

In the options, you may change the placeholder. If you change it to, for example: @vbbanners:%d@, then you may add @vbbanners:0@ for a "location" 0 banner even in a normal message, signature or private message from the frontend (unless HTML is enabled in your forum sections). Together with other rules, your signature will then contain always the appropriate banner wherever you move, without having to setup specific rules in all the different places.

Most of the times, we think about how to give a signature, a message or a forum page a rule. With this mod, you set a banner rule instead. If I have a moderator who has a banner placeholder in their signature, they may show motorcycle banners in one place and software banners in another place, without having to worry about the placeholder - which always remains the same.

With this post I have tried to reformulate the help and to make a resume of all the FAQ of this thread. Unfortunately - in all these years - I haven't found yet an universally valid formula to explain how this mod works. But it does work and it does it well :)

pmk_1992 05-13-2010 07:19 AM

only 2 default google banner is working
when i try add other banners they are all not work

y2ksw 05-13-2010 08:47 AM

Quote:

Originally Posted by pmk_1992 (Post 2036171)
only 2 default google banner is working
when i try add other banners they are all not work

Please try your banners on a blank html page first. If they don't work there, they won't in rotating banners either :)

Then, duplicate one of the default banners and make your changes, it's a good way to get introduced and discover its power.

pmk_1992 05-13-2010 09:29 AM

great
i duplicate one of default then make change
it working now:up:
thank so much

Scooterpig 05-14-2010 11:28 PM

Sorry to be a pest but am wanting the banners to display on all pages yet for me it's not working. if I read the settings correctly for each banner, it says that if I don't check any sections of the forum it will display on all sections, yet we only have it displaying on Forumhome.

Am I therefore required to add the code elsewhere other than Forumhome tog et it to show on all pages please?

Thank you..:)

ecky 05-16-2010 09:48 AM

I accidentally deleted the default 2 google ads that came with this plugin. Instead of re-installing from scratch and just in case I possibly break a working installation, would it be possible to please post the configuration settings so I can reinstall google ads manually into the admin control panel?

Thanks

y2ksw 05-16-2010 10:38 AM

Quote:

Originally Posted by Scooterpig (Post 2037137)
Sorry to be a pest but am wanting the banners to display on all pages yet for me it's not working. if I read the settings correctly for each banner, it says that if I don't check any sections of the forum it will display on all sections, yet we only have it displaying on Forumhome.

Am I therefore required to add the code elsewhere other than Forumhome tog et it to show on all pages please?

Thank you..:)

If you put a placeholder in the header or footer template, it will show up on all pages. If you have used only the forumhome template, it will show only on forumhome, of course :)

Some great places are the templates beginning with ad_, such as ad_navbar_below.

y2ksw 05-16-2010 11:02 AM

Quote:

Originally Posted by ecky (Post 2037834)
I accidentally deleted the default 2 google ads that came with this plugin. Instead of re-installing from scratch and just in case I possibly break a working installation, would it be possible to please post the configuration settings so I can reinstall google ads manually into the admin control panel?

Thanks

Just backup your rbs_banners table, take note of your RBS Options (vbulletin options) if you have made any changes there and reinstall. Eventually you will have to export the translations as well, if you have changed it. Then reapply the RBS Options if necessary and you are done.

RBS is safe to reinstall, but of course it may need to do some additional work, if you have multiple language support and changed options.

I will not give the queries in order to insert the default banners, because doing so it would be very unsafe.

ecky 05-16-2010 11:30 AM

Sorry, this has went way over my head. :confused:

I've already updated to v2.2.6 and know nothing about tables and queries. I have about 8 adverts rotating exactly as they should and I'm concerned that I would lose all this data.

I expected a simple way to restart google ads again would be just to edit them in the same manner in which I added my own custom adverts to the banner options via the admin control panel?

y2ksw 05-16-2010 11:39 AM

Quote:

Originally Posted by ecky (Post 2037867)
Sorry, this has went way over my head. :confused:

I've already updated to v2.2.6 and know nothing about tables and queries. I have about 8 adverts rotating exactly as they should and I'm concerned that I would lose all this data.

I expected a simple way to restart google ads again would be just to edit them in the same manner in which I added my own custom adverts to the banner options via the admin control panel?

Well, you may create 2 new banners and paste:
Code:

<script type="text/javascript">
<!--
google_ad_client = "pub-8477879996596626";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

and

Code:

<script type="text/javascript"><!--
google_ad_client = "pub-8477879996596626";
google_ad_slot = "8172517593";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

in the "Text" field. Don't forget the title and the expiration date/time ;)

ecky 05-16-2010 11:51 AM

Exactly what I was looking for, this works perfectly.
Thank you very much!:up:

Sports Investor 05-26-2010 11:26 AM

Nice and easy Mod.

I had to duplicate one of the default ads to get it working, but it works like a charm now. I can even put the code in the advertisement areas that are already available.

Thanks!

MNbiker 05-26-2010 02:19 PM

Just installed on our 4.02 site w/CMS. Had it working perfectly in less than 30 minutes. :)

Great Mod!

-Steve

p.s. Thanks for the Flash tutorial and documentation.

Drache 05-28-2010 12:03 PM

looks nice. does this have the ability to count views and clicks? for example auto change to next banner once it's been viewed 1000times. and counts the click rate as well?

y2ksw 05-31-2010 02:31 PM

Quote:

Originally Posted by Drache (Post 2044574)
looks nice. does this have the ability to count views and clicks? for example auto change to next banner once it's been viewed 1000times. and counts the click rate as well?

It counts views and for certain banner types (pure images and flash with wrapper), the clicks as well. It allows also to limit the number of impressions and clicks (if clicks can be counted).

You may also limit the time and forums, and show banners only to a certain group of users.

However, it does not show banners progressively (attend one banner's viewing limits).


All times are GMT. The time now is 09:35 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.03530 seconds
  • Memory Usage 1,859KB
  • 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_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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