vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Banner Rotator (https://vborg.vbsupport.ru/showthread.php?t=169266)

andrefedalto 01-30-2008 10:00 PM

Banner Rotator
 

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


nyqnzguju 01-31-2008 05:14 PM

installed & nominated will give it a shot soon

Thanks

gwerzal 01-31-2008 05:23 PM

Thanks gonna give it a go now

Can you add different banners to each seperate forum with this.

valdet 01-31-2008 05:30 PM

Installed and will give it a shot soon. Thanks

socalrico 01-31-2008 05:41 PM

Ok I tried to upgrade from the previous version and got SQL DB errors, crashed the whole site. So next I unistalled and reinstalled brotator. OK so far,

I went to upload the first banner, and I got "There was an error while moving your file. Please retry."

I then ftp to check if maybe the old banners are still in the banners folder. They are so I delete them and try again. I still get "There was an error while moving your file. Please retry."

Um? where do I go from here?

socalrico 01-31-2008 05:55 PM

Duh!!!!! I figured out why the images weren't uploading. (image directory)
yours is images/brotator min is images/banner
Now I got to figure out why the banners aren't linking.

andrefedalto 01-31-2008 06:43 PM

Quote:

Originally Posted by socalrico (Post 1433302)
Duh!!!!! I figured out why the images weren't uploading. (image directory)
yours is images/brotator min is images/banner
Now I got to figure out why the banners aren't linking.

Hey, i renamed the folder/table to "brotator", so they have the same name as the php file :)

socalrico 01-31-2008 07:22 PM

Alright I got mine fixed. I had to remove some old code from the header and add the new code listed above.

Great Mod!!!!! Thanks for the ad links!!!!

iogames 01-31-2008 07:54 PM

Wow! great! Thanks!

gbox master 01-31-2008 09:51 PM

can some one confirm that this one works with 3.6.8 pl2
and no conflicts with other mods


All times are GMT. The time now is 11:20 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
  • Page Generation 0.01115 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete