View Full Version : Banner Rotator (Definitive Mod)
andrefedalto
12-20-2005, 10:00 PM
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:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
Replace with:
<center>$banner</center>
You can change banner width and height editing the plugin called "Banner Rotator Generator" and changing the values:
width=879 height=160for your own values.
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!
GoTTi
12-21-2005, 08:07 PM
thats a good hack.
try www.phpadsnew.com (http://www.phpadsnew.com) for probably the best banner management system out. and its free.
Daniel
12-21-2005, 08:36 PM
I had a template modification like it, https://vborg.vbsupport.ru/showthread.php?threadid=99402
Great job though!
rb290
12-21-2005, 09:04 PM
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
rb290
12-21-2005, 09:07 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
jrofosho
12-21-2005, 09:13 PM
my database tables weren't created either.
andrefedalto
12-21-2005, 09:18 PM
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
rb290
12-21-2005, 09:19 PM
msn: da_shiznit29@hotmail.com
jrofosho
12-21-2005, 09:26 PM
msn: jrofosho@gmail.com
rb290
12-21-2005, 09:40 PM
??????????
jrofosho
12-21-2005, 10:14 PM
Issue resolved.
Nice hack.
Synth
12-21-2005, 11:54 PM
Will this still allow affiliates to track activity on a banner?
Itworx4me
12-22-2005, 04:39 AM
Would be a nice addition if it had banner clicks and a way to show stats to your advertisers.
DS MrSinister
12-22-2005, 04:40 AM
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.
andrefedalto
12-22-2005, 09:44 AM
Would be a nice addition if it had banner clicks and a way to show stats to your advertisers.
its not an advertisement mod... just main forum banner ;)
you can find plenty of ad mods :)
16ggst
12-22-2005, 11:13 PM
im stupid.. where do i manage this banners in the admincp
andrefedalto
12-22-2005, 11:32 PM
im stupid.. where do i manage this banners in the admincp
a small box will appear there, called BANNER ROTATOR, just like other submenus on the AdminCP
16ggst
12-23-2005, 02:36 AM
sorry i forgot to do something thanks
newfun
12-23-2005, 09:24 AM
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/banner_rotator.php?do=deactivate&bid=1
Referrer :
IP Address : 127.0.0.1
Username : admin
Classname : vB_Database
I found this error? How can we fix that? plzzz
andrefedalto
12-23-2005, 10:13 AM
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/banner_rotator.php?do=deactivate&bid=1
Referrer :
IP Address : 127.0.0.1
Username : admin
Classname : vB_Database
I found this error? How can we fix that? plzzz
oops... my mistake... forgot to add the table prefix in some queries...
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
slvr ralliart
12-23-2005, 07:51 PM
I installed your banner rotator...
I go to upload a banner and I get this error screen..
https://vborg.vbsupport.ru/external/2005/12/1.php?attachmentid=39860
DS MrSinister
12-23-2005, 07:59 PM
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..
andrefedalto
12-23-2005, 10:27 PM
I installed your banner rotator...
I go to upload a banner and I get this error screen..
https://vborg.vbsupport.ru/attachment.php?attachmentid=39860
just like sinister said..
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
Aerovive1
12-25-2005, 04:46 PM
Does this mod work? I'm a lil concerned installing it with all the errors everyone has been getting...
andrefedalto
12-25-2005, 08:27 PM
Does this mod work? I'm a lil concerned installing it with all the errors everyone has been getting...
'course it works.. i'm using it :)
try it out, if you get any kind of errors, contact me ;)
puertoblack2003
12-26-2005, 01:07 AM
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
Aerovive1
12-26-2005, 09:10 PM
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
andrefedalto
12-26-2005, 10:38 PM
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
dont use ' in the names
andrefedalto
12-26-2005, 10:39 PM
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
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 "/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
Aerovive1
12-26-2005, 10:58 PM
Got it. Now isn't there an option to insert a URL to the individual banners?
andrefedalto
12-26-2005, 11:00 PM
Got it. Now isn't there an option to insert a URL to the individual banners?
what do you mean? to use banners hosted outside your host?
Aerovive1
12-26-2005, 11:03 PM
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...
andrefedalto
12-26-2005, 11:05 PM
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...
to add a link to the image and another link, so when you click the image you will be redirected to the second link?
Aerovive1
12-26-2005, 11:18 PM
no i just want to add a single link to each individual banner...
Right now I see no field to do this
andrefedalto
12-27-2005, 12:35 AM
no i just want to add a single link to each individual banner...
Right now I see no field to do this
just did an update for ya... didnt test, but i dont think anything is wrong..
added field for input link.
Just download the attachement, reupload banner_rotator.php and reinstall product-brotator.xml
that should work for you
JsnakeJ
12-27-2005, 12:50 AM
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?
andrefedalto
12-27-2005, 12:57 AM
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?
anywhere you put the code $banner will show up the banner ;)
JsnakeJ
12-27-2005, 01:08 AM
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.
andrefedalto
12-27-2005, 01:30 AM
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.
also didnt tested.
This one allows you to insert a link instead of uploading the banner in your host.
Try it out and tell us if works :)
JsnakeJ
12-27-2005, 01:58 AM
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.
Aerovive1
12-27-2005, 03:55 AM
Awesome mate. Thanks a lot!
JsnakeJ
12-28-2005, 09:32 PM
Update to this hack where it has the latest replied version just language modified a small bit and set for 468x60 images. :D
So now can this be used as an advertising banner hack for rottating different banners
lazytown
12-29-2005, 01:26 PM
Would be nice if this could somehow work with Google Adwords (rotating banners with google)
Sinistra
12-30-2005, 02:34 PM
How can you change the forum root directory from forum to your root site directory.
nexus851
12-31-2005, 08:01 AM
Update to this hack where it has the latest replied version just language modified a small bit and set for 468x60 images. :D
This module with the link version doesnt work... i get this DB error:
Database error in vBulletin 3.5.0:
Invalid SQL:
INSERT INTO vb_brotator (id, name, alt, link, active) VALUES ('', 'testbanner.gif', 'test', 'http://www.test.com', '1');
MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054
Date : Saturday, December 31st 2005 @ 04:00:17 AM
Script : /forum/admincp/banner_rotator.php
Referrer : /forum/admincp/banner_rotator.php?do=add
IP Address : 71.129.111.12
Username : admin
Classname : vb_database
Turbosport
01-02-2006, 10:57 AM
Exactly what i wanted saved me a lot of time thankyou !
andrefedalto
01-02-2006, 01:52 PM
This module with the link version doesnt work... i get this DB error:
Database error in vBulletin 3.5.0:
Invalid SQL:
INSERT INTO vb_brotator (id, name, alt, link, active) VALUES ('', 'testbanner.gif', 'test', 'http://www.test.com', '1');
MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054
Date : Saturday, December 31st 2005 @ 04:00:17 AM
Script : /forum/admincp/banner_rotator.php
Referrer : /forum/admincp/banner_rotator.php?do=add
IP Address : 71.129.111.12
Username : admin
Classname : vb_database
try to install on a fresh vB forum
nhacso
01-02-2006, 10:02 PM
Update to this hack where it has the latest replied version just language modified a small bit and set for 468x60 images. :D
Anyone can improve mod "Banner Rotator" to support flash banner (.swf) !
JsnakeJ
01-09-2006, 07:48 AM
This module with the link version doesnt work... i get this DB error:
Database error in vBulletin 3.5.0:
Invalid SQL:
INSERT INTO vb_brotator (id, name, alt, link, active) VALUES ('', 'testbanner.gif', 'test', 'http://www.test.com', '1');
MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054
Date : Saturday, December 31st 2005 @ 04:00:17 AM
Script : /forum/admincp/banner_rotator.php
Referrer : /forum/admincp/banner_rotator.php?do=add
IP Address : 71.129.111.12
Username : admin
Classname : vb_database
I believe that you need to supply a full address to the banner rather than testbanner.gif.
Might aswell make me a co-supporter for this hack. :)
Hornstar
01-09-2006, 08:54 AM
i got this error message when adding a banner
Warning: move_uploaded_file(): Unable to move '/tmp/php7Ct55R' to '/home/gamerzne/public_html/forum/images/banners/gamerzneeds45ok.jpg' in /admincp/banner_rotator.php on line 56
vBulletin Message
vBulletin Message
You banner has been uploaded
If you are not automatically redirected, please click here.
Processing Complete - Proceed
I then get this error message deleting a banner
Warning: unlink(/home/gamerzne/public_html/forum/images/banners/gamerzneeds45ok.jpg): No such file or directory in /admincp/banner_rotator.php on line 157
vBulletin Message
vBulletin Message
You banner was deleted successfully
If you are not automatically redirected, please click here.
Processing Complete - Proceed
However everything still works when doing the above. I'm still not getting any of the banners on the forum to show, i only get the description to show, and when i right click the description and view properties, it shows me the link of the pic, when i copy that and pasted that in the address bar, the pic comes up, so its not a problem with that.
any ideas. My site is http://www.gamerzneeds.net/forums and i am doing this on the default skin.
Thanks
JsnakeJ
01-09-2006, 09:47 AM
Horntail, follow the directions in this post. https://vborg.vbsupport.ru/showpost.php?p=855783&postcount=23
Also if you want it to work with 468x60 images without enlarging them heavilly I suggest going into your plugin manager and following the bit about that in the first post. :D
Hornstar
01-09-2006, 07:49 PM
Horntail, follow the directions in this post. https://vborg.vbsupport.ru/showpost.php?p=855783&postcount=23
Also if you want it to work with 468x60 images without enlarging them heavilly I suggest going into your plugin manager and following the bit about that in the first post. :D
Id click the thanks button if there was one ^^
I thought i read through all the pages but as you refered me i only started at page 2 lol.
I think someone mentioned above about a tracking code to see how many times the banner appears and if its a linked banner how many times its clicked. Will that be getting implemented?
JsnakeJ
01-10-2006, 10:41 AM
Theres another hack that someone made for that.
passionboss
01-10-2006, 05:39 PM
I've installed this to my forum, everything seems to be ok, but the banners dont display. Theres a position box there, but with the little red crossed box dispalying.
Any ideas?
http://www.theemporiumuk.com/forums/index.php
andrefedalto
01-10-2006, 08:27 PM
I've installed this to my forum, everything seems to be ok, but the banners dont display. Theres a position box there, but with the little red crossed box dispalying.
Any ideas?
http://www.theemporiumuk.com/forums/index.php
have you changed "forum" to "forums" in product-brotator.xml before install it?
passionboss
01-11-2006, 04:25 AM
have you changed "forum" to "forums" in product-brotator.xml before install it?
Yeah I picked up on that when I installed it from this thread. Changed all forum to forums in the xml file and the admincp php file.
redspider
01-23-2006, 06:35 AM
can this work with flash banners?
DarKNull
01-25-2006, 07:34 PM
<!-- logo -->
<a name="top"></a>
<div id="vbwrapper">
<div id="logostrip"><center><div style="background: url($stylevar[imgdir_misc]/desihotty3eb.gif) no-repeat;width:100%;height: 158px"></div></div>
<div id="submenu"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/submenu_search.gif" alt="desi" /></a><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/submenu_members.gif" alt="desi" /></a><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/submenu_calendar.gif" alt="desi" /></a><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/submenu_faq.gif" alt="desi" /></a></div></center>
<div id="vbwrapper2">
<div id="vbwrapper3">
<div id="bordertop"><div id="bordertopleft"><img src="$stylevar[imgdir_misc]/border_top_l.gif" alt="desi" /></div><div id="bordertopright"><img src="$stylevar[imgdir_misc]/border_top_r.gif" alt="desi" /></div></div>
<div id="vbwrapper4">
$spacer_open
<!-- content table -->
$_phpinclude_output
I have installed this hack but now how do i replace the $banner code please help
inspiration100
01-26-2006, 05:12 PM
installed this and works a treat, but when a banner is clicked it puts my board url before the url of the banners site url....e.g http://www.site1.com/http://www.site2.com.
Any help appreciated.
Turbosport
01-27-2006, 08:29 AM
There is a security hole in this guys:
You can inject SQL as the $_POST variables here and further down in the script.
$db->query_write("INSERT INTO " . TABLE_PREFIX . "brotator (id, name, alt, active) VALUES ('', '$fname', '$_POST[balt]', '$_POST[bact]')");
I have called the VB function to make the variables SQL safe.
andrefedalto
01-27-2006, 12:01 PM
can this work with flash banners?
yes, you must edit brotator.php in /admincp/ and look for GIF and follow the sequence and add SWF
then edit the plugin and make it show swf, i'm not used to swf, but i'm pretty sure it doesnt shows up with <img> code
andrefedalto
01-27-2006, 12:02 PM
installed this and works a treat, but when a banner is clicked it puts my board url before the url of the banners site url....e.g http://www.site1.com/http://www.site2.com.
Any help appreciated.
i think you are filling the add-banner form site like this: "www.site.com" instead of "http://www.site.com"
try using http:// before to see if works fine
andrefedalto
01-27-2006, 12:03 PM
<!-- logo -->
<a name="top"></a>
<div id="vbwrapper">
<div id="logostrip"><center><div style="background: url($stylevar[imgdir_misc]/desihotty3eb.gif) no-repeat;width:100%;height: 158px"></div></div>
<div id="submenu"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/submenu_search.gif" alt="desi" /></a><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/submenu_members.gif" alt="desi" /></a><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/submenu_calendar.gif" alt="desi" /></a><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/submenu_faq.gif" alt="desi" /></a></div></center>
<div id="vbwrapper2">
<div id="vbwrapper3">
<div id="bordertop"><div id="bordertopleft"><img src="$stylevar[imgdir_misc]/border_top_l.gif" alt="desi" /></div><div id="bordertopright"><img src="$stylevar[imgdir_misc]/border_top_r.gif" alt="desi" /></div></div>
<div id="vbwrapper4">
$spacer_open
<!-- content table -->
$_phpinclude_output
I have installed this hack but now how do i replace the $banner code please help
what is the filename of your current banner?
andrefedalto
01-27-2006, 12:04 PM
There is a security hole in this guys:
You can inject SQL as the $_POST variables here and further down in the script.
$db->query_write("INSERT INTO " . TABLE_PREFIX . "brotator (id, name, alt, active) VALUES ('', '$fname', '$_POST[balt]', '$_POST[bact]')");
I have called the VB function to make the variables SQL safe.
this part of the script is only accessible by the forum administrators, so why would an admin inject sql codes?
inspiration100
01-27-2006, 12:57 PM
andrefedalto, du'h silly me thnx man
Turbosport
01-27-2006, 02:16 PM
this part of the script is only accessible by the forum administrators, so why would an admin inject sql codes?
As a fellow coder I am not knocking the hack, in fact I really like it and it was exactly what I was looking for!
But its important that we as a community look out for and fix any security flaw we find, no matter how insignificant.
My admins are fully trusted, I run hourly snapshots of my database, so I like you probably have nothing to worry about, however there are others out there who are less fortunate. Maybe they have opened it up to thier Moderators and on a busy site this could end up being a few people.
The other worry is that someone will come along and reuse the code somewhere less secure not fully understanding the security issues.
An Admin on my site caused an SQL error by placing an apostrophy in the description field i.e. Dave's picture.
On examination it was a classic SQL injection hole.
I did a quick fix to stop this happening, but I intend to rewrite it to use one of the core VB functions for coverting strings to SQL safe, that way when VB find any other injection type issues and fix them the fix will be reflected in this hack.
Anyway if your interested here is my quick fix:
$factv = addslashes(htmlspecialchars($_POST["bact"], ENT_QUOTES));
$fdesc = addslashes(htmlspecialchars($_POST["balt"], ENT_QUOTES));
then the query:
$db->query_write("INSERT INTO " . TABLE_PREFIX . "brotator (id, name, alt, active) VALUES ('', '$fname', '$fdesc', '$factv')");
I changed the other query further down using the same method.
I also added a little check before the query, for the odd occasion that theres an error in uploading the file:
move_uploaded_file($ftemp, $dir.$fname);
if (file_exists($_SERVER['DOCUMENT_ROOT']."C:/SITES/TSWEB/BBS/images/banners/"."$fname")){
$db->query_write("INSERT INTO " . TABLE_PREFIX . "brotator (id, name, alt, active) VALUES ('', '$fname', '$fdesc', '$factv')");
print_cp_message($vbphrase['brotator_add_success'], "banner_rotator.php?do=add", "1");
}
else { print_stop_message('brotator_uploaderror');}
endif;
andrefedalto
01-27-2006, 04:02 PM
thanks turbo, i'll update the hack asap and i'll also add the check if file uploaded, just have to put the absolute path string, otherwise everyone would change it...
92GreenGT
03-06-2006, 04:36 AM
Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home/ftfhostc/fullthrottleforums.com/images/banners/Banner3.jpg) is not within the allowed path(s): (/dh/web/phpmyadmin:/tmp:/usr/local/tmp:/dh/solidclient:/usr/local/lib/php:/home/ftfhostc:/home/.beaver/ftfhostc) in /admincp/banner_rotator.php on line 56
Ok, I get the error also. I went and changed the two files and took the /forum off all the places it was in the original files. Why wont this work? If you go to http://www.fullthrottleforums.com/images/banners/Banner2.jpg it works, so how would I need to modify the two files for it to show the correct path? Thanks
JsnakeJ
03-06-2006, 04:41 AM
Try chmodding the banners directory to 0777
92GreenGT
03-06-2006, 04:23 PM
Didnt work, anyone else?
o0Hubba0o
03-09-2006, 01:58 AM
Got everything working good, except one small problem, when I upload a banner it's not veiwable by public only owner. I need to go into ftp and change the properties.
Also, is there a way to be able to upload different size banners without them streching or enlarging?
o0Hubba0o
03-16-2006, 08:45 PM
Got everything working good, except one small problem, when I upload a banner it's not veiwable by public only owner. I need to go into ftp and change the properties.
Also, is there a way to be able to upload different size banners without them streching or enlarging?
Are you around? Any idea's on this?
Doc.Blade
03-19-2006, 07:20 AM
Very nice Mod, like it alot.
*Clicks Install*
zippokid
04-05-2006, 07:24 AM
Got everything working good, except one small problem, when I upload a banner it's not veiwable by public only owner. I need to go into ftp and change the properties.
Also, is there a way to be able to upload different size banners without them streching or enlarging?
I have the same problem. I have to manually chmod the directory each time i put in a batch of banners
cudaxtreme
04-08-2006, 08:30 AM
Is it possible to add in the probability of the banners showing up?
Lets say banner A pay more than banner B then the appearance of banner A is more than banner B with a adjustable %?
o0Hubba0o
04-22-2006, 01:41 PM
Got everything working good, except one small problem, when I upload a banner it's not veiwable by public only owner. I need to go into ftp and change the properties.
Also, is there a way to be able to upload different size banners without them streching or enlarging?
So any info on this? Even a "sorry I can't figure that one out" or a "no it's not possible" so we know that this hack hasn't been abandoned since it says it's supported. ;)
Doc.Blade
04-25-2006, 06:41 AM
I am using this mod on my Clan's website at the moment. I love it, it is fantastic!
I was wondering if an addon could be made to this mod at all?
Was wondering if the things available in the ADMIN CP for this mod could be made available in the Moderator CP at all?
I have someone doing some great work on banners and logos for our forums, and cant give him ADMIN CP access due to some private areas of the forums that need to stay private.
I dont mind making him a moderator though if we can get the functions from this mod in the Moderator CP
Could you please advise if this is possible at all?
Great work on the Mod to date, would be awesome if this little addon could be made too.
Cheers
Chat soon
Rick
Reolien01
06-09-2006, 07:13 AM
This mod is awesome. If someone can modify it to where you can rotate certain banners on certain forums that would be great.
For example. I would upload Banner_1, Banner_2, Banner_3, and Banner_4. I would want Banner_1 and Banner_2 to rotate on the "sports" forum but I would want Banner_3 and Banner_4 to rotate on the "Anime" forum. The way it is now you put $banner in the template and it rotates every single one. I would like a way to set which ones show on which forums. If someone can even take time out of this to do it for me I will gladly pay.
Thanks.
Sangrun
06-12-2006, 03:19 AM
So any info on this? Even a "sorry I can't figure that one out" or a "no it's not possible" so we know that this hack hasn't been abandoned since it says it's supported. ;)
I would like to know too.
I'm having a similar issue and my banners folder is 777.
I'm getting the same error as above.
Warning: move_uploaded_file(): open_basedir restriction in effect. File(/home/ftfhostc/fullthrottleforums.com/images/banners/Banner3.jpg) is not within the allowed path(s): (/dh/web/phpmyadmin:/tmp:/usr/local/tmp:/dh/solidclient:/usr/local/lib/php:/home/ftfhostc:/home/.beaver/ftfhostc) in /admincp/banner_rotator.php on line 56
andrefedalto
07-04-2006, 01:48 PM
Sorry people. I have been busy for some time, and couldnt give support and fix bugs.
Now i'm updating my board to 3.6 and soon i'll release this mod for 3.6.
Right?
Sorry then!
Masked Crusader
07-05-2006, 07:04 PM
Alright. Small issue. I got all the coding errors out of the way. Now, I must just be missing one step. Whenever I try to put a banner up, the description that I put in for the banner inserts itself onto the FORUMHOME instead of the banner image.
Anyone know what the heck is going on?
URL: www.forlornsavior.com/forums/index.php
andrefedalto
07-06-2006, 01:45 AM
Alright. Small issue. I got all the coding errors out of the way. Now, I must just be missing one step. Whenever I try to put a banner up, the description that I put in for the banner inserts itself onto the FORUMHOME instead of the banner image.
Anyone know what the heck is going on?
URL: www.forlornsavior.com/forums/index.php
i see no banner in that site...
can you send me the part of the html and a screen capture with the error?
mattyk72
07-10-2006, 06:17 PM
Will flash banners work with this?
If not, is there a banner rotator that works with flash banners?
asasi
07-14-2006, 04:21 PM
thanks but can you prepare this hack to support swf (flash) banners?
h_kakashi
08-02-2006, 02:53 PM
Works fine in 3.6 Gold
mattyk72
08-07-2006, 01:21 PM
thanks but can you prepare this hack to support swf (flash) banners?
I'm looking for the same thing...
andrefedalto
12-13-2006, 11:08 PM
Long time after: This is being ported to 3.6.4 (though it already workd on 3.6)
Some improvements like adding flash banners and individual adjustment of size.
UPDATED MOD: https://vborg.vbsupport.ru/showthread.php?t=133954
Brandr
03-12-2007, 04:32 AM
I just installed a new modified skin on my forum. I have the Brotator banner plugin and it is working fine on the old default skin, but the banners are not showing up in the new skin. Not even a red x when using IE.
Any ideas? Does the rotator only work with one skin at a time?
Any suggestions would be greatly appreciated.
regards,
B.
localraceway
03-17-2007, 01:21 AM
1. forum root directory and CHMOD. i don't know what this means ?
2. 77 the folder "/image/banners" . what ? 77 the folder ? huh ?
i really dont know what im supose to do or where to go to uplaod ?
my forum is almost complete. i jsut need this done so i can open my site by the 1st of april.
sorry if im a little slow but im learning as i go :)
andrefedalto
03-17-2007, 01:24 PM
I just installed a new modified skin on my forum. I have the Brotator banner plugin and it is working fine on the old default skin, but the banners are not showing up in the new skin. Not even a red x when using IE.
Any ideas? Does the rotator only work with one skin at a time?
Any suggestions would be greatly appreciated.
regards,
B.
Have you made the modification on the new skin?
- Go to your AdminCP > Style Manager > YOUR SKIN > Edit HEADER template and find:<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
Replace with:<center>$banner</center>
1. forum root directory and CHMOD. i don't know what this means ?
2. 77 the folder "/image/banners" . what ? 77 the folder ? huh ?
i really dont know what im supose to do or where to go to uplaod ?
my forum is almost complete. i jsut need this done so i can open my site by the 1st of april.
sorry if im a little slow but im learning as i go :)
You probably use an ftp client to access your files, right click the folder "banners" inside folder "image" and click CHMOD, change the value to 777 and hit ok
localraceway
03-17-2007, 09:06 PM
how do i - Install product-brotator. ?
Brandr
03-17-2007, 09:15 PM
how do i - Install product-brotator. ?
Go to your Administration Cpanel and find the Plugins system tab on your left hand side bar. Down towards the bottom of the collumn. Expand the menue. Click: Manage products. At the very bottom of the page click: [Add/Import product] Where it says: Import product click: Browse. -Allow overwrite and Upload your product file from your HD.
banner-_rotator file goes in admincp folder.
cpnav brotator file goes in the xml folder inside the includes folder in your forums directory.
banner folder goes in the images folder.
Good luck.
B.
Brandr
03-17-2007, 09:27 PM
@Andrefedalto.
Thank you very much for your reply. The problem resulted from the fact that a previous Administrator on our board had completely circumvented the brotator plugin with java script within the CSS. It wasn't in the header and I didn't realise the problem until I downloaded our default style sheet and saw all the rotating banner image direction code.
He didn't even have the xml file in the includes folder! We had the brotator plugin listed as activated in the plugin system but we had no Brotator interface in the control panel.
I have now corrected the problem and we are now using the Brotator to rotate our banners.
I am the most vBull savvy Administrator on our boards and I have only been at this since August '06. So you know we are always in TROUBLE:D
You have probably the 3rd most popular plugin after vShout and Advancedforumhome statistics. Thank you for sharing this great plugin with us. I know everyone in the vBUll community appreciates your work.
Regards,
B.
localraceway
03-17-2007, 11:31 PM
thank you very much for your help i got it to work now :)
but i have one problem and im not sure if its been mentioned yet on this post.
before when i click on my banner and takes me back to the main page of my forums, like what most banners do. now when i click my banner it says "about:blank" instead of my web address.
is there a easy fix for this ?
Brandr
03-20-2007, 01:35 AM
@Localraceway.
I received a great deal of vBulletins generous assistance during my Noobie phase as a vBull operator, particularly from Marco H. So I am pleased to have been able to pass on that community spirit by rendering some service to you.
*I do not believe the banner rotation hack has been formatted in such a way as to allow clickable banners. Refer to post #15:)
Regards,
B.
localraceway
03-21-2007, 06:08 AM
i wish that would work, that would give my site the full profesional action but now it lacks a posible good feature :(
since i can't do this is it posible to make it so when you do click on the banner nothing will happen, instead of a blank window ?
i dont want peopel clicking on it to have a window pop up that say about blank..
Brandr
03-23-2007, 08:36 AM
@Localraceway.
What url is showing when you mouseover your banners?
Take a look at this website: (http://www.aboutblank.com.au/)
B.
localraceway
03-23-2007, 10:01 AM
heres my forum http://www.localraceway.com/forum/
as you can see when you go over the banner its shows the link that would normaly be there and take you back the the main page when clicked,but when you click it, it loads a about blank page. so if i cant get the page to show my main front page when clicked, would liek to atleast remove it so when you click on the banner nothing at all will happen at all :)
Brandr
03-24-2007, 06:47 AM
@Loclraceway.
When I click on your forum banners, I am taken right back to your forum with a refreshed banner. I don't think the problem is originating with your Forum but on your computer. Please read the information provided in the link I placed in my previous post.
B.
andrefedalto
03-24-2007, 01:12 PM
@Andrefedalto.
Thank you very much for your reply. The problem resulted from the fact that a previous Administrator on our board had completely circumvented the brotator plugin with java script within the CSS. It wasn't in the header and I didn't realise the problem until I downloaded our default style sheet and saw all the rotating banner image direction code.
He didn't even have the xml file in the includes folder! We had the brotator plugin listed as activated in the plugin system but we had no Brotator interface in the control panel.
I have now corrected the problem and we are now using the Brotator to rotate our banners.
I am the most vBull savvy Administrator on our boards and I have only been at this since August '06. So you know we are always in TROUBLE:D
You have probably the 3rd most popular plugin after vShout and Advancedforumhome statistics. Thank you for sharing this great plugin with us. I know everyone in the vBUll community appreciates your work.
Regards,
B.
Thanks a lot. Good to hear that my modification can help a lot of people :) And dont foget to click install ;)
heres my forum http://www.localraceway.com/forum/
as you can see when you go over the banner its shows the link that would normaly be there and take you back the the main page when clicked,but when you click it, it loads a about blank page. so if i cant get the page to show my main front page when clicked, would liek to atleast remove it so when you click on the banner nothing at all will happen at all :)
Try the following:
1 - Go to www.getfirefox.com
2 - Download the last version and install
3 - Check your site again, probably the issue you mentioned will disappear :)
localraceway
03-25-2007, 11:33 AM
well theres nothing wrong with my IE and i got no spyware.
i sent my link to a friend of mine to see what he sees when he clicks on my banner and he said it opens up a new blank window. he asked me what i wanted it to do and i said its supose to take you back to the main page when you click on it, he said ok let me see the code you got, he check the code and he said i didt have the link code in the banner. so i sent him the full code and he entered the link into my code and now its fixed. when you click my banner now it takes you back to the main forum page. from me sending him the link to look at it and me getting the code to put in my forum took less than 2 mins to fix.
not sure why everyone else is telling me something in the totaly wrong direction but i got it fixed now. i appreciate everyones help. thanks again
@Loclraceway.
When I click on your forum banners, I am taken right back to your forum with a refreshed banner. I don't think the problem is originating with your Forum but on your computer. Please read the information provided in the link I placed in my previous post.
B.
now sure why it would take you back to the main forum page when the code wasnt even there for it to work like that, but its fixed now. thanks
andrefedalto
03-25-2007, 12:14 PM
well theres nothing wrong with my IE and i got no spyware.
i sent my link to a friend of mine to see what he sees when he clicks on my banner and he said it opens up a new blank window. he asked me what i wanted it to do and i said its supose to take you back to the main page when you click on it, he said ok let me see the code you got, he check the code and he said i didt have the link code in the banner. so i sent him the full code and he entered the link into my code and now its fixed. when you click my banner now it takes you back to the main forum page. from me sending him the link to look at it and me getting the code to put in my forum took less than 2 mins to fix.
not sure why everyone else is telling me something in the totaly wrong direction but i got it fixed now. i appreciate everyones help. thanks again
now sure why it would take you back to the main forum page when the code wasnt even there for it to work like that, but its fixed now. thanks
Ok, great you got it fixed :) But the first time i've seen your post, i entered your forums and clicked on the banner and no blank window showed up. And since nobody reported the same error, probably it was some error on your skin, since the link to forumhome isnt set by my modification, it must be already there on the header template of your skin.
Rebel Dragons
03-27-2007, 12:00 AM
I have this installed on my forum but i have one small problem. I can't seem to figure out how to get the banners to link to the websites they represent. It just shows the image and when you click on it, nothing happens.
How do I make the banners into linked images?
Rebel Dragons
03-30-2007, 12:19 AM
Anyone?
Romanthic
04-06-2007, 12:25 PM
Yeah thank you very nice mod
Installed ;)
localraceway
04-06-2007, 12:47 PM
I have this installed on my forum but i have one small problem. I can't seem to figure out how to get the banners to link to the websites they represent. It just shows the image and when you click on it, nothing happens.
How do I make the banners into linked images?
i think you can only have one link for all images, since all images run from one plugin. theres a default code thats normaly on the forum that you have installed it on that brings you back to your main page, so once you click on the banner(s) it takes you back to your forum. i had to fix the code to get mine to rederect back to my forum though.
does this make anysense or help at all ?
i tried :P
stabmyback
04-19-2007, 12:02 AM
can anyone tell me how to align the banners so they're on the right side, not the center?
also, is it possible to have this hack running in two skins at once with different sets of banners? i'm not sure how, if it is.
Thanks for the help anyone who can give it to me! :D
iheartvb
05-09-2008, 03:31 PM
which file do i download for v3.7?
ghostiya
06-11-2008, 01:42 PM
i just uploaded this and i cant login to my board all the accounts it says
"Wrong username or password. You have used up your failed login quota! Please wait 15 minutes before trying again. Don't forget that the password is case sensitive. Forgotten your password? Click here!"
What the hell :(
tigerroar
06-18-2008, 09:43 PM
it would not allow me to upload image/pjpeg when I tried to upload my original banner that I had before I installed this so I added "image/pjpeg" to the list of what was allowed and it's now working fine. Now I have to create a few more banners!
Thanks for this.
jose22
08-20-2008, 06:21 PM
good night installed this mod and I did the following steps to uplod content queesta inside the folder uplod get the forum then edited directory of the navbar then I uplod xml in the ACP and did the chmod baners in the folder and make a uplod baner by acp of this
http://img231.imageshack.us/img231/421/semttulobu9.jpg (http://imageshack.us)
http://img231.imageshack.us/img231/421/semttulobu9.3e518c6ace.jpg (http://g.imageshack.us/g.php?h=231&i=semttulobu9.jpg)
vikingtour2
11-15-2008, 02:08 PM
When I try to upload a new product brotator I get this error message...XML Error: unknown at Line 0
.....I am using version 3.7.3 hopefully this product works with this version... any assistance would be appreciated I am extremely new at this.
vikingtour2
11-15-2008, 02:19 PM
Go to your Administration Cpanel and find the Plugins system tab on your left hand side bar. Down towards the bottom of the collumn. Expand the menue. Click: Manage products. At the very bottom of the page click: [Add/Import product] Where it says: Import product click: Browse. -Allow overwrite and Upload your product file from your HD.
banner-_rotator file goes in admincp folder.
cpnav brotator file goes in the xml folder inside the includes folder in your forums directory.
banner folder goes in the images folder.
Good luck.
B.
I have tried this and get an error---XML Error: not well-formed (invalid token) at Line 1
-- I have also tried uploading to my server and then uploading with all/import product where I also get an error any suggesitons....
nxtgen
12-13-2013, 01:52 PM
Does anyone know if this ever came out for VB4
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.