Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Banner Rotator Details »»
Banner Rotator
Version: 2.0 Beta, by andrefedalto andrefedalto is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.0 Beta 4 Rating:
Released: 01-30-2008 Last Update: 02-01-2008 Installs: 369
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.


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>
replace it to:
Code:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center>
- Refresh your admincp index and Banner Rotator menu should appear!

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #182  
Old 01-08-2009, 02:51 AM
ErnestA ErnestA is offline
 
Join Date: Jan 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using it with IE7 and it works just fine.
Reply With Quote
  #183  
Old 01-09-2009, 08:24 PM
ErnestA ErnestA is offline
 
Join Date: Jan 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #184  
Old 01-11-2009, 02:55 PM
cagbaazee cagbaazee is offline
 
Join Date: Jul 2007
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will it works with version 3.8
Reply With Quote
  #185  
Old 01-14-2009, 01:26 PM
jkcerda jkcerda is offline
 
Join Date: Mar 2008
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #186  
Old 01-14-2009, 04:52 PM
mmblz mmblz is offline
 
Join Date: Oct 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would be cool if this could let you set a different banner depending on the date...
Reply With Quote
  #187  
Old 01-17-2009, 02:11 PM
ErnestA ErnestA is offline
 
Join Date: Jan 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cagbaazee View Post
will it works with version 3.8
I'm running it in 3.8 and it it seems to be OK (even with the hack I made to it).
Reply With Quote
  #188  
Old 01-17-2009, 02:13 PM
ErnestA ErnestA is offline
 
Join Date: Jan 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #189  
Old 01-17-2009, 02:18 PM
ErnestA ErnestA is offline
 
Join Date: Jan 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jkcerda View Post
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.

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.
Reply With Quote
  #190  
Old 01-20-2009, 09:51 PM
jkcerda jkcerda is offline
 
Join Date: Mar 2008
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ErnestA View Post
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.
Fixed the issue, I have access to the server, its being hosted, now I need to find out hoew to get different images to show instead of the same on
Reply With Quote
  #191  
Old 01-22-2009, 12:33 PM
Graphictr's Avatar
Graphictr Graphictr is offline
 
Join Date: Jan 2009
Location: Turkiye
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:05 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04987 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete