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

Reply
 
Thread Tools
Banner Rotator (Definitive Mod) **UPDATED** Details »»
Banner Rotator (Definitive Mod) **UPDATED**
Version: 1.00B, by andrefedalto andrefedalto is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.4 Rating:
Released: 12-13-2006 Last Update: 12-14-2006 Installs: 411
DB Changes Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

New version of https://vborg.vbsupport.ru/showthread.php?t=103477 with minor bugs fixed and added some additions people requested.

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.
- NEW: You can upload flash (SWF) banners!
- You can set a description for individual banners.
- NEW: 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 activate/deactivate you banners.
- Deactivated banners remains in the ftp, but will not be shown on forum home.

Future additions: Add URL for each banner individually, so when users click on it they will be redirected.
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.
- 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 to:
Code:
$banner
- Refresh your admincp index and Banner Rotator menu should appear!

Please, I updated and added new features of this mod in this afternoon, so probably it still have some bugs. So, if you find one please report here.

Thanks!

NOTE: Maybe some of you will have to create folder called "banners" inside folder "images" manually, and then chmod it 0777.

SUPPORT GIVEN ONLY FOR WHO CLICKED "INSTALL"

Show Your Support

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

Comments
  #132  
Old 07-31-2007, 12:09 AM
slosupra slosupra is offline
 
Join Date: Jul 2007
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpya3uei' to './images/banners/test.jpg' in /totalcontrol/brotator.php on line 62
any ideas
Reply With Quote
  #133  
Old 07-31-2007, 12:25 AM
Dannyloski Dannyloski is offline
 
Join Date: Jun 2006
Location: FL
Posts: 401
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack! Very useful ... I'm already running a JavaScript Rotator to do this on my Forums, so dont need this, but if in the future I feel like changing I'll remember this. :up: ...
Reply With Quote
  #134  
Old 08-01-2007, 09:36 PM
silence88 silence88 is offline
 
Join Date: May 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey to All people that got problems installing this, it works fine... !

PP who are looking for a banner rotator, use this... i got no errors.
Reply With Quote
  #135  
Old 08-02-2007, 06:37 PM
benjaminbih benjaminbih is offline
 
Join Date: May 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by valdet View Post
Can someone hack deeper into this great mod, so once we place more than one $banner variable to our desired place it will show random banners, instead of showing the same banner within same browser session (like it does now)?

Or will I have to hardcode and "clone this" product so I can display different ads at once..?

If someone achieves that this mod will be perfect solution for advertisers.

By the way, here are the modded files for those who are having problems with placing links for their banners.

All credit to the original coder andrefedalto and warlion for the "linkage"..

Cheers,
Val
@valdet, andrefedalto, warlion
this is a good one mod,

can you make the banner rotator with the following functions ?

- the ability to set how many times a banner have to be shown before the next one is shown
- the ability to set the order number of each banner
- the ability to set banner for usergroups



regard

P.S.: and its better to add a new code in templates-> header so the original forum banner stay fix on the left side and the rotating banner rotates on the right side

so in templates header after:
Code:
	<td align="$stylevar[center]">
		&nbsp;
	</td>
add this:
Code:
<td align="$stylevar[right]">$banner</td>

maybe som one like it so
Reply With Quote
  #136  
Old 08-03-2007, 09:55 AM
Stefano Virgill's Avatar
Stefano Virgill Stefano Virgill is offline
 
Join Date: Apr 2007
Location: Singapore
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Hack posted by WarLion made a big mess on my 3.6.7

That's the error I have back:
Database error in vBulletin 3.6.7:

Invalid SQL:
INSERT INTO vbbanners (bid, name, width, height, link, alt, flash, active) VALUES ('', 'maxsig_3.jpg', '', '', 'http://www.adobemax2007.com/europe', 'Max Barcellon', '0', '1');

MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054
Date : Friday, August 3rd 2007 @ 05:52:48 AM


The banner is regulary uploaded, but looks like there's no field in the DB for the link.
Anyway, link doesn't work.

I've overwrote the xml files and reinstalled the plugin already.

Thanks for the support

Steve
Reply With Quote
  #137  
Old 08-03-2007, 10:19 AM
Stefano Virgill's Avatar
Stefano Virgill Stefano Virgill is offline
 
Join Date: Apr 2007
Location: Singapore
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, never mind,
I fixed it from phpMyAdmin

The field created was URL instead of LINK

greetings

Steve
Reply With Quote
  #138  
Old 08-03-2007, 05:43 PM
bigevil's Avatar
bigevil bigevil is offline
 
Join Date: Apr 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bigevil View Post
How do I edit the php file or xml file to properly have the width of the banner at 100% all the time? Basically I need my banners to be at 100% because if they are not people with widescreens have a problem viewing the banner because it is too small over the top of the forums.

If you change it within vBulletin AdminCP under the Edit Banner options to 100% it makes the banners look shrunk down or scrunched up within the Edit and Delete banner options. I would like to fix this. Any ideas?
Just bumping this issue...

I am also wanting to have my banners made in the width 1527 for widescreen users, yet the 100% width set would still show up ok for people using 1280x1024 and so on... Please help. Thanks in advance.
Reply With Quote
  #139  
Old 08-04-2007, 02:13 PM
silence88 silence88 is offline
 
Join Date: May 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok 1 question. when i logged in it popped up also s that normal
Reply With Quote
  #140  
Old 08-04-2007, 02:14 PM
silence88 silence88 is offline
 
Join Date: May 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by silence88 View Post
ok 1 question. when i logged in it popped up also s that normal
Sorry WRONG MOD!
Reply With Quote
  #141  
Old 08-15-2007, 01:09 PM
gsmlover4u's Avatar
gsmlover4u gsmlover4u is offline
 
Join Date: Jan 2007
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by slosupra View Post
Warning: move_uploaded_file(./images/banners/test.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /totalcontrol/brotator.php on line 62

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpya3uei' to './images/banners/test.jpg' in /totalcontrol/brotator.php on line 62

any ideas
same problam with me but no any one help me
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:28 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.06032 seconds
  • Memory Usage 2,323KB
  • 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
  • (4)bbcode_code
  • (5)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
  • (2)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