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
  #152  
Old 08-22-2007, 02:46 PM
SpaceStar SpaceStar is offline
 
Join Date: Apr 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by i.s.s.w View Post
Nice

while uploading a simple banner in ext. of jpg or png it gives this

The selected file type is not allowed.

Check post #47
Reply With Quote
  #153  
Old 08-22-2007, 02:48 PM
SpaceStar SpaceStar is offline
 
Join Date: Apr 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by majorvbuser View Post
Anybody know of a banner rotation script which allows you to actually add a URL to the banner? I don't understand what purpose a banner script is that doesn't make the banners clickable??

check post #57!

I've modified these files and it's working great for me at www.pegham.com - you can make your own modifications or use these files I've modified:
Reply With Quote
  #154  
Old 08-22-2007, 05:17 PM
scenes scenes is offline
 
Join Date: Aug 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm new to all of this!
VB is a big application, probably too big for me.
Anyway...
...I would like to use this Banner utility.

"- Upload all the files contained in the "upload" folder inside the zip to your forum root directory."

...I don't have any ZIP file or folder in my Forum directory...
Also, I don't have any admincp, because I changed the name. Is it the same?

"- Install product-brotator."

The file is "product-brotator.xml" ?
Where do I have to upload it ?
How do I have to install it ?

Thanks from any help in the world!
I just finished to change the look of my forum site, I would like to finish this to make it run.

I understand these are silly questions...
Thanks for any help
Reply With Quote
  #155  
Old 08-22-2007, 07:41 PM
smp3000 smp3000 is offline
 
Join Date: Aug 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Scenes, to answer your questions:

I'm not sure what you mean by the fact that you changed the name of admincp, but it's the admin control panel (clicking admin on the lower right-hand corner of your forum page).

Once in, go to "Plugins & Products" and go to "Manage Products". Then in the right page go to Add/Import plugin and this is where you browse to the xml file to upload the plugin.

Download the zip file underneath the "Download Now" section of the first post.
Reply With Quote
  #156  
Old 08-22-2007, 07:53 PM
scenes scenes is offline
 
Join Date: Aug 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Arghhhhh!

Thanks for reply !

I just discovered how to upload the plug-in.
This VB is incredible... lot of parameters everywhere!

Anyway... It's absolutly fantastic!

Ok, I was able to install it and I made a test uploading a jpg banner.
Of course, as I read in previously posts, I had an error about "image/pjpg" kind of images.
I fixed.

Now on the page is showing the banner: wow ! Hurrah !

But...

There's a way to put the banner aligned to the LEFT ?
It seems that the CENTER is locked !
I tryed to see at the php file... But I didn't understand where is this option...
I added a forced div alignment in the common templates manager, but doesn't work...

Where do I have to check ?

Thanks
Reply With Quote
  #157  
Old 08-23-2007, 10:00 AM
scenes scenes is offline
 
Join Date: Aug 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This add-on is nice and works.
Not easy to install at first time, but then it gives good results.

Only :

1) I don't succeded in changing the alignment for banners. They always look in the middle of their space.

2) I'm using banners of 468x60 pixels. Very strange, if I go with the mouse on the left and on the right (out of the banner) the link remains active. I have a doubt, somewhere in the php gives to banners fixed dimensions? Probably is also the matter that it dosn't move on the left...

3) Is it possible to add the chance to know how many time the banners are displayed?

4) Is it possible to add the chance to know how many times banners are clicked?

I don't know php, just a little to change minimum customization if they are in html.
Banners inside PHP-Nuke works great.
Is it possible to use the same modules inside VB ?

Too many questions????

BTW - here's my forum site:
http://www.zag.it/forums
Reply With Quote
  #158  
Old 08-23-2007, 02:58 PM
stevebullman stevebullman is offline
 
Join Date: Jul 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ive uploaded this and there doesnt seem to be an option anywhere for uploading banners. am i missing something? the edit option shown in the first screenshot at the top of the page isnt there.
Reply With Quote
  #159  
Old 08-26-2007, 06:12 AM
WarLion's Avatar
WarLion WarLion is offline
 
Join Date: Jun 2006
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi how
wow long time this mod is not updated ok for the intersted i been workin a little bit in this hack the last time was for the mod for url and this time is for choose the target opcion i meant _self, _blank _top etc.

remenber you need to have the last mod with the link opction post 57 and then you can do this one.

for this you need to edit two files one is Product-brotator.xml and brotator.php

lets start with product-brotator.xml
you need to find this line
Code:
`link` varchar(255) NOT NULL default '',
and add below
Code:
`target` varchar(20) NOT NULL default '',
find
Code:
$banner =     "<a href='".$ban['link']."><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></a>";            
    }
and remplase with
Code:
$banner =     "<a href='".$ban['link']."' target='".$ban['target']."'><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></a>";            
    }
and save it

you can upload the xml with admincp- >products & plugins-> add / import product-> and allow the overwrite if you already have it

now lets start with brotatos.php

find
Code:
$defaultdir = str_replace(".", "", $vbulletin->options['brotator_default_dir']);
add below
Code:
$target_options = array(
			_self => _self,
			_blank => _blank,
			_parent => _parent,
			_top => _top,
			);
find
Code:
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']);
add below
Code:
print_select_row('Target', 'target', $target_options, _self);
find
Code:
$db->query_write("INSERT INTO " . TABLE_PREFIX . "banners (bid, name, width, height, link,, alt, flash, active) VALUES ('', '$fname', '$_POST[width]', '$_POST[height]', '$_POST[link]', '$_POST[target]', '$_POST[alt]', '$_POST[flash]', '$_POST[active]')");
			print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
and remplace width
Code:
$db->query_write("INSERT INTO " . TABLE_PREFIX . "banners (bid, name, width, height, link, target, alt, flash, active) VALUES ('', '$fname', '$_POST[width]', '$_POST[height]', '$_POST[link]', '$_POST[target]', '$_POST[alt]', '$_POST[flash]', '$_POST[active]')");
			print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
find this
Code:
link = '$_POST[link]',
add below
Code:
target = '$_POST[target]',
find
Code:
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
add below
Code:
Target :<select name='target' onChange='MM_jumpMenu('parent',this,0)' class='bginput'>
  					  <option>'$banner[target]'</option>
					  <option>_self</option>
  					  <option>_blank</option>
   					 <option>_parent</option>
   					 <option>_top</option>
 					 </select>&nbsp;
save it and upload to your server, if everithis go rigth you will have someting like this one

Code:
http://img142.imageshack.us/img142/488/addfc6.png
http://img142.imageshack.us/img142/4914/edithj1.png
all credits go to andrefedalto

i don put the files cuz al are in spanish lol i will try to upload after i translate back.


and i have a new idea i will make to choose the alig give me more ideas do you like <div> or <table>, <center> what do you like more?
i will made the modifficaccion and a complite new product to upload
Reply With Quote
  #160  
Old 08-26-2007, 01:41 PM
AquilaEagle AquilaEagle is offline
 
Join Date: Jun 2002
Location: London, UK
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DAMN THIS THING. I installed this to the letter, and had awful problems with it. Got it working almost, and then found that I cannot get into my adminCP - well I can get into my adminCP but not the vBulletin Options part at the top - just getting a blank screen. All other parts of the adminCP work. I have done nothing else but install, and now un-installed this mod. Now the un-install is done, template changed back etc, this adminCP error remains. Can anyone help?

Attachment 69075
Reply With Quote
  #161  
Old 08-26-2007, 02:25 PM
WarLion's Avatar
WarLion WarLion is offline
 
Join Date: Jun 2006
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AquilaEagle View Post
DAMN THIS THING. I installed this to the letter, and had awful problems with it. Got it working almost, and then found that I cannot get into my adminCP - well I can get into my adminCP but not the vBulletin Options part at the top - just getting a blank screen. All other parts of the adminCP work. I have done nothing else but install, and now un-installed this mod. Now the un-install is done, template changed back etc, this adminCP error remains. Can anyone help?

Attachment 69075
when you say i installed to the letter what do yo mean, what do you install?
and wich version of VB do you have?
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:52 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.09955 seconds
  • Memory Usage 2,337KB
  • 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
  • (17)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
  • (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