vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - vbBannerRotator (https://vborg.vbsupport.ru/showthread.php?t=129418)

Frapegliko 10-17-2006 10:00 PM

vbBannerRotator
 
This is the first vbulletin Banner Rotator written in PHP that works with none Errors.
You can add Adsense, Adbrite, Banners or what you want.

- 2 Banner Rotator Sets added in product-bannerrotator-two.xml
- 1 Banner Rotator Set added in product-bannerrotator.xml

Version: 1.1.0
- No Template needs to create
- Second Set of Banners added (max 5 Banners)
- Import max 10 Banner Codes (vBulletin options)
- Enable or Disable vbBannerRotator & Banners (vBulletin options)

Version: 1.0.1
- Uncached templates fixed
Installation:

1. Download and Install this Product
1a. Click here to Install
2. Open your Header, Footer or what you want
3. Add $GLOBALS[bannerads] for Set 1 (max 10 Banners)
3a. Add $GLOBALS[banneradstwo] for Set 2 (max 5 Banners)
4. Go to vbBannerRotator in vBulletin Settings and insert your Codes
5. And Finish

Update: (since v.1.0.0 & 1.0.1)

1. Backup your Bannercodes from template: bannerbns
2. Restore (Delete) Template: bannerbns
3. Overwrite Old Product Version with New
4. Open your Header, Footer or what you want
5. Add $bannerads
6. Go to vbBannerRotator in vBulletin Settings and insert your Codes
7. And Finish

Demo:

Click Install

Frapegliko 10-18-2006 07:31 PM

~~~~~~~~~~~~~~~~~~~~

rajuthan 10-18-2006 07:54 PM

Sick

Snake 10-18-2006 08:23 PM

Oh my... this is AWESOME!

dieselpowered 10-18-2006 08:39 PM

Very well done my friend, piece of cake!

Hmmm would there be any way to make it rotate on its own without a page refresh?

soletrader 10-18-2006 09:22 PM

amazing. Wanted this badly. Thank you.

soletrader 10-18-2006 09:28 PM

If I wanted to create another location for a rotating banner.. can i simply rename the product and template?

I also tested it out with 1 banner and it seems like it disappears now and then. Is there a limit min and max banners it can hold?

rinkrat 10-19-2006 12:24 AM

Looks great!

I am getting this on the bottom of the page. How do I cache the template?

Quote:

Uncached templates: bannerbns (1)

rinkrat 10-19-2006 12:25 AM

Quote:

Originally Posted by xtremeoff-road
Very well done my friend, piece of cake!

Hmmm would there be any way to make it rotate on its own without a page refresh?


Most ad companies frown on autorefreshing ads.

ed146 10-19-2006 01:32 AM

I would like to place the $bannerads underneath the nav bar but right above where the main forum begins. Also would like to center it.
Any help is appreciated.

dieselpowered 10-19-2006 03:14 AM

Quote:

Originally Posted by rinkrat
Most ad companies frown on autorefreshing ads.

Ya you are probably right.

VPREATR 10-19-2006 04:21 AM

What's the chance of including an array to allow for multiple ad's being display in random? Prior to changes in vB3.0.x and 3.x.x, I used the following method: (called via an external .php file)

Code:

<?php
$banners = array('<a href="http://www.adone.com/" target="_blank"><img src="/banners/adone.gif"','
<a href="http://www.adtwo.com/" target="_blank"><img src="/banners/adtwo.gif"','
<a href="http://www.adthree.com" target="_blank"><img src="/banners/adthree.gif"','
<a href="http://www.adfour.com/" target="_blank"><img src="/banners/adfour.gif"');

shuffle($banners);
?>

<?php
for ( $i = 0; $i < 13; $i++ ) {
echo "<center>";
echo $banners[$i];
echo " border=\"0\" width=\"140\" height=\"100\"></a></center><br>";
}
?>

Please let me know your thoughts on such an addition.

Thanks!

Hornstar 10-19-2006 04:28 AM

Really well done. Waiting for some info on how to fix the uncached template tho.

Thanks.

Frapegliko 10-19-2006 06:46 AM

Quote:

Originally Posted by rinkrat
Looks great!

I am getting this on the bottom of the page. How do I cache the template?

fixed.. reupload product

Frapegliko 10-19-2006 06:54 AM

Quote:

Originally Posted by ed146
I would like to place the $bannerads underneath the nav bar but right above where the main forum begins. Also would like to center it.
Any help is appreciated.

Edit your banner code

<center>Your Code here</center>

Frapegliko 10-19-2006 07:03 AM

Quote:

Originally Posted by soletrader
If I wanted to create another location for a rotating banner.. can i simply rename the product and template?


I also tested it out with 1 banner and it seems like it disappears now and then. Is there a limit min and max banners it can hold?

there is no limit..

Frapegliko 10-19-2006 07:11 AM

Quote:

Originally Posted by xtremeoff-road
Very well done my friend, piece of cake!

Hmmm would there be any way to make it rotate on its own without a page refresh?

u can use iframes in your code.

soletrader 10-19-2006 03:08 PM

How do I add a second set of banners on a different part of the forum.

$bannerads would simply give me the same set.

rinkrat 10-19-2006 05:26 PM

I'm still getting the uncached template after the upgrade.

Uncached templates: bannerbns (1)

VPREATR 10-19-2006 05:55 PM

Frapegliko:
What's the chance of you adding multiple image output? It works great for randomizing a single image from a listing of links; randomizing and outputting several images at the same time so each banner is displayed in a different sequence (as mentioned a few posts above) would be very helpful.

Thanks!

Frapegliko 10-19-2006 07:13 PM

Quote:

Originally Posted by rinkrat
I'm still getting the uncached template after the upgrade.

Uncached templates: bannerbns (1)

rinkrat.. disable all hacks exc. Banner Rotator

midirtrider 10-19-2006 07:21 PM

how do I get the rotating banner to go to the right of my BB's banner (which is on the left? ) Im talking in the header..

this site..

www.michiganreefers.com is how I want to do it..

www.midirtriders.com <-- is my site.. and I would like to intergrate this into the right side of my sites banner in the header? possible?

aycan555 10-19-2006 07:41 PM

wooooooooooow thats great hack man, thank you verry much...

dieselpowered 10-19-2006 08:45 PM

Quote:

Originally Posted by Frapegliko
u can use iframes in your code.
if you want to add your ad codes in a file just deinstall vbbannerrotator product and upload this Plugin
In your forum rootfolder upload bannerbns.txt with your code

Not quite sure my friend how iframes would cause it to refresh on its own...you will have to forgive the ignornance :)

Stunner 10-20-2006 03:42 PM

For some reason this isn't working AT ALL for me.
Edit: fixed it....sorta

project-Buckfas 10-20-2006 06:47 PM

Looks great. Thanks Frapegliko

Greek76 10-20-2006 09:24 PM

Frapegliko with a little milk. How do you add php code for a banner? I honestly have no clue.. Thanks

Frapegliko 10-21-2006 12:23 PM

New Version available

Virtuosofriend 10-21-2006 12:38 PM

Awesome work. Sixaritiria ;)

dklassen 10-21-2006 01:46 PM

I installed the product but I don't see it in admincp. Did I miss a step?

Frapegliko 10-21-2006 01:53 PM

Quote:

Originally Posted by dklassen
I installed the product but I don't see it in admincp. Did I miss a step?

In your vBulletin Settings

Category: vbBannerRotator

Frapegliko 10-21-2006 04:38 PM

Quote:

Originally Posted by Greek76
Frapegliko with a little milk. How do you add php code for a banner? I honestly have no clue.. Thanks

:beard: :smoke:

soletrader 10-21-2006 06:23 PM

Lets say I want to add two different sets of rotating baners on the forum.

One on top and one on the bottom.

How would I go about doing this?

Frapegliko 10-21-2006 08:47 PM

Quote:

Originally Posted by soletrader
Lets say I want to add two different sets of rotating baners on the forum.

One on top and one on the bottom.

How would I go about doing this?

added.. Check Description

Frapegliko 10-21-2006 08:51 PM

Quote:

Originally Posted by Virtuosofriend
Awesome work. Sixaritiria ;)

Euxaristo :D

Stangsta 10-21-2006 09:21 PM

any chance on getting this for 3.5.x?

Criticize 10-22-2006 02:42 AM

Probably works for 3.5.x

soletrader 10-22-2006 04:45 AM

Thank you Frapegliko :)

soletrader 10-22-2006 05:49 AM

The banner-two... it says I have already installed it. Overwriting this will probably overwrite the initial product.

Coud you look into this? Thanks

Stangsta 10-22-2006 06:13 AM

Quote:

Originally Posted by Criticize
Probably works for 3.5.x

No, it doesn't. Theres a DB entry that does not exist on 3.5, however he helped me out and removed it from the release and it works flawlessly. Im sure he will release it soon, as he has more enhancements planed, but lack of free time.


All times are GMT. The time now is 07:13 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.01479 seconds
  • Memory Usage 1,816KB
  • 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
  • (1)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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