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)

Idawg 01-31-2010 04:52 AM

Okay, I might sound like a nub here, but I have used this mod in the past (3.7 board). I am having issues getting a banner to appear ANYWHERE..

I currently have this code in my Navbar, at the bottom: <center>@vbbanners@</center>

And that is all that appears below my navbar (centered)..

And I take it that is what you use for position 0???

If I want to use position 2, is this what I do - @vbbanners:2@??

Is there a master 'Enable' button somewhere that I missed??

Or maybe it is late and I am cold LOL

Thanks !!

djbaxter 01-31-2010 05:07 AM

Quote:

Originally Posted by Idawg (Post 1971010)
Okay, I might sound like a nub here, but I have used this mod in the past (3.7 board). I am having issues getting a banner to appear ANYWHERE..

I currently have this code in my Navbar, at the bottom: <center>@vbbanners@</center>

And that is all that appears below my navbar (centered)..

And I take it that is what you use for position 0???

If I want to use position 2, is this what I do - @vbbanners:2@??

Is there a master 'Enable' button somewhere that I missed??

Or maybe it is late and I am cold LOL

Thanks !!

That's about where I got confused, too. :o

You need to place the code into the templates as follows:

PHP Code:

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

PHP Code:

<!--@vbbanners:1@--> 

PHP Code:

<!--@vbbanners:2@--> 

... etc.

Include the <! -- and --> tags.

Idawg 01-31-2010 05:40 AM

When I include the <!-- and -->, the code completely disappears.. Nothing happens

<center><!--@vbbanners:2@--></center> is the code I am using

Idawg 01-31-2010 05:48 AM

BTW, I set position of banner to 2, so I used @vbbanners:2@, enabled, I set the destination, copied my html code for the banner into the text box, placed the image url in there ect ect... And I placed the code at the very bottom of the Navbar template, right after the </vb:if>

Can I use Ad Location templates instead??

djbaxter 01-31-2010 05:58 AM

Quote:

Originally Posted by Idawg (Post 1971022)
BTW, I set position of banner to 2, so I used @vbbanners:2@, enabled, I set the destination, copied my html code for the banner into the text box, placed the image url in there ect ect... And I placed the code at the very bottom of the Navbar template, right after the </vb:if>

Can I use Ad Location templates instead??

Yes you can and they work better. With some templates, it's easy to misplace the ad and mess up the page opr lose the ad.

djbaxter 01-31-2010 05:59 AM

Yiu can also use the new Advertising feature in the ACP for 4.x... avoid the ones for the header because they're buggy but the others work fine.

At the moment, I'm using all three methods

y2ksw 01-31-2010 09:07 AM

Quote:

Originally Posted by Idawg (Post 1971010)
Okay, I might sound like a nub here, but I have used this mod in the past (3.7 board). I am having issues getting a banner to appear ANYWHERE..

I currently have this code in my Navbar, at the bottom: <center>@vbbanners@</center>

And that is all that appears below my navbar (centered)..

And I take it that is what you use for position 0???

If I want to use position 2, is this what I do - @vbbanners:2@??

Is there a master 'Enable' button somewhere that I missed??

Or maybe it is late and I am cold LOL

Thanks !!

http://www.pagerobot.com/pub/rbs/rbs_01.htm

Please see this tutorial which shows how to implement your first banner with version 2.2.2 of this product. It also shows exactly where and how to setup an alternative placeholder, and gives a demonstration of erratic and fixed insertion of placeholders.

Idawg 01-31-2010 04:36 PM

Tytyty !!!

Idawg 01-31-2010 05:53 PM

I can get the adsense working now, but images, no.. Is there a bug somewhere in 4.0.1 that messes with this?? I am working on a business forum with heavy advertisments in it. I am still not impressed with 4 as I am with 3.8.4..

Does this mod work better in 3.8.x??

y2ksw 01-31-2010 09:47 PM

Quote:

Originally Posted by Idawg (Post 1971457)
I can get the adsense working now, but images, no.. Is there a bug somewhere in 4.0.1 that messes with this?? I am working on a business forum with heavy advertisments in it. I am still not impressed with 4 as I am with 3.8.4..

Does this mod work better in 3.8.x??

It works the same way as with any version from 3.6.5 onwards. Should I make a tutorial for image banners too? :)

Videx 01-31-2010 10:57 PM

Quote:

Originally Posted by Idawg (Post 1971457)
I can get the adsense working now, but images, no.. Is there a bug somewhere in 4.0.1 that messes with this?? I am working on a business forum with heavy advertisments in it.

Images should be a lot easier than Google. Double check the paths to the images. I am unaware of a vb4 bug that would affect images you call with this mod.

y2ksw 02-01-2010 06:52 AM

The tutorial How-to create my first banner does also show how to insert image banners. Just make sure, the images are accessible and that the typically unused fields are unused ;)

A typical image banner takes just a name, the image URL and the destination URL.

y2ksw 02-03-2010 07:26 AM

A minor bug fix has been released (2.2.3). It repairs a case where unused placeholders remain visible, moves the function insertion to the hook global_start and changes the product URL to this discussion. No file has changed, but the product-rbs.xml.

AnabolicResourc 02-05-2010 06:03 PM

Great mod !

Is there any chance we can add .swf files also ?

y2ksw 02-05-2010 07:51 PM

Quote:

Originally Posted by AnabolicResourc (Post 1975550)
Great mod !

Is there any chance we can add .swf files also ?

This depends on the swf files :)

Please see: https://vborg.vbsupport.ru/showthrea...44#post1839744

One of the next releases will come with a Flash Wrapper which is currently being developed and tested.

Derekclarke 02-05-2010 09:18 PM

well I am trying to Install this on VB 4.1 and i have done everything exactly as shown in the video and I have no banners showing.

I am totally Baffled.

dimthan 02-06-2010 08:24 AM

nice add!!!

dimthan 02-06-2010 08:54 AM

hi i m trying to add a flash banner (swf) but without result . i alreadt the post about it .

i put in the code the following .
<div>
<div style="z-index: -1; position: absolute; height: 468px; width: 60px;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="468" height="60">
<param name="movie" value="forum/images/banners/468x60.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="forum/images/banners/468x60.swf" quality="high" wmode="transparent" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60" ></embed>
</object>
</div>
<div style="z-index: 10; position: absolute; width: 468px; height: 60px;">
<a href="http://www.domain.tld/yourlink" target="_blank"><img alt="" border="0" height="60" src="forum/images/banners/transparent.gif" width="468" /></a>

</div>
</div>

and to the url field the following

http://www.fun.com/forum/images/banners/transparent.gif

but nothing appears , only the transparent images

y2ksw 02-06-2010 08:22 PM

Quote:

Originally Posted by Derekclarke (Post 1975644)
well I am trying to Install this on VB 4.1 and i have done everything exactly as shown in the video and I have no banners showing.

I am totally Baffled.

Have you tried it with the default 4.x style?

y2ksw 02-06-2010 08:27 PM

Quote:

Originally Posted by dimthan (Post 1975921)
hi i m trying to add a flash banner (swf) but without result . i alreadt the post about it .

i put in the code the following .
<div>
<div style="z-index: -1; position: absolute; height: 468px; width: 60px;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="468" height="60">
<param name="movie" value="forum/images/banners/468x60.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="forum/images/banners/468x60.swf" quality="high" wmode="transparent" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60" ></embed>
</object>
</div>
<div style="z-index: 10; position: absolute; width: 468px; height: 60px;">
<a href="http://www.domain.tld/yourlink" target="_blank"><img alt="" border="0" height="60" src="forum/images/banners/transparent.gif" width="468" /></a>

</div>
</div>

and to the url field the following

http://www.fun.com/forum/images/banners/transparent.gif

but nothing appears , only the transparent images

Maybe you need to use full paths to the flash, and replace the paths with your own file data.

The sample is intended to give only an idea about implementing a Flash banner and is for no reason complete or with "absolute" values.

bsalu 02-07-2010 03:41 AM

Hi,

I have installed this Mod. I followed the instruction and watched the video few times. But i cant just get this mod work with my banners.

It shows adsense banners but it goes blank when it suppose to show the image banner i have added.

I checked the link for image banner and it is correct but it just doesnt show in banner rotator.

Thanks for help

y2ksw 02-07-2010 10:07 AM

Quote:

Originally Posted by bsalu (Post 1976425)
Hi,

I have installed this Mod. I followed the instruction and watched the video few times. But i cant just get this mod work with my banners.

It shows adsense banners but it goes blank when it suppose to show the image banner i have added.

I checked the link for image banner and it is correct but it just doesnt show in banner rotator.

Thanks for help

Please make sure that you actually can access the banners you have specified, in a test page. There is no way to show a banner which isn't available on a normal HTML. Though you may use relative paths relative to your forum home, it is far better to use full paths to your images and links, since other products benefit from it (e.g. vbadvanced).
Starting with version 2.2.3 you may clone a banner by klicking the "Duplicate" button. This way you may modify a working banner slightly. In this case, you may clone one of the working adsense banners and paste your image and destination URL, remove the adsense and save. If your images are there, the banner must show up (in rotation) :)

dimthan 02-07-2010 12:00 PM

Quote:

Originally Posted by y2ksw (Post 1976249)
Maybe you need to use full paths to the flash, and replace the paths with your own file data.

The sample is intended to give only an idea about implementing a Flash banner and is for no reason complete or with "absolute" values.

even if i use the full path i dont have any result with the flash . i can see only the transparent gif and if i click on it , goes to the advertised domain . but finally i cant see the flash banner

speedracer68 02-07-2010 03:54 PM

Can I get this to rotate banners on the right side of my forum in a random order?

See http://www.pro-touring.com/forum/ for my old site example

y2ksw 02-07-2010 04:03 PM

Quote:

Originally Posted by speedracer68 (Post 1976744)
Can I get this to rotate banners on the right side of my forum in a random order?

See http://www.pro-touring.com/forum/ for my old site example

Yes. You would have to add for at least each item a record, and in your template a finite number of placeholders, e.g. for 3 random banners of the same kind:

<!--vbbanners:0@--><br />
<!--vbbanners:0@--><br />
<!--vbbanners:0@--><br />

If you like to show groups of banners in a certain order, you may do this:

<!-- position 0 banners -->
<!--vbbanners:0@--><br />
<!--vbbanners:0@--><br />
<!--vbbanners:0@--><br />

<!-- position 1 banners -->
<!--vbbanners:1@--><br />
<!--vbbanners:1@--><br />
<!--vbbanners:1@--><br />

and so on, with up to 10 different groups.

speedracer68 02-07-2010 04:12 PM

Hmm, might be over my head. At times I might have 80 or more banners rotating on the right.

y2ksw 02-07-2010 04:38 PM

1 Attachment(s)
Quote:

Originally Posted by dimthan (Post 1976589)
even if i use the full path i dont have any result with the flash . i can see only the transparent gif and if i click on it , goes to the advertised domain . but finally i cant see the flash banner

I have noticed there are some differences between browsers. This is why I am actually at developing a flash wrapper which will solve this problem for all.

I attach it here and you may try it at your own. Until it will get publically released, the flash banner insertion will work only by filling the code by hand to fit your needs. I suggest to use only full paths.

Since it is a work in progress, I can't guarantee it will work on all systems and browsers.

Sample:
Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" border="0" width="your_banner_width" height="your_banner_height">
 <param name="movie" value="http://www.your_domain.tld/rbs_wrapper.swf"/>
 <param name="FlashVars" value="banner=http://www.domain.tld/your_flash_file.swf&jlink=http://www.domain.tld/your_destination_link&bwidth=your_banner_width&bheight=your_banner_height"/>
 <embed src="http://www.your_domain.tld/rbs_wrapper.swf" FlashVars="banner=http://www.domain.tld/your_flash_file.swf&jlink=http://www.domain.tld/your_destination_link&bwidth=your_banner_width&bheight=your_banner_height" loop="false" pluginspage="http://www.macromedia.com/go/get/flashplayer" type="application/x-shockwave-flash" width="your_banner_width" height="your_banner_height"></embed>
</object>


y2ksw 02-07-2010 05:07 PM

Quote:

Originally Posted by speedracer68 (Post 1976751)
Hmm, might be over my head. At times I might have 80 or more banners rotating on the right.

That's quite a number ... :)

dimthan 02-07-2010 06:16 PM

Quote:

Originally Posted by y2ksw (Post 1976776)
I have noticed there are some differences between browsers. This is why I am actually at developing a flash wrapper which will solve this problem for all.

I attach it here and you may try it at your own. Until it will get publically released, the flash banner insertion will work only by filling the code by hand to fit your needs. I suggest to use only full paths.

Since it is a work in progress, I can't guarantee it will work on all systems and browsers.

Sample:
Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" border="0" width="your_banner_width" height="your_banner_height">
 <param name="movie" value="http://www.your_domain.tld/rbs_wrapper.swf"/>
 <param name="FlashVars" value="banner=http://www.domain.tld/your_flash_file.swf&jlink=http://www.domain.tld/your_destination_link&bwidth=your_banner_width&bheight=your_banner_height"/>
 <embed src="http://www.your_domain.tld/rbs_wrapper.swf" FlashVars="banner=http://www.domain.tld/your_flash_file.swf&jlink=http://www.domain.tld/your_destination_link&bwidth=your_banner_width&bheight=your_banner_height" loop="false" pluginspage="http://www.macromedia.com/go/get/flashplayer" type="application/x-shockwave-flash" width="your_banner_width" height="your_banner_height"></embed>
</object>




Great support !!!!!!
this worked without using ur file rbs_wrapper.swf , only with entering the code !
thx men !

y2ksw 02-07-2010 11:47 PM

Quote:

Originally Posted by dimthan (Post 1976828)
Great support !!!!!!
this worked without using ur file rbs_wrapper.swf , only with entering the code !
thx men !

You're welcome :)

Also you may now try the integrated flash banner support (still beta) of version 2.2.4.

AnabolicResourc 02-08-2010 07:12 PM

Couldn't get it to work with the code and when i came back to double check i saw you 2.2.4 update.
Just put the .swf file in and it's working right away !

Thanks mate !

LCN2007 02-10-2010 10:59 AM

Is it possible to add the ability to add more ads than we can out of the box?

y2ksw 02-10-2010 04:15 PM

Quote:

Originally Posted by LCN2007 (Post 1979014)
Is it possible to add the ability to add more ads than we can out of the box?

You mean to add more positions?

Every single one of the 10 positions may hold an unlimited number of banners. Every banner may be assigned to show to one or more forum sections and/or to specific usergroups.

These features give you a myriad of divisions which make appear banners right where you wish. If you assign to each position a few banners at most, you are not using this product to its full extent. On most boards, 1 or 2 postitions suffice to show all your banners classified to certain areas, and the offer of 10 positions really overdo.

LCN2007 02-11-2010 02:48 AM

OK cool i was misunderstanding how it all came together.

Thank you sir ill give it a whirl.

robotnjik 02-15-2010 02:31 PM

Does anyone else experienced problem with VbSEO 3.5?

I installed today vbseo and everything is fine, but after that, all banners are missing.

When I turn off vbseo, banners are back.

This is only plugin I have problem with.

djbaxter 02-15-2010 02:50 PM

Quote:

Originally Posted by robotnjik (Post 1982986)
Does anyone else experienced problem with VbSEO 3.5?

I installed today vbseo and everything is fine, but after that, all banners are missing.

When I turn off vbseo, banners are back.

This is only plugin I have problem with.

I'm using this add-on with vBSEO 3.5 RC2 on vBulletin 4.01 and I'm not having that problem.

1. It may be that you have another mod that's interacting with this one and vBSEO.

2, There may be something in the vBSEO settings that is a problem in your case.

robotnjik 02-15-2010 03:12 PM

Quote:

Originally Posted by djbaxter (Post 1983006)
I'm using this add-on with vBSEO 3.5 RC2 on vBulletin 4.01 and I'm not having that problem.

1. It may be that you have another mod that's interacting with this one and vBSEO.

2, There may be something in the vBSEO settings that is a problem in your case.

Solved!

it is in Cleanup HTML Code? under Other Enhancements setting in vbseo! It was on "yes" and when I put on "no", everything is fine. Thanks!

djbaxter 02-15-2010 04:21 PM

Quote:

Originally Posted by robotnjik (Post 1983027)
Solved!

it is in Cleanup HTML Code? under Other Enhancements setting in vbseo! It was on "yes" and when I put on "no", everything is fine. Thanks!

There you go. I've never used that feature.

y2ksw 02-16-2010 09:39 AM

Quote:

Originally Posted by robotnjik (Post 1983027)
Solved!

it is in Cleanup HTML Code? under Other Enhancements setting in vbseo! It was on "yes" and when I put on "no", everything is fine. Thanks!

Thanks. This problem seems to be present quite often. :up:

To work around, it is necessary to change the placeholder from the HTML comment to something else, such as @vbbanners:%d@. In this case, vbSEO will keep the banners, too :)

HappyFeet 02-16-2010 05:03 PM

Thank you for the flash addition! Works perfect, thanks again. Very nice...:up:


All times are GMT. The time now is 09:16 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.02776 seconds
  • Memory Usage 1,867KB
  • 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
  • (3)bbcode_php_printable
  • (20)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