The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Banner Rotator Details »» | |||||||||||||||||||||||||
New version of https://vborg.vbsupport.ru/showthread.php?t=133954, compliant with vB 3.7 and with new features!!! So, what does this hack do? - This mod allows you to add lots of forum banners. - The banners will be randomly showed 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 upload flash (SWF) banners! - You can set a description for individual banners. - You can set size (width & height) for each banner individually - 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 enable/disable you banners. - Disabled banners remains in the ftp, but will not be shown on forum home. - NEW: You can set different URLs for each banner! - NEW: You can select the forums you want the banner to appear!!! (with inherit option) - NEW: Mass delete banners is now possible. - NEW: You can set default values for new banners on vBulletion Options How can i install? (Time to install: 1 minute if you are fast enough ) - Unzip the package and upload the content of the "upload" folder to your forum directory. - Install product-brotator.xml - Go to your AdminCP > Style Manager > YOUR SKIN > Edit HEADER template and find: Code:
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a> Code:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center> The improvements over the last version werent tested a lot, so please report any bugs you find! Thanks! SUPPORT GIVEN ONLY FOR WHO CLICKED "INSTALL" UPGRADE IS NOT AVAILABLE, SO YOU NEED TO UNINSTALL THE OLD VERSION AND INSTALL THIS ONE Show Your Support
|
Comments |
#182
|
|||
|
|||
I'm using it with IE7 and it works just fine.
|
#183
|
|||
|
|||
Track Banner Usage!
I've read a few posts from people with the same issue that I have. This product would be perfect if you could track which banners are displayed and how often. If you're charging for advertising, this is almost a requirement. Well, being a programmer myself, I decided to figure out a very simple way to track it. Now, you'll have to query the database manually yourself to get the statistics, if I get adventurous down the road I might add that. But for now, at least the database will track the banners that get displayed and when. This information is provided AS IS with no warranty or liability at all. Use it at your own risk! First of all, open a connection to your database (I assume Mysql). Use the following create table statement. If you don't have command line access, you may want to try integrating this create table statement with the product.xml file. We're going to create a new table to track banners. So issue the following command at the Mysql command prompt: CREATE TABLE brotatorlog (bid smallint(20) unsigned, name varchar(255), bannerdate TIMESTAMP); Next, go into the admincp of vbulletin, go to "Plugins & Products" and click on "Plugin Manager" Click on the link to edit banner rotator. In the plugin PHP code window, scroll all the way to the bottom of the window. The last statement in this window should be: $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'>"; } Don't delete or modify any of the existing code. Insert the following code AFTER the above line. if (!$ban['bid']) { } else { $db->query("INSERT INTO brotatorlog (bid, name) VALUES (".$ban['bid'].",'".$ban['name']."')"); } Display a few banners then go into your mysql database and issue the following query: select * from brotatorlog; You should see something like this (excuse the poor formatting): +------+-----------------------+---------------------+ | bid | name | bannerdate | +------+-----------------------+---------------------+ | 1 | mybannera.jpg | 2009-01-08 18:14:32 | | 2 | mybanner1.gif | 2009-01-08 18:16:37 | +------+-----------------------+---------------------+ using the bid field, you can cross reference it back to the original brotator table with an SQL join query. Remember to periodically purge that table. Enjoy. Ernest. |
#184
|
|||
|
|||
will it works with version 3.8
|
#185
|
|||
|
|||
getting an error that I did not get previously
Warning: move_uploaded_file(./images/brotator/FobNationBanner.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in [path]/admincp/brotator.php on line 65 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpYuMkT9' to './images/brotator/FobNationBanner.gif' in [path]/admincp/brotator.php on line 65 Any help will be appreciated hope I am in the right area. |
#186
|
|||
|
|||
I would be cool if this could let you set a different banner depending on the date...
|
#187
|
|||
|
|||
I'm running it in 3.8 and it it seems to be OK (even with the hack I made to it).
|
#188
|
|||
|
|||
I haven't seen a post from the guy maintaining this mod for a while and he hasn't been online since Aug 2008. Is this mod dead? Because I really like it and would like to see it improved. If the original author doesn't want to maintain it any longer I'd consder taking it over.
|
#189
|
|||
|
|||
Quote:
You have not mentioned much about your setup. Is it being hosted or is it your own server? Do you have root access? When you created the images/brotator sub directory did you chown it to your webuser (ex: apache)? Is your PHP install running in SAFE mode? Because that could be the problem as well. If your system is running selinux, check your audit.log file to see if httpd is being denied write access. Post some real details about your setup and I'll try to help you out. |
#190
|
|||
|
|||
Quote:
|
#191
|
||||
|
||||
Thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|