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)

ovidiuletu 04-01-2010 04:02 PM

Hy,
I have a client who asks the following for his banner:
1. At this point the baner has Atribut ?nofollow? ? he wants to be removed the rel=?nofollow? from the link;

2. My banner has an internal link named: http://www.ciclism.ro/forums/rbs_banner.php?id=3 and he wants a direct link to http://www.veloteca.ro

Can you help me with this?
My website is www.ciclism.ro/forums

y2ksw 04-01-2010 09:04 PM

Quote:

Originally Posted by Bacon Butty (Post 2014012)
Looks great. Is there any chance the placeholder can be placed after the first post in every thread, like;

http://img171.imageshack.us/img171/8165/advertg.jpg

... as detailed here

Put the placeholder in the template: ad_showthread_firstpost ... maybe within a div align center tag ... :)

y2ksw 04-01-2010 09:13 PM

Quote:

Originally Posted by ovidiuletu (Post 2014135)
Hy,
I have a client who asks the following for his banner:
1. At this point the baner has Atribut ?nofollow? ? he wants to be removed the rel=?nofollow? from the link;

2. My banner has an internal link named: http://www.ciclism.ro/forums/rbs_banner.php?id=3 and he wants a direct link to http://www.veloteca.ro

Can you help me with this?
My website is www.ciclism.ro/forums

  1. Change the banner code accordingly to your wishes (plugin hook: global_complete, "Banner Insertion"). Please note that you have to reapply this change after each upgrade. Also, direct links to other sites without nofollow have a direct impact on your Google Site Rank (your page ranking decreases).
  2. Uncheck the Click Tracking option (you can't have enabled click tracking and direct links in the same moment).

Videx 04-02-2010 12:38 AM

Quote:

Originally Posted by y2ksw (Post 2014284)
Put the placeholder in the template: ad_showthread_firstpost ... maybe within a div align center tag ... :)

Cool. For some odd reason, this position doesn't seem to be included in the vb advertising positions (?).

But it doesn't look too bad to put it in AdminCP>Advertising>Add New Ad>Page:Thread>First Post Content>
Quote:

<div style="text-align:center;border:1px solid black"><!--@vbbanners:0@--></div>
I wonder if anyone has filed a bug report that the "After first post" is missing.

y2ksw 04-02-2010 05:13 AM

Quote:

Originally Posted by Videx (Post 2014352)
Cool. For some odd reason, this position doesn't seem to be included in the vb advertising positions (?).

But it doesn't look too bad to put it in AdminCP>Advertising>Add New Ad>Page:Thread>First Post Content>I wonder if anyone has filed a bug report that the "After first post" is missing.

The normal templates are filled and they do work. If not, probably you are encountering a style problem.

Videx 04-02-2010 01:17 PM

1 Attachment(s)
Quote:

Originally Posted by y2ksw (Post 2014457)
The normal templates are filled and they do work. If not, probably you are encountering a style problem.

No, I only have the default style. Maybe I'm just not explaining it correctly. Take a look at the attachments and you'll see that when creating a new ad there are no locations listed within a thread except two. Both fairly useless, imho.

stinger2 04-04-2010 10:15 PM

Quote:

Originally Posted by y2ksw (Post 2013395)
If this is a general rule and you are happy with changing the code a bit, you may add (hook: global_complete, "Banner Insertion"), on the very top:

Code:

if(THIS_SCRIPT == 'adv_index')
{

and, on the very bottom:
Code:

}
This way, the plugin code will run only when the portal pages are shown. However, it also keeps the placeholders unchanged in other pages, which may have undesireable side effects, if they are not in the HTML comment format. True vBAdvanced support would require more coding.

If some more users are interested in an additional feature for vBAdvanced support, this is the time to ask :)

thanks......this is a nice practical solution....

i usually do not modefy the board alot.........first because i forget the modification....second..would be very hard to make upgrades..........hehehe........as if i am going to upgrade to vb 4 with all my modifications.

thanks alot....nice and great hack

Traxion 04-06-2010 07:41 PM

I cant seem to get a banner to show up. I believe I have it installed correctly, made sure I added the correct code to the ad_navbar_below template and I have checked the HTML code and spelling but I cant get anything to show up anywhere. Any ideas?

Update: I kept messing a little more with this and found that it tries to place the default banner where I want it but doesnt show because of a javascript error from the google ads. I can verify this cause it displays on my smartphone but not on my desktop. Now when I try to create an entirely new banner and place in the same exact position I get nothing. Any help would be appreciated. Thanks!

anabolika 04-06-2010 09:28 PM

Hi,

I can't seem to get it to work :( I'm running 4.0.2 , is it tested for this version? I've tried all placeholders in the forum block manager and I still see <!--@vbbanners:0@--> or <!--@vbbanners:0-->

Is there a way to check for errors?

y2ksw 04-07-2010 07:40 AM

Quote:

Originally Posted by Traxion (Post 2017000)
I cant seem to get a banner to show up. I believe I have it installed correctly, made sure I added the correct code to the ad_navbar_below template and I have checked the HTML code and spelling but I cant get anything to show up anywhere. Any ideas?

Update: I kept messing a little more with this and found that it tries to place the default banner where I want it but doesnt show because of a javascript error from the google ads. I can verify this cause it displays on my smartphone but not on my desktop. Now when I try to create an entirely new banner and place in the same exact position I get nothing. Any help would be appreciated. Thanks!

Please try to show a standard image banner and disable the Google ads. Also check if your banner will show up in a normal HTML page :)

y2ksw 04-07-2010 07:46 AM

Quote:

Originally Posted by anabolika (Post 2017080)
Hi,

I can't seem to get it to work :( I'm running 4.0.2 , is it tested for this version? I've tried all placeholders in the forum block manager and I still see <!--@vbbanners:0@--> or <!--@vbbanners:0-->

Is there a way to check for errors?

It is tested in 4.0.2 and except for another heavily hacked and modded board, it runs.

If you see <!--@vbbanners:0--> in your HTML code and this product is enabled, it is a proof, that the global_complete hook never executes, thus some of your products/applications intercept this hook and drop standard execution of the vbulletin code. There is nothing I can do about this.

If you know the intercepting product, you may try to move the plugin hooks somewhere else, probably to the replacing hooks, but it is not guaranteed to work.

Traxion 04-07-2010 03:09 PM

Quote:

Originally Posted by y2ksw (Post 2017301)
Please try to show a standard image banner and disable the Google ads. Also check if your banner will show up in a normal HTML page :)

I have tried to place a standard image banner but with no luck. I dont know if im doing something wrong in the Image / Flash area or not. I have just been putting in the full location of the image I want displayed and in the URL box putting its click destination address. Im sure its something simple, but I just cant get it figured out. Thanks so much for your help on this.

Videx 04-07-2010 07:05 PM

Quote:

Originally Posted by Traxion (Post 2017479)
I have tried to place a standard image banner but with no luck.

What about the other thing he told you to try? If you can't get a plain jpg banner to show in a normal html page then you'll never get them to show in this mod.

Traxion 04-08-2010 03:42 AM

I assume you mean just typing the full address to the image and seeing if it pulls up in browser the answer is yes.

y2ksw 04-08-2010 06:38 AM

Quote:

Originally Posted by Traxion (Post 2017761)
I assume you mean just typing the full address to the image and seeing if it pulls up in browser the answer is yes.

Please put in place of the banner placeholder (or in addition) a simple 'X' and check if this shows up, e.g.:

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

Edit:
May it be that you have used just: <!--@vbbanners:0--> instead of <!--@vbbanners:0@--> (missing final @)?

Traxion 04-08-2010 03:12 PM

Quote:

Originally Posted by y2ksw (Post 2017804)
Please put in place of the banner placeholder (or in addition) a simple 'X' and check if this shows up, e.g.:

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

Edit:
May it be that you have used just: <!--@vbbanners:0--> instead of <!--@vbbanners:0@--> (missing final @)?

Not sure what happened, but after testing with the 'X' outside the <> and it showing correctly it started working. Im sure I messed something up somewhere, but good news is that it works!! Thanks for all your help!

Antonio Pereira 04-09-2010 06:25 AM

1 Attachment(s)
Have installed:
Rotating Banner System: 2.2.6
Vbulletin: 4.0.3
and have a problem wen make zoom with mouse "Ctrl+Scroll Mouse"

The Flash dont zoom if i put flash banner in HTML zoom is ok.

Did you have a fix for this?

Best Regards

pepsicola38 04-09-2010 01:16 PM

should the code be entered as
<!--@vbbanners:0@-->
<!--@vbbanners:4@-->

or

<!--@vbbanners:0@-->
<!--@vbbanners:1@-->
<!--@vbbanners:2@-->
<!--@vbbanners:3@-->
<!--@vbbanners:4@-->

thanks

djbaxter 04-11-2010 07:11 PM

Weird bug: I have this add-on installed in 4.03 currently (but have been using it since 3.8x through 4.01 and 4.02).

I have the banners inserted in some custom places but in order to minimize template reverts and editing where possible I use the vBulletin ACP | Advertising settings and insert the <!--@vbbanners:0@--> or <!--@vbbanners:1@--> codes there.

The only bug I've found is a persistent though internittent one: Using the Below Navbar location in combination with <!--@vbbanners:1@--> defined as a leaderboard size (wide) banner (rotating between AdSense and some affiliate banners), most of the time it works fine. Very now and then, though, it will stop displaying banners at that location (other locations continue to work). To fix it, I need to go back into that location in the ACP, click on Edit, and then Save without making any changes.

I'm really not 100% certain whether this is an issue with this add-on or a vBulletin 4.x issue. However, for a while, I disabled the add-on and hard-coded the ads in that location (i.e., no rotation) and the problem did not occur under those conditions.

djbaxter 04-11-2010 07:13 PM

Quote:

Originally Posted by pepsicola38 (Post 2018359)
should the code be entered as
<!--@vbbanners:0@-->
<!--@vbbanners:4@-->

or

<!--@vbbanners:0@-->
<!--@vbbanners:1@-->
<!--@vbbanners:2@-->
<!--@vbbanners:3@-->
<!--@vbbanners:4@-->

thanks

You enter only one at a time in each location where you want that set of banners to be rotated. Enter EITHER <!--@vbbanners:0@--> OR <!--@vbbanners:1@--> OR <!--@vbbanners:2@--> OR <!--@vbbanners:3@--> OR <!--@vbbanners:4@-->.

It would be rare that you'd want to have more than one group in a specific location, unless you want them side by side or one under the other.

DakoomNetwork 04-12-2010 07:48 PM

y2ksw, could it works also as a Google Adsense, so recreating the same functions?

vikris 04-12-2010 10:05 PM

One of the greatest addons!!! :) I have several questions though:

1. Will it be in the future more than 10 positions?

2. Some of the ads are displaying also in the forums (specifically header and footer) how to remove that? I like the ads to be displayed only on CMS page.

3. Maybe this question is out of the thread, but I have to ask: Is there a way to setup a widget on the main CMS to show friendly sites with small graphic and link to them?

Thanks a lot again!

Regards,

vikris

Scooterpig 04-16-2010 09:14 PM

1 Attachment(s)
We want to put our banners to in the Header to the right of the logo but can't work it out. Can anyone please tell me what template or where I put the code as per the attached pic for it to show up underneath the Welcome and above the Search?

Thank you..:)

y2ksw 04-17-2010 08:59 AM

Quote:

Originally Posted by DakoomNetwork (Post 2020112)
y2ksw, could it works also as a Google Adsense, so recreating the same functions?

The plugin is not a replacement for Google Adsense or any other system. However you may use it to show Google Adsense scripts and will give you a little extra feedback, such as the number of impressions.

y2ksw 04-17-2010 09:11 AM

Quote:

Originally Posted by vikris (Post 2020184)
One of the greatest addons!!! :) I have several questions though:

1. Will it be in the future more than 10 positions?

2. Some of the ads are displaying also in the forums (specifically header and footer) how to remove that? I like the ads to be displayed only on CMS page.

3. Maybe this question is out of the thread, but I have to ask: Is there a way to setup a widget on the main CMS to show friendly sites with small graphic and link to them?

Thanks a lot again!

Regards,

vikris

  1. As said before, 10 positions are much more than you ever would need on any kind of site. If you see a position as a fixed place somewhere in your styles, it is a partly wrong assumption. Positions are rather banner types, like square, wide or skyscraper. Together with other settings, you get almost unlimited filters where and how to show banners, all with one of the same "position", or at most, one or two additional ones.
  2. You will have to use conditionals in your styles. I don't know yet how this works on 4.x, but I'm sure somebody knows (I'm not a designer). Most probably it hasn't changed much and a comparison to THIS_SCRIPT suffices (some sort of if condition="THIS_SCRIPT='content'" tag).
  3. I believe so. But since I'm not a designer, I can't tell :)

y2ksw 04-17-2010 09:36 AM

Quote:

Originally Posted by Scooterpig (Post 2022405)
We want to put our banners to in the Header to the right of the logo but can't work it out. Can anyone please tell me what template or where I put the code as per the attached pic for it to show up underneath the Welcome and above the Search?

Thank you..:)

I believe those are: ad_global_header1 and ad_global_header2 ...

Scooterpig 04-17-2010 10:47 PM

Quote:

Originally Posted by y2ksw (Post 2022609)
I believe those are: ad_global_header1 and ad_global_header2 ...

Thanks but nope that don't work sorry...:(

y2ksw 04-18-2010 01:25 PM

Quote:

Originally Posted by Scooterpig (Post 2022913)
Thanks but nope that don't work sorry...:(

Well' I pass the hot potatoe to the designers. I'm anyway only a coder and design/style problems are not my strength.

vikris 04-18-2010 01:55 PM

Quote:

Originally Posted by y2ksw (Post 2022603)
  1. As said before, 10 positions are much more than you ever would need on any kind of site. If you see a position as a fixed place somewhere in your styles, it is a partly wrong assumption. Positions are rather banner types, like square, wide or skyscraper. Together with other settings, you get almost unlimited filters where and how to show banners, all with one of the same "position", or at most, one or two additional ones.
  2. You will have to use conditionals in your styles. I don't know yet how this works on 4.x, but I'm sure somebody knows (I'm not a designer). Most probably it hasn't changed much and a comparison to THIS_SCRIPT suffices (some sort of if condition="THIS_SCRIPT='content'" tag).
  3. I believe so. But since I'm not a designer, I can't tell :)

Thanks a lot for this clarification!

Regards,

Vikris

heatherw610 04-19-2010 04:21 PM

Hello, when I have 2-3 banners in, every so often it will show nothing. Its like it goes through them all and then will "run out" so that space on my forum is like there was nothing ever there. Anyone know how to fix this?

NinjaKane 04-19-2010 04:27 PM

Is there any way to weight how often banners are shown? IE banner 1 is more important and is shown 3 times every 10 rotations? Or is it completely random?

y2ksw 04-19-2010 08:08 PM

Quote:

Originally Posted by heatherw610 (Post 2023871)
Hello, when I have 2-3 banners in, every so often it will show nothing. Its like it goes through them all and then will "run out" so that space on my forum is like there was nothing ever there. Anyone know how to fix this?

If you have, say 3 banners in your database and 10 placeholders on one page, only 3 positions are filled.

Any other reason why banners show or less depend on your filters. Or maybe on content or page caching. Or on some software, which removes HTML comments.

On a standard installation and no filters, the banners will show up all times, guaranteed.

y2ksw 04-19-2010 08:12 PM

Quote:

Originally Posted by NinjaKane (Post 2023874)
Is there any way to weight how often banners are shown? IE banner 1 is more important and is shown 3 times every 10 rotations? Or is it completely random?

You may weight a banner by simple duplication. If you have 2 banners and banner 1 has to show up 2:1, duplicate banner 1 once.

For the rest, it is completely random.

heatherw610 04-20-2010 12:19 AM

Quote:

Originally Posted by y2ksw (Post 2024015)
If you have, say 3 banners in your database and 10 placeholders on one page, only 3 positions are filled.

Any other reason why banners show or less depend on your filters. Or maybe on content or page caching. Or on some software, which removes HTML comments.

On a standard installation and no filters, the banners will show up all times, guaranteed.

Thank you. :)

Where can I edit the 10 placeholders to the number of banners I actually have?

y2ksw 04-20-2010 05:08 AM

Quote:

Originally Posted by heatherw610 (Post 2024093)
Thank you. :)

Where can I edit the 10 placeholders to the number of banners I actually have?

You assign to each banner a placeholder (position) at creation or edit time, and insert one or more into your templates (any).

If you need to change the global placeholder format, go into the options. Please make sure to understand first how this system works. Normally there is no need to change any of your settings.

Fungsten 04-20-2010 06:00 PM

Quote:

Originally Posted by Scooterpig (Post 2022405)
We want to put our banners to in the Header to the right of the logo but can't work it out. Can anyone please tell me what template or where I put the code as per the attached pic for it to show up underneath the Welcome and above the Search?

Thank you..:)

Same here!

Flyte 04-20-2010 10:08 PM

We are looking for a banner rotation mod that constantly rotates and not just at page refresh. Does this work that way?

Thanks in advance.

heatherw610 04-21-2010 03:42 AM

Quote:

Originally Posted by Flyte (Post 2024555)
We are looking for a banner rotation mod that constantly rotates and not just at page refresh. Does this work that way?

Thanks in advance.


It has that option in the admin CP but I have never used it that way. :)

wsmallwood 04-21-2010 05:00 PM

Okay, I have it installed. Everything seems to be there. Your tutorial indicates the two default banner will show up without doing anything. I don't see anything. What to do?

wampforum 04-22-2010 12:05 PM

I have this set up and everything works fine except the clicks - it doesnt record any. Am I missing something? (I have the click option ticked!!)


All times are GMT. The time now is 08:12 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.04901 seconds
  • Memory Usage 1,862KB
  • 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
  • (26)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