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)

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..:)


All times are GMT. The time now is 12:02 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.03043 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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