![]() |
I'm using it with IE7 and it works just fine.
|
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.:D |
will it works with version 3.8
|
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. |
I would be cool if this could let you set a different banner depending on the date...
|
Quote:
|
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.
|
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. |
Quote:
|
Thanks
|
All times are GMT. The time now is 10:01 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:
|