![]() |
Banner Rotator (Definitive Mod)
Hi you there. I was looking for a really nice Banner Rotator Mod, but i couldn't find one that had what i need. So i decided to code one. Finished it right now and i'll share with you.
So, what does this hack do? - This mod allows you to add lots of forum banners. - The banners will be automatically randomized everytime you reload your forums. How can i work with it? - It's all controlable through AdminCP. - NOT NEEDED ftp access to upload banners. - You CAN upload banners (jpg, gif & png) through AdminCP. - You can set a description for individual banners. - You can edit the description easily and individually. - You can delete the banners through AdminCP (this function delete the banner from the ftp) - You can activate/deactivate you banners. - Deactivated banners remains in the ftp, but will not be shown on forum home. How can i install? (Time to install: 1 minute if you are fast enough :)) - Upload all the files contained in the "upload" folder inside the zip to your forum root directory and CHMOD 77 the folder "/image/banners" - Install product-brotator. - Go to your AdminCP > Style Manager > YOUR SKIN > Edit HEADER template and find: Code:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /> Code:
<center>$banner</center> You can change banner width and height editing the plugin called "Banner Rotator Generator" and changing the values: Code:
width=879 height=160 I really hope you enjoy this hack and, please, if you find any kind of bug, report it to me as soon as possible. And if you have any suggestions, post here. Thanks you all! |
thats a good hack.
try www.phpadsnew.com for probably the best banner management system out. and its free. |
I had a template modification like it, https://vborg.vbsupport.ru/showthrea...threadid=99402
Great job though! |
Database error in vBulletin 3.5.2:
Invalid SQL: SELECT * FROM brotator WHERE active = '1' ORDER BY Rand() LIMIT 1; MySQL Error : Table 'thug_thug.brotator' doesn't exist Error Number : 1146 Date : Wednesday, December 21st 2005 @ 06:03:38 PM |
cant get on the board, gives me database error, can someone tell me whats wrong, when i uploaded a pic from the admincp it gave me a database error
|
my database tables weren't created either.
|
apparently the tables weren't created. take a look at you db sctructure and look for any "brotator" table you find. if you want, give me your msn and i can fix that for you
jrofosho: same to you.. tables were not created. look for table brotator or ive me a way to contact you, like msn thanks |
|
msn: jrofosho@gmail.com
|
??????????
|
Issue resolved.
Nice hack. |
Will this still allow affiliates to track activity on a banner?
|
Would be a nice addition if it had banner clicks and a way to show stats to your advertisers.
|
this hack is for your banner at the top of your page. its like what vb.org has done with ther banners. how it changes when u click on to a another link etc.
|
Quote:
you can find plenty of ad mods :) |
im stupid.. where do i manage this banners in the admincp
|
Quote:
|
sorry i forgot to do something thanks
|
Database error in vBulletin 3.5.2:
Invalid SQL: UPDATE brotator SET active = '0' WHERE id = '1'; MySQL Error : Table 'forums.brotator' doesn't exist Error Number : 1146 Date : Saturday, December 24th 2005 @ 12:22:26 AM Script : http://localhost/forums/admincp/bann...activate&bid=1 Referrer : IP Address : 127.0.0.1 Username : admin Classname : vB_Database I found this error? How can we fix that? plzzz |
Quote:
i'll just sent an update, just download and replace you /admincp/banner_rotator.php with the one in the package that should fix your problem... if you get any other error, please report here |
I installed your banner rotator...
I go to upload a banner and I get this error screen.. https://vborg.vbsupport.ru/external/...chmentid=39860 |
uninstall it first
you need to edit the installer file and banner_rotator file thats in admincp folder.. look for forum and change it too forums thats should take care of your problem. after making these changs make sure you reinstall it.. |
Quote:
uninstall it, open banner_rotator.php and product-brotator.xml.. you can do it with notepad.. press CTRL+H (to replace texts) and replace "/forum" with "/forums" save the files, reupload the .php file and reinstall the product chmod "banners" folder to 777 and it will work perfectly |
Does this mod work? I'm a lil concerned installing it with all the errors everyone has been getting...
|
Quote:
try it out, if you get any kind of errors, contact me ;) |
getting this error:
Invalid SQL: INSERT INTO brotator (id, name, alt, active) VALUES ('', 'toonsalbumdecor3.gif', 'Toon's Album Decor', '1'); MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Album Decor', '1')' at line 1 Error Number : 1064 Date : Sunday, December 25th 2005 @ 07:03:36 PM Script : http://www.xxxxxxxxx/admincp/banner_rotator.php Referrer : http://xxxxxxxx/admincp/banner_rotator.php?do=add IP Address : xxxxxxxxxxxx Username : xxxxxxxxx Classname : vb_database |
I'm getting this error when I try isntalling a banner, and why is there no field to enter a url?
Warning: move_uploaded_file(/home/toyotaug/public_html/forum/images/banners/otugbanner.gif): failed to open stream: No such file or directory in /admincp/banner_rotator.php on line 56 Warning: move_uploaded_file(): Unable to move '/tmp/php3GF8oT' to '/home/toyotaug/public_html/forum/images/banners/otugbanner.gif' in /admincp/banner_rotator.php on line 56 |
Quote:
|
Quote:
press CTRL+H (to replace texts) and replace "/forum" with "/PATH" (where PATH is the path name where your forum is located into) save the files, reupload the .php file and reinstall the product chmod "banners" folder to 777 and it will work perfectly |
Got it. Now isn't there an option to insert a URL to the individual banners?
|
Quote:
|
I mean...when I installed this I thought it would be a banner rotator, where you can rotate different banners and specifiy a different url for each banner...
Right now it's jsut a picture rotating with no url...i want to link to different places with my banners... |
Quote:
|
no i just want to add a single link to each individual banner...
Right now I see no field to do this |
Quote:
added field for input link. Just download the attachement, reupload banner_rotator.php and reinstall product-brotator.xml that should work for you |
This reminds me of the Banner & Ads hack for vBulletin 3.0.X, I may try it out and see if I like it.
Just wondering, does this only work in the header? |
Quote:
|
Nifty.
* JsnakeJ clicks install. Can you edit the one with links to allow images that you link to? I don't care for it uploading them to my server much. |
Quote:
This one allows you to insert a link instead of uploading the banner in your host. Try it out and tell us if works :) |
Few things need fixed.
Change it to 'Link to Banner'. Add size forms and remove the part to automatically make it header sized. Other than that it works perfect. |
All times are GMT. The time now is 09:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|