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)

y2ksw 06-22-2011 09:13 AM

Quote:

Originally Posted by dmm2020 (Post 2210955)
Did you do it in the CMS or blog area? Where it is failing for me is in the blog sidebar, but if I used the default ad manager for vB it comes through just fine.

I have no active blogs so I can't try. What is the template you are using?

dmm2020 06-22-2011 11:45 AM

HiO Back2Basic

But I should not say blog. It's the CMS home page where it fails to pickup but ads through the built in system do pickup.

Quote:

Originally Posted by y2ksw (Post 2211232)
I have no active blogs so I can't try. What is the template you are using?


y2ksw 06-22-2011 01:36 PM

1 Attachment(s)
Quote:

Originally Posted by dmm2020 (Post 2211263)
HiO Back2Basic

But I should not say blog. It's the CMS home page where it fails to pickup but ads through the built in system do pickup.

I believe those are the the 'ad_blogsidebar_*' templates ... I'm not sure what the vbulletin banner system does to HTML. I'll see :)

The code does nothing special. Banners rotate also in vBulletin ad space, so when it runs in the header, it also should run in the blog sidebar:

Attachment 130299

I don't know if the CMS sidebar is cached. If it is, maybe it is an issue. But none I could change.

y2ksw 06-22-2011 01:52 PM

The forum sidebar is cached, but if the content is HTML, the banners are still rotated. So far I can tell the banners rotate everywhere in vBulletin and the only known issue is about forums using photopost and its pages.

S S0DEN 06-22-2011 11:47 PM

Unistalled, way too confusing to use.

djbaxter 06-23-2011 12:04 AM

Quote:

Originally Posted by S S0DEN (Post 2211551)
Unistalled, way too confusing to use.

That's unfortunate, because it's really not confusing at all once you grasp the concept of placehoilders and because it works like a charm.

bad2dbone 06-24-2011 03:59 AM

better description among the installation would help everyone greatly......

y2ksw 06-24-2011 07:25 AM

Quote:

Originally Posted by bad2dbone (Post 2212031)
better description among the installation would help everyone greatly......

In all the years I'm software developer (34), I never have found a better way to describe how to install a software than to illustrate visually. However, I believe that vBulletin owners are grown up enough to follow a common line. If you managed to install vBulletin, which has in fact simplified a lot lately, you also should be able to install a vBulletin plugin.

Without going now into the psychological detail, why installing an addition may cause more grief than installing a software, I would like to say that a free software addition with almost all commercial features one could desire, everyone could invest a little personal efford to get there.

Of course, if in the course of this plugin it will work out to rather sell, I will also be able to pay somebody who may install the plugin and make it work at each customer's forums. ;)

StudentCreche 06-24-2011 08:59 AM

Is it possible for the images to flicker every few seconds? The ads only change when someone refreshes a page....

y2ksw 06-24-2011 09:38 AM

Quote:

Originally Posted by StudentCreche (Post 2212091)
Is it possible for the images to flicker every few seconds? The ads only change when someone refreshes a page....

The unsupported addon (post 898 or 989 :p) can do this for you.

EDIT: Post 989, page 66 (this thread)

attroll 06-24-2011 02:48 PM

I am feeling really dumb because the mod said it was straight forward and I have done everything that looks like it need to be done and I still cannot get any banners to display.

I created a banner in Horizontal (0) Banner List
Here is the code I put in the text block.
PHP Code:

<a href="http://www.mysite.net/" target="_blank"> <img src="http://www.mysite.net/forum/wb_style/misc/logo.png" /></a

I enabled he banner
I placed this code in the ?ad_global_below_navbar?
PHP Code:

<div align="center"><!--@vbbanners:0@--></div

The banner will not display.
Am I missing a step of doing something wrong?

y2ksw 06-25-2011 08:41 AM

Quote:

Originally Posted by attroll (Post 2212226)
I am feeling really dumb because the mod said it was straight forward and I have done everything that looks like it need to be done and I still cannot get any banners to display.

I created a banner in Horizontal (0) Banner List
Here is the code I put in the text block.
PHP Code:

<a href="http://www.mysite.net/" target="_blank"> <img src="http://www.mysite.net/forum/wb_style/misc/logo.png" /></a

I enabled he banner
I placed this code in the ?ad_global_below_navbar?
PHP Code:

<div align="center"><!--@vbbanners:0@--></div

The banner will not display.
Am I missing a step of doing something wrong?

Does one of the default banners view?

Probably you will have to use the template ad_navbar_below, because this one is used on all pages. The ad_global_below_navbar template is shown only under certain circumstances.

attroll 06-25-2011 11:27 AM

Quote:

Originally Posted by y2ksw (Post 2212495)
Does one of the default banners view?

Probably you will have to use the template ad_navbar_below, because this one is used on all pages. The ad_global_below_navbar template is shown only under certain circumstances.

Yes, I tried the default banner and I also tried the ad_navbar_below and it still does not display.

I don't know what I am doing wrong. Hoping for some help and advise here.

y2ksw 06-25-2011 01:07 PM

Quote:

Originally Posted by attroll (Post 2212530)
Yes, I tried the default banner and I also tried the ad_navbar_below and it still does not display.

I don't know what I am doing wrong. Hoping for some help and advise here.

Do you have vbSEO and its HTML cleaning enabled? Are you editing the right style? Does the start and end date/time fit your server time? Have you enabled other restrictions? Does the image exist?

Please continue with ad_navbar_below and maybe with the default style first, just to be sure everything works as it should.

Then, please put the image URL into the Image field and the landing page into the URL field. Keep the Text field empty unless you want to show a banner which isn't a plain picture.

Does it now work?

Sorry all the questions but I prefer to make them now all together :)

attroll 06-25-2011 01:31 PM

Quote:

Originally Posted by y2ksw (Post 2212576)
Do you have vbSEO and its HTML cleaning enabled? Are you editing the right style? Does the start and end date/time fit your server time? Have you enabled other restrictions? Does the image exist?

Please continue with ad_navbar_below and maybe with the default style first, just to be sure everything works as it should.

Then, please put the image URL into the Image field and the landing page into the URL field. Keep the Text field empty unless you want to show a banner which isn't a plain picture.

Does it now work?

Sorry all the questions but I prefer to make them now all together :)


What are you referring to when "Do you have vbSEO and its HTML cleaning enabled?".

Yes,
I am editing the correct style
The start and end dates are withing the time frame
I have not enabled any other restrictions
Yes the picture does exist.

This is on my test site. I put it there to get it working before I go to my live site.
If you would like access to the site to check it out, I can give it to you just let me know.

y2ksw 06-25-2011 03:27 PM

Quote:

Originally Posted by attroll (Post 2212584)
What are you referring to when "Do you have vbSEO and its HTML cleaning enabled?".

Yes,
I am editing the correct style
The start and end dates are withing the time frame
I have not enabled any other restrictions
Yes the picture does exist.

This is on my test site. I put it there to get it working before I go to my live site.
If you would like access to the site to check it out, I can give it to you just let me know.

If you had vbSEO installed, there was a footnote in the help files regarding this addon and a relative setting ...

If I could have access to the test site, it would simplify our conversation a lot :)

attroll 06-26-2011 01:17 AM

I do not have vbSEO installed in this site.

I will send you a PM with access to the site.

foudu1030 06-26-2011 07:48 AM

Hi,
I do upload to Root (rbs_iframe.php) ?
It's only file ?
Tahnks :)

attroll 07-01-2011 03:28 PM

Let me make sure I understand this correctly.

If I have ten banners created for for "position 0" and I have them all enabled. Then those 10 banners will rotate constantly?

If that is the case it is not working because the banners all show up in "position 0" at the same time.

djbaxter 07-01-2011 03:46 PM

Quote:

Originally Posted by attroll (Post 2215489)
Let me make sure I understand this correctly.

If I have ten banners created for for "position 0" and I have them all enabled. Then those 10 banners will rotate constantly?

If that is the case it is not working because the banners all show up in "position 0" at the same time.

:confused:

I cannot even imagine how you managed to get that to happen. Can you post a screen shot?

attroll 07-01-2011 03:56 PM

1 Attachment(s)
Quote:

Originally Posted by djbaxter (Post 2215497)
:confused:

I cannot even imagine how you managed to get that to happen. Can you post a screen shot?

Sure. Here is the screen shot.

y2ksw 07-01-2011 04:20 PM

Quote:

Originally Posted by attroll (Post 2215489)
Let me make sure I understand this correctly.

If I have ten banners created for for "position 0" and I have them all enabled. Then those 10 banners will rotate constantly?

If that is the case it is not working because the banners all show up in "position 0" at the same time.

Assumed you have 1 placeholder for each page, (almost) each page view will show a different one out of those 10 banners. The function shuffles the available banners and casually picks one. The casualty is pretty even. If you have more location 0 placeholders on the same page, the function picks more banners in the same way.

There is however no such "constantly in-place rotating", unless you will use the unsupported add-on. The standard behaviour is 1 banner each page view.

y2ksw 07-01-2011 04:23 PM

Quote:

Originally Posted by foudu1030 (Post 2212928)
Hi,
I do upload to Root (rbs_iframe.php) ?
It's only file ?
Tahnks :)

Please see post n. 989 for more about this file ;)

djbaxter 07-01-2011 04:25 PM

Quote:

Originally Posted by attroll (Post 2215502)
Sure. Here is the screen shot.

:confused: I only see one banner in that screen shot.

Videx 07-01-2011 04:58 PM

Quote:

Originally Posted by djbaxter (Post 2215512)
:confused: I only see one banner in that screen shot.

Me too, but I think it's your fault for asking for a screenshot and not a link. Except he's not a noob so he really should have known better.

attroll 07-01-2011 08:26 PM

There is another banner under the Jacks R Better banner. It looks like text but it is a banner.

attroll 07-01-2011 08:31 PM

Quote:

Originally Posted by y2ksw (Post 2215507)
Assumed you have 1 placeholder for each page, (almost) each page view will show a different one out of those 10 banners. The function shuffles the available banners and casually picks one. The casualty is pretty even. If you have more location 0 placeholders on the same page, the function picks more banners in the same way.

There is however no such "constantly in-place rotating", unless you will use the unsupported add-on. The standard behaviour is 1 banner each page view.

Here is the code I have in the template ad_navbar_below.
PHP Code:

<div align="center">@vbbanners:0@</div

If I user the following code in the ad_navbar_below template and I also have 10 banners for location 0. Then shouldn't it rotate between all 10 banners and show one at a time?

demo7up 07-03-2011 11:58 PM

this is awesome!!!!! Installed

y2ksw 07-04-2011 07:42 AM

Quote:

Originally Posted by attroll (Post 2215618)
Here is the code I have in the template ad_navbar_below.
PHP Code:

<div align="center">@vbbanners:0@</div

If I user the following code in the ad_navbar_below template and I also have 10 banners for location 0. Then shouldn't it rotate between all 10 banners and show one at a time?

It shows one banner at each time. Every time you refresh or reload a page with this template, another banner out of 10 is shown. It works like any other HTML with dynamic content.

attroll 07-05-2011 05:59 PM

Quote:

Originally Posted by y2ksw (Post 2216541)
It shows one banner at each time. Every time you refresh or reload a page with this template, another banner out of 10 is shown. It works like any other HTML with dynamic content.

I found my problem and it is working now. Than you all for the help.

Videx 07-05-2011 07:07 PM

Quote:

Originally Posted by attroll (Post 2217113)
I found my problem and it is working now. Than you all for the help.

For the benefit of future searchers, you really should try to explain the problem and the solution as best you can.

attroll 07-05-2011 09:53 PM

Quote:

Originally Posted by Videx (Post 2217143)
For the benefit of future searchers, you really should try to explain the problem and the solution as best you can.

Yes, you are right and I mean to do that.

My problem with having double banners existed because I had the code posted in two templates. I had it in both the "ad_navbar_below" and "ad_global_below_navbar".

CruiserCommando 07-06-2011 05:25 AM

I'm sorry, I must be missing something in the set-up instructions. how is it that I get this ad banner to show up? I have it uploaded and I have it appearing in my AdminCP, but there is nothing showing up on my forum. I inserted the <div @vbbanners:0@ /div> code into my ad_navbar_below template, but all it shows is @vbbanners:0@ Any help would be greatly appreciated.

Thanks

- B

mdreamer 07-06-2011 06:07 AM

Hi,

First of all - Giovanni, thank you for this mod - its really good!

I've search this thread for ab answer and couldn't find it... When i have a flash ad that its click-able with a URL inside the SWF, how can i make it work? its working only when i use the URL destination of the MOD inside the banner management area.

Thanks
Maayan:)

BadgerDog 07-06-2011 10:35 AM

Has anyone else had problems with where footer ads used by is mod, actually end up at the top of the forums?

It works fine in Firefox, but Safari users are complaining that the ad ends up over top of the content at the top of vbCMS article pages.

Thanks for any feedback. :)

Regards,
Doug

Videx 07-06-2011 11:01 AM

Quote:

Originally Posted by CruiserCommando (Post 2217295)
I inserted the <div @vbbanners:0@ /div> code into my ad_navbar_below template, but all it shows is @vbbanners:0@

I do not believe that is the proper placeholder. Why do you have "div" in there? If you want to center it you need a div: "<div align="center"><!--@vbbanners:0@--></div>". You may need to read the manual again.

Quote:

Originally Posted by BadgerDog (Post 2217350)
It works fine in Firefox, but Safari users are complaining that the ad ends up over top of the content at the top of vbCMS article pages.

Working fine on my forum with Safari. Have you tried it yourself (don't type that you don't have Safari - it will take less time to just install it and try it yourself)? Link?

y2ksw 07-06-2011 12:54 PM

Quote:

Originally Posted by CruiserCommando (Post 2217295)
I'm sorry, I must be missing something in the set-up instructions. how is it that I get this ad banner to show up? I have it uploaded and I have it appearing in my AdminCP, but there is nothing showing up on my forum. I inserted the <div @vbbanners:0@ /div> code into my ad_navbar_below template, but all it shows is @vbbanners:0@ Any help would be greatly appreciated.


Thanks


- B

You probably need also to change the Options to @vbbanners:%d@. the default placeholder is <!--@vbbanners:%d@-->, so if you have not changed the options, you will have to use <!--@vbbanners:0@--> in your templates instead of @vbbanners:0@ ;)

y2ksw 07-06-2011 12:57 PM

Quote:

Originally Posted by mdreamer (Post 2217301)
Hi,

First of all - Giovanni, thank you for this mod - its really good!

I've search this thread for ab answer and couldn't find it... When i have a flash ad that its click-able with a URL inside the SWF, how can i make it work? its working only when i use the URL destination of the MOD inside the banner management area.

Thanks
Maayan:)

If your flash has already the right link, then you fill the Text field with the HTML which shows your banner and leave the other fields empty. In the case you have a Flash banner which internal URL is missing, erroneous or where you may want to track clicking, you would use the Flash wrapper, which embeds the flash file and ignores thus the internal URL, using yours instead.

y2ksw 07-06-2011 12:59 PM

Quote:

Originally Posted by BadgerDog (Post 2217350)
Has anyone else had problems with where footer ads used by is mod, actually end up at the top of the forums?

It works fine in Firefox, but Safari users are complaining that the ad ends up over top of the content at the top of vbCMS article pages.

Thanks for any feedback. :)

Regards,
Doug

I have no idea how you may make this happen ... unless a style definition with absolute position ... :confused:

In any case it's a style problem :)

BadgerDog 07-06-2011 03:26 PM

1 Attachment(s)
Quote:

Originally Posted by Videx (Post 2217354)
I do not believe that is the proper placeholder. Why do you have "div" in there? If you want to center it you need a div: "<div align="center"><!--@vbbanners:0@--></div>". You may need to read the manual again.

Working fine on my forum with Safari. Have you tried it yourself (don't type that you don't have Safari - it will take less time to just install it and try it yourself)? Link?

Quote:

Originally Posted by y2ksw (Post 2217402)
I have no idea how you may make this happen ... unless a style definition with absolute position ... :confused:

In any case it's a style problem :)

Ok, here's a screen capture of vbCMS article in Safari 5.05 (latest version) using a MacBook Pro running OSX. Note advert is placed over top of screen content at the top of forum instead of the bottom. (see pic on the left below)

Same screen of same vbCMS article on same machine using Firefox 5.0 places banner from this mod at bottom in footer. (see pic on the right below)

I don't understand where to look to fix it, given in works in one browser and not the other. :confused:

Note: does not happen on forum home screens or other screens, just vbCMS ..

Any help would be appreciated ... :)

Regards,
Doug

.... Safari ....................... FireFox


All times are GMT. The time now is 12:32 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.07369 seconds
  • Memory Usage 1,874KB
  • 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
  • (6)bbcode_php_printable
  • (29)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