vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Banner Rotator (Definitive Mod) (https://vborg.vbsupport.ru/showthread.php?t=103477)

andrefedalto 12-20-2005 10:00 PM

Banner Rotator (Definitive Mod)
 
Hi you there. I was looking for a really nice Banner Rotator Mod, but i couldn't find one that had what i need. So i decided to code one. Finished it right now and i'll share with you.

So, what does this hack do?
- This mod allows you to add lots of forum banners.
- The banners will be automatically randomized 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 set a description for individual banners.
- 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 activate/deactivate you banners.
- Deactivated banners remains in the ftp, but will not be shown on forum home.

How can i install? (Time to install: 1 minute if you are fast enough :))
- Upload all the files contained in the "upload" folder inside the zip to your forum root directory and CHMOD 77 the folder "/image/banners"
- Install product-brotator.
- Go to your AdminCP > Style Manager > YOUR SKIN > Edit HEADER template and find:
Code:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
Replace with:
Code:

<center>$banner</center>

You can change banner width and height editing the plugin called "Banner Rotator Generator" and changing the values:
Code:

width=879 height=160
for your own values.

I really hope you enjoy this hack and, please, if you find any kind of bug, report it to me as soon as possible.
And if you have any suggestions, post here.

Thanks you all!

GoTTi 12-21-2005 08:07 PM

thats a good hack.

try www.phpadsnew.com for probably the best banner management system out. and its free.

Daniel 12-21-2005 08:36 PM

I had a template modification like it, https://vborg.vbsupport.ru/showthrea...threadid=99402

Great job though!

rb290 12-21-2005 09:04 PM

Database error in vBulletin 3.5.2:

Invalid SQL:
SELECT * FROM brotator WHERE active = '1' ORDER BY Rand() LIMIT 1;

MySQL Error : Table 'thug_thug.brotator' doesn't exist
Error Number : 1146
Date : Wednesday, December 21st 2005 @ 06:03:38 PM

rb290 12-21-2005 09:07 PM

cant get on the board, gives me database error, can someone tell me whats wrong, when i uploaded a pic from the admincp it gave me a database error

jrofosho 12-21-2005 09:13 PM

my database tables weren't created either.

andrefedalto 12-21-2005 09:18 PM

apparently the tables weren't created. take a look at you db sctructure and look for any "brotator" table you find. if you want, give me your msn and i can fix that for you

jrofosho: same to you.. tables were not created. look for table brotator or ive me a way to contact you, like msn

thanks

rb290 12-21-2005 09:19 PM

msn: da_shiznit29@hotmail.com

jrofosho 12-21-2005 09:26 PM

msn: jrofosho@gmail.com

rb290 12-21-2005 09:40 PM

??????????


All times are GMT. The time now is 01:51 AM.

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.01891 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)bbcode_code_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