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 07-18-2011 07:09 AM

Maybe somebody of the designers may help you. It's an HTML issue where and how to show a banner ;)

CruiserCommando 07-18-2011 05:02 PM

Quote:

Originally Posted by Videx (Post 2217465)
I agree the way that pdf manual was written it will fly right over the heads of many users. It needs a "Quick setup" on page 1 that tells you to simply:
  1. Go to AdminCP>Advertising>Add new Ad
  2. Click "Above Footer", name the ad "RBS 0 Above Footer" and paste this into the Ad HTML box: "<div align="center"><!--@vbbanners:0@--></div>"
  3. Hit Save.
... then continue with setting up your first non-flash simple test banner. At this point there's so much confusion I think a test banner or two - simple .jpgs - should probably just be included.

still not working, here are some screen shots of the various pages involved, maybe this will help, sorry for being such a novice

http://www.cruiserinnovations.com/fo...reenshot 1.JPG
http://www.cruiserinnovations.com/fo...reenshot 2.JPG
http://www.cruiserinnovations.com/fo...age banner.JPG

Videx 07-18-2011 05:42 PM

At the risk of being obvious, you have "Active = no".

CruiserCommando 07-18-2011 07:02 PM

Quote:

Originally Posted by Videx (Post 2222060)
At the risk of being obvious, you have "Active = no".

it wasn't active in this screenshot, but the result is the same when it is

Sworm 07-20-2011 07:37 AM

Hi all, in my header template i want to add a 468x60 image not clickable but rotable.... it is possible to use this hack just only to rotate my banner images?

y2ksw 07-21-2011 09:58 AM

Quote:

Originally Posted by CruiserCommando (Post 2222045)
still not working, here are some screen shots of the various pages involved, maybe this will help, sorry for being such a novice

...

You also have <@vbbanners:0@> while it should read @vbbanners:0@, according to the options. Browsers may interpret it as an unknown tag and discard!

People, please read, look closely, verify! As said at least 10 times in this thread, make sure to match the setting of your options, or leave as it is.

y2ksw 07-21-2011 09:59 AM

Quote:

Originally Posted by Sworm (Post 2222752)
Hi all, in my header template i want to add a 468x60 image not clickable but rotable.... it is possible to use this hack just only to rotate my banner images?

Please see post 989 of this thread for more about the unsupported in-place rotating feature. :)

wampforum 07-22-2011 11:58 AM

is it possible to use this to display on a non vb page? I have this set on my vb forum but my site links with a non vb site that I want to show ads on. Im trying to be able to rotate paid for ads with adsense ones and this does that very well.
Sites are on the same server

y2ksw 07-22-2011 03:28 PM

Quote:

Originally Posted by wampforum (Post 2223545)
is it possible to use this to display on a non vb page? I have this set on my vb forum but my site links with a non vb site that I want to show ads on. Im trying to be able to rotate paid for ads with adsense ones and this does that very well.
Sites are on the same server

Yes, with the code from the unsupported add-on you may show banners on other pages. (post 989)

Basically you create an iframe which calls that script. The script connects to vBulletin and gets the banner. Depending on what you want, you may remove the REFRESH meta tag (no in-place rotating) or leave it (reloads new banners after a certain interval).

salvador21 07-22-2011 03:59 PM

Quote:

Originally Posted by y2ksw (Post 2125608)
Here, as an unofficial addon, you get the autorefreshing page (tested). It needs:

- a text editor;
- a refresh time of your choice (see metatag refresh in file, now at 10 seconds);
- a banner location (see placeholder in file, now at position 0);
- at least a banner for that location;
- a global target of a new page aka _blank (RBS options), else you jump into the iframe;
- a template modification for a 468x60 banner:
HTML Code:

<iframe src="rbs_iframe.php" align="center" frameborder="0" height="60" width="468" scrolling="no"></iframe>
Please note: with smaller banners you get white borders, with larger than the iframe area, they are clipped.

Where does the rbs_iframe.php file go please?

y2ksw 07-24-2011 04:13 PM

Quote:

Originally Posted by salvador21 (Post 2223583)
Where does the rbs_iframe.php file go please?

It would normally go into the forums folder.

salvador21 07-24-2011 05:26 PM

Quote:

Originally Posted by y2ksw (Post 2224378)
It would normally go into the forums folder.

Yes, sorry I realised that just after I posted. I was just confused when I saw: ./global.php in the file. I thought that implied this file needed to be in some other directory. Obviously I was wrong.

wampforum 07-27-2011 12:49 PM

hi,
I have installed the add on iframe and wondered if you could help me. I know its unsupported so no worries if not.
We can get the rotator working fine but it wont display properly. The iframe seems to be altering the size of the banner slightly and its throwing the sidebar we placed it in out a bit

salvador21 07-27-2011 12:54 PM

Quote:

Originally Posted by wampforum (Post 2225551)
hi,
I have installed the add on iframe and wondered if you could help me. I know its unsupported so no worries if not.
We can get the rotator working fine but it wont display properly. The iframe seems to be altering the size of the banner slightly and its throwing the sidebar we placed it in out a bit

That could be the nature of iFrames, they are different in different browsers. For a start make sure in your CSS {padding=0px;margin=0px} and the same for what the iframe is referencing

y2ksw 07-28-2011 03:40 PM

Yes, it's likely your css styles influence the behaviour of iframes. With no settings, iframes have a border and scrollbars, if needed. These features must be disabled, of course ;)

myke2008 07-30-2011 09:14 PM

1 Attachment(s)
could someone tell me how to troubleshoot a ghost ad banner that only appears in Google chrome? I have the below navbar location turned off but there is an ad displayed anyway. and If I turn the location on then there are 2 ads displayed in chrome and only one in firefox and IE.

If you have chrome installed and want to see what I mean you check this page, www.syfydesigns.com

another oddity is that you must be logged in to see the second banner, or ghost banner. So I guess visiting the site will do no good...

I attached a screen capture of the area I am talking about when you use Chrome

Videx 07-30-2011 09:48 PM

You could have given us a test account to log in with. But you're right, as a Guest everything looks normal to me.

myke2008 07-30-2011 10:11 PM

thanks for the response, I have discovered that it is the ad from the footer witch is being displayed at the top of the page in Google Chrome.

I have tried putting the code into both the ad_global_above_footer and the ad_footer_start templates and neither produces the desired effect.

I will just have to find a place for the code that works for FF, IE and GC

y2ksw 07-31-2011 06:53 AM

It's an issue which seems to happen lately to more people ... it has to do with the div tag with no class or style attached and it seems as if Chrome does some magic with simple div tags. Please see here: https://vborg.vbsupport.ru/showpost....postcount=1398

:)

jnmann 07-31-2011 10:15 AM

Is there a noobie guide here for setting a banner up? I've installed the mod but I'm a little lost with regards to getting started from there :-) The sample ads don't appear to be dsiplaying by default or I could work with those.

y2ksw 07-31-2011 01:48 PM

Quote:

Originally Posted by jnmann (Post 2227198)
Is there a noobie guide here for setting a banner up? I've installed the mod but I'm a little lost with regards to getting started from there :-) The sample ads don't appear to be dsiplaying by default or I could work with those.

Maybe this post: https://vborg.vbsupport.ru/showpost....postcount=1364 :)

jnmann 07-31-2011 02:00 PM

Brilliant, thank you. I hadn't realised you had to use in conjunction with the in-built advertising module. I can now see a test banner. I'll take a look to see how easy it is to add my own banners...thanks again.

Do you have to define the ad positions or are they built in? I tried to change the one that works and can't see it in any postion other than 0.

myke2008 07-31-2011 11:18 PM

Quote:

Originally Posted by y2ksw (Post 2227151)
It's an issue which seems to happen lately to more people ... it has to do with the div tag with no class or style attached and it seems as if Chrome does some magic with simple div tags. Please see here: https://vborg.vbsupport.ru/showpost....postcount=1398

:)

thanks for pointing me in the right direction, that code works good

y2ksw 08-01-2011 07:38 AM

Quote:

Originally Posted by jnmann (Post 2227251)
Brilliant, thank you. I hadn't realised you had to use in conjunction with the in-built advertising module. I can now see a test banner. I'll take a look to see how easy it is to add my own banners...thanks again.

Do you have to define the ad positions or are they built in? I tried to change the one that works and can't see it in any postion other than 0.

You can use it together with the in-built advertising module, but I would suggest not. My suggestion is to use directly the templates, because it is significantly faster on large sites ;)

jnmann 08-09-2011 04:07 PM

Quote:

Originally Posted by y2ksw (Post 2227548)
You can use it together with the in-built advertising module, but I would suggest not. My suggestion is to use directly the templates, because it is significantly faster on large sites ;)

So I disable Ads in the in-built module, I;ve enabled ad in this mod but it still doesn't show...I guess I'm doing something wrong :-(

Just not getting this at all.

y2ksw 08-10-2011 09:12 AM

Did you watch the movie in the very first post?

jnmann 08-10-2011 09:22 AM

OK, followed the video through to the letter and still nothing.

jnmann 08-10-2011 09:43 AM

OK, reinstalled the package and I have 2 banners...at long last! How do I get them to randomly rotate?

Does rotate simply mean randomly appear on screen refresh?

MentaL 08-10-2011 12:19 PM

can you disable stats with this?

ComoEstaEso-com 08-17-2011 01:30 AM

Hello,
This is working in our vB 4.1.5 PL1 installation with vBSEO
I followed the formatting instruction on the PDF.

I think that my questions are basics that are flying over my head.
A test banner is not showing, when called from a post in a thread.

I have the default Google Ads enabled in "ID" 1 and 2.
I created a test banner, located in ID 3.

Can I call this banner within a post?
What about calling it within a CMS Article?

I place the @vbbanners:3@ yet come up with no banner in the post or Article.

Am I messing up somewhere?
Something I should check?

Thank you very much for your work and your help!! Greatly appreciated!

========
Adding a little bit more:
On the test thread, I placed on a post @vbbanners:5@
Then set the test banner's Position to 5

When I load the test thread, the banner comes up at the very top of the page, before anything else.
It has
Code:

" />
at the end.
In addition, the "Destination URL" is not working (ie: the image is not "clickable" for a jump to the URL)

Messing up somewhere?

y2ksw 08-17-2011 10:14 AM

Quote:

Originally Posted by jnmann (Post 2231751)
OK, reinstalled the package and I have 2 banners...at long last! How do I get them to randomly rotate?

Does rotate simply mean randomly appear on screen refresh?

yes

y2ksw 08-17-2011 10:18 AM

Quote:

Originally Posted by MentaL (Post 2231801)
can you disable stats with this?

you may change the code accordingly, changing from:

PHP Code:

// Increment impression counts
if(count($qids))
{
    
$SQL "UPDATE " TABLE_PREFIX "rbs_banners 
        SET impressions=impressions+1 
        WHERE id IN(" 
implode(','$qids) . ")";
    
$vbulletin->db->query_write($SQL);


to:
PHP Code:

// Increment impression counts
if(&& count($qids))
{
    
$SQL "UPDATE " TABLE_PREFIX "rbs_banners 
        SET impressions=impressions+1 
        WHERE id IN(" 
implode(','$qids) . ")";
    
$vbulletin->db->query_write($SQL);


Remember you have to repeat this after every upgrade ... unless I'll add it to the options, which is actually a good tip :)

y2ksw 08-17-2011 10:24 AM

Quote:

Originally Posted by ComoEstaEso-com (Post 2234314)
Hello,
This is working in our vB 4.1.5 PL1 installation with vBSEO
I followed the formatting instruction on the PDF.

I think that my questions are basics that are flying over my head.
A test banner is not showing, when called from a post in a thread.

I have the default Google Ads enabled in "ID" 1 and 2.
I created a test banner, located in ID 3.

Can I call this banner within a post?
What about calling it within a CMS Article?

I place the @vbbanners:3@ yet come up with no banner in the post or Article.

Am I messing up somewhere?
Something I should check?

Thank you very much for your work and your help!! Greatly appreciated!

========
Adding a little bit more:
On the test thread, I placed on a post @vbbanners:5@
Then set the test banner's Position to 5

When I load the test thread, the banner comes up at the very top of the page, before anything else.
It has
Code:

" />
at the end.
In addition, the "Destination URL" is not working (ie: the image is not "clickable" for a jump to the URL)

Messing up somewhere?

The number N in the @vbbanners:N@ placeholder stands for the location. The banner ID is only useful for statistics and for click tracking.

If your test banner with ID 3 is setup at location 0, your placeholder should look like:

@vbbanners:0@

If you post @vbbanners:0@ in a message, a banner will be inserted. This also applies to the CMS and anywhere else. If you preview or edit a post with @vbbanners:0@ however, you have to reinsert the placeholder again before saving.

blowy 08-18-2011 02:42 PM

Good Evening all

I am having a problem with this. Since I have upgraded my VB and Skin this dont work anymore I have all the banners and codes in position 2 but when I enable them they dont display or rotate.

My site is http://uk-betting-tips.co.uk

I have had to install the banner manuely


cheers

y2ksw 08-18-2011 03:31 PM

Quote:

Originally Posted by blowy (Post 2234955)
Good Evening all

I am having a problem with this. Since I have upgraded my VB and Skin this dont work anymore I have all the banners and codes in position 2 but when I enable them they dont display or rotate.

My site is http://uk-betting-tips.co.uk

I have had to install the banner manuely


cheers

You will have to insert the placeholders into your new style :)

blowy 08-18-2011 03:36 PM

ah rite ok how do i do that

y2ksw 08-18-2011 06:39 PM

The same way you did in the previous style :)

duketxboy 08-18-2011 11:10 PM

Quote:

Originally Posted by y2ksw (Post 2235044)
The same way you did in the previous style :)

once again thanks for all your help

viper357 08-19-2011 05:28 AM

Hi, I am running on 3.8.5 and am struggling with a flash banner, I can get it to display correctly, however, as soon as I wrap it so that I can use a URL on the flash banner, the banner loops, the client does not want the banner to loop, the banner must stop after the first animation, but the only way I can get a link to work on the banner is by wrapping it in your code, but then the banner loops, is there any way I can stop the banner from looping? Thanks.

y2ksw 08-19-2011 09:55 AM

Quote:

Originally Posted by viper357 (Post 2235224)
Hi, I am running on 3.8.5 and am struggling with a flash banner, I can get it to display correctly, however, as soon as I wrap it so that I can use a URL on the flash banner, the banner loops, the client does not want the banner to loop, the banner must stop after the first animation, but the only way I can get a link to work on the banner is by wrapping it in your code, but then the banner loops, is there any way I can stop the banner from looping? Thanks.

All the flash activity is defined inside. If you have a banner which needs to be corrected externally, the only other whay you have is not using the wrapper at all and paste the whole object/embed code into the "Text" box.

However, train your customers! :)


All times are GMT. The time now is 06:56 PM.

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.03994 seconds
  • Memory Usage 1,858KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (19)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