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)

goodhunting1 07-30-2015 07:28 PM

Quote:

Originally Posted by rhody401 (Post 2551598)
Goodhunting1,
It needs a refresh/page load to bring up another banner, it doesnt just rotate them on a static page. This is by design, and I think the reason has to do with the adsense rules.

In places where I wanted a rotation, I used an animated GIF.

Rhody

Oh, it dont serves my purpose then. I already have a simple php script that does the picture change on each reload. That php is in a folder and whatever picture I put in that folder is added to the rotation. Very easy to add or remove a picture from the rotation.

I dont think a gif will be a good option for me, there could be as much as 20 good quality pictures and if I want to add anything (these are outdoorsy pictures from members so it will change monthly) I will have to redo the gif.

Thanks for the info!

y2ksw 07-31-2015 05:39 AM

Quote:

Originally Posted by gobears20 (Post 2551719)
Is there a reason why the clicks are not being tracked? I have this as part of an Adsense set up but clicks are not working but impressions are? I have the check box checked to track clicks. Do I need to click anything else on the settings? Thanks!

Currently there is no way to track clicks from scripts, unless they are specifically crafted and contain thus a notification link to the banner itself. With AdSense, there is no way to inject such code, because it comes dynamically from a wide number of publishers and have all a very different syntax.

I eventually will address this problem (along with others) with the new stand-alone application, which is currently under development, because then everything will be in one place and can be thoroughly tested. For some systems however there may be no solution, because Google does not allow to tamper with the banner code.

y2ksw 07-31-2015 05:51 AM

Quote:

Originally Posted by gobears20 (Post 2551112)
I am testing this out and I created a Test1 and Test2 banner just for my user group so I am the only one that sees it. My goal is to have these rotate when the page is refreshed. I am looking for it to show Test1, Test2, Test1,Test2...etc when refreshing the page. Its not always doing that. Sometimes it will do things like this, Test1, Test1, Test1, Test2. It could be on my part with how I have it set.

I have both banners set to the same settings...

Max. Impressions With this value you may limit how often banners are shown on your pages: 0

Likelihood Insert here a value between 1 and 100 in order to define the percentage of how likely are banners to view. You may also insert a number higher than 100, in order to give a specific banner a higher weight than normally. You would do this during short lasting promotions, for example.: 100

Am I missing something or should I set those settings different for the two banners I created?

The likeliness does influence how often a coin flip falls on one side. Normally you will leave it at 100, because you want to give all banners an even chance.

How the chance is taken depends also on server side caches and browser settings. In normal case applications, a banner changes every time a page reloads, but if you just have 2 banners for one space, it may seem there is nothing or little happening. Over time you'll see that the impression counter evens out between the available banners.

nolimitreef 09-01-2015 04:28 AM

I want to put 2 rotating banner positions, one above the other in the global header. They will not be adsence ads. How would I do this? Can I simply place the code in that location?

y2ksw 09-01-2015 10:19 AM

Quote:

Originally Posted by nolimitreef (Post 2554007)
I want to put 2 rotating banner positions, one above the other in the global header. They will not be adsence ads. How would I do this? Can I simply place the code in that location?

Yes

nolimitreef 09-01-2015 03:52 PM

Quote:

Originally Posted by y2ksw (Post 2554022)
Yes

Thank you :)

Tried. But having an issue.

This is the code I placed in the global header file.
Code:

<div style='position:absolute;left:800px;top:65px;'><!--@vbbanners:0@--></div>
</br>
<div style='position:absolute;left:800px;top:145px;'><!--@vbbanners:0@--></div>

They show up in the correct location however all banners don't always rotate upon page load or reload and sometimes one shows up in front (over top) of the bottom one. They are all 468x60 banners. If you would like to look at the page it is located here http://www.nolimitreef.com

I sent a PM to you with admin info if you need it.

Thank you very much :D

nolimitreef 09-01-2015 04:38 PM

I managed to stop the image overlap, However a third image (I only have 3 banners at the moment total) shows up just under the forum home link. I don't want one there and not sure why it shows up there.

y2ksw 09-02-2015 04:57 AM

Quote:

Originally Posted by nolimitreef (Post 2554049)
Thank you :)

Tried. But having an issue.

This is the code I placed in the global header file.
Code:

<div style='position:absolute;left:800px;top:65px;'><!--@vbbanners:0@--></div>
</br>
<div style='position:absolute;left:800px;top:145px;'><!--@vbbanners:0@--></div>

They show up in the correct location however all banners don't always rotate upon page load or reload and sometimes one shows up in front (over top) of the bottom one. They are all 468x60 banners. If you would like to look at the page it is located here http://www.nolimitreef.com

I sent a PM to you with admin info if you need it.

Thank you very much :D

If you have 3 banners for 2 locations they are likely not rotating a lot (there is a 2/3 chance they would rotate, or, 2 times of 3 they won't). But in the ACP listing you will sse that over time, the impression rate equals between banners.

For HTML issues, overlapping etc, I'm not your man. I'm coder, not designer :)

nolimitreef 09-02-2015 12:03 PM

Quote:

Originally Posted by y2ksw (Post 2554098)
If you have 3 banners for 2 locations they are likely not rotating a lot (there is a 2/3 chance they would rotate, or, 2 times of 3 they won't). But in the ACP listing you will sse that over time, the impression rate equals between banners.

For HTML issues, overlapping etc, I'm not your man. I'm coder, not designer :)

I'm sorry, I may not have stated my question correctly.

I fixed the overlap. I have 2 banner positions stacked in the global header right side. But the banners are rotating in a 3rd location as well that I did not set up to do. (I now have 10 banners to rotate for the stacked positions).. This location is on the upper left side of all pages below the navigation bar. Is that the normal 0 position? If so, where might I comment that out in styles?

Thank you

y2ksw 09-05-2015 06:06 AM

Quote:

Originally Posted by nolimitreef (Post 2554110)
I'm sorry, I may not have stated my question correctly.

I fixed the overlap. I have 2 banner positions stacked in the global header right side. But the banners are rotating in a 3rd location as well that I did not set up to do. (I now have 10 banners to rotate for the stacked positions).. This location is on the upper left side of all pages below the navigation bar. Is that the normal 0 position? If so, where might I comment that out in styles?

Thank you

The banners rotate only where you have setup them previously ... there is no magic location of its own. The mechanism is to use a placeholder where to show a banner, stop :)

Also, there is no normal position, for exacly the same reason. You and only you are deciding where to show banners ...


All times are GMT. The time now is 01:00 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.05028 seconds
  • Memory Usage 1,758KB
  • 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
  • (8)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