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
  #22  
Old 02-03-2008, 05:54 AM
Stile2 Stile2 is offline
 
Join Date: Dec 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Perfectly!! thanks
Reply With Quote
  #23  
Old 02-03-2008, 08:39 AM
CypherSTL CypherSTL is offline
 
Join Date: Mar 2006
Location: St. Charles, MO
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if you dont have the code in your header?

- 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>

My Header does not contain the code to look for, so not sure what to replace.
Reply With Quote
  #24  
Old 02-03-2008, 08:58 AM
andrefedalto andrefedalto is offline
 
Join Date: Dec 2005
Location: Brazil
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CypherSTL View Post
What if you dont have the code in your header?

- 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>

My Header does not contain the code to look for, so not sure what to replace.
You have to find the code for your current header logo, and replace it with the code from brotator.
Reply With Quote
  #25  
Old 02-03-2008, 09:22 AM
Reecey Reecey is offline
 
Join Date: Dec 2007
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i try to add image and get this error :

Warning: move_uploaded_file(./images/banners/jobs.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /admincp/brotator.php on line 62

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpDGSgso' to './images/banners/jobs.gif' in /admincp/brotator.php on line 62
Reply With Quote
  #26  
Old 02-03-2008, 10:24 AM
pow6713's Avatar
pow6713 pow6713 is offline
 
Join Date: Sep 2006
Location: Turkiye
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner $banner</a></center>
I add a " $banner " to header and it still works...

And is it possible to locate more than one banner ...

2 or more lines and 2 - 4 - 6 banners and we are going to have more banners on our forums ...

and maybe we can add google addsense ...

is it possible ?
Reply With Quote
  #27  
Old 02-03-2008, 10:32 AM
andrefedalto andrefedalto is offline
 
Join Date: Dec 2005
Location: Brazil
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reecey View Post
i try to add image and get this error :

Warning: move_uploaded_file(./images/banners/jobs.gif) [function.move-uploaded-file]: failed to open stream: No such file or directory in /admincp/brotator.php on line 62

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpDGSgso' to './images/banners/jobs.gif' in /admincp/brotator.php on line 62
be sure you have a folder called "banners" inside your forum images folder.

Quote:
Originally Posted by pow6713 View Post
Code:
<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner $banner</a></center>
I add a " $banner " to header and it still works...

And is it possible to locate more than one banner ...

2 or more lines and 2 - 4 - 6 banners and we are going to have more banners on our forums ...

and maybe we can add google addsense ...

is it possible ?
If you add just $banner you will miss the linking function
You can put the banner anywhere you want, but it'll show the same banner in all places, to change u gotta refresh the page. Maybe with a little tweak you can add the option to get more then one banner from the database.

No, google adsense is not supported
Reply With Quote
  #28  
Old 02-03-2008, 12:43 PM
Reecey Reecey is offline
 
Join Date: Dec 2007
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeh it is but it dont work still
Reply With Quote
  #29  
Old 02-03-2008, 03:32 PM
Stile2 Stile2 is offline
 
Join Date: Dec 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is how I added banners to my forum. Works great!! I ended up with my original header with an ad banner right next to it. Both are centered, and both are links to separate sites. My original header links to my forum home page and the ad banner links to page that I told it to when I added the banner. Hope that makes sense.

Code:
<td align="$stylevar[left]"><center><a href="http://www.iemas.us/index.php"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center>
	</td>
BTW, I really like how I can tell the banner which forums to show up in.
Good job on this mod.

Thanks
Keith
Reply With Quote
  #30  
Old 02-03-2008, 10:26 PM
andrefedalto andrefedalto is offline
 
Join Date: Dec 2005
Location: Brazil
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Reecey View Post
yeh it is but it dont work still
Please try uninstalling the entire modification and reinstalling from the beggining. If that doesnt work, please provide more information, like server configuration.
Reply With Quote
  #31  
Old 02-04-2008, 03:45 PM
uReside.com uReside.com is offline
 
Join Date: Oct 2003
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting the error 65 error

Warning: move_uploaded_file(./images/brotator/templogo1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /admincp/brotator.php on line 65

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phppPu2IT' to './images/brotator/templogo1.jpg' in /admincp/brotator.php on line 65

I needed to change permissions on the folder.
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 04:31 PM.


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.05444 seconds
  • Memory Usage 2,324KB
  • 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
  • (5)bbcode_code
  • (4)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