The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Banner Rotator (Definitive Mod) **UPDATED** Details »» | |||||||||||||||||||||||||||
Banner Rotator (Definitive Mod) **UPDATED**
Developer Last Online: Feb 2016
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]" /> Code:
$banner 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
|
Comments |
#152
|
|||
|
|||
Quote:
Check post #47 |
#153
|
|||
|
|||
Quote:
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: |
#154
|
|||
|
|||
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 |
#155
|
|||
|
|||
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. |
#156
|
|||
|
|||
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 |
#157
|
|||
|
|||
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 |
#158
|
|||
|
|||
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.
|
#159
|
||||
|
||||
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 '', Code:
`target` varchar(20) NOT NULL default '', 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>"; } 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>"; } 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']); Code:
$target_options = array( _self => _self, _blank => _blank, _parent => _parent, _top => _top, ); Code:
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']); Code:
print_select_row('Target', 'target', $target_options, _self); 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"); 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"); Code:
link = '$_POST[link]', Code:
target = '$_POST[target]', Code:
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br> 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> Code:
http://img142.imageshack.us/img142/488/addfc6.png http://img142.imageshack.us/img142/4914/edithj1.png 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 |
#160
|
|||
|
|||
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 |
#161
|
||||
|
||||
Quote:
and wich version of VB do you have? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|