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

andrefedalto 02-01-2008 01:30 AM

Quote:

Originally Posted by gbox master (Post 1433468)
can some one confirm that this one works with 3.6.8 pl2
and no conflicts with other mods

as far as i tested, it works with 3.6.8 pl2... i dont know about conflicts because i dont have all mods installed, but conflict shouldnt be a problem

GsmHelp 02-01-2008 05:36 AM

first need to uninstal old version if not have data base error,in rest work ok

webspider 02-01-2008 02:07 PM

I like this mod very much. Many Thanks!!

I have one suggestion. It would be nice to be able instead of uploading each banner that we could link to an external banner.

Cheers

gforce75 02-02-2008 08:18 AM

A new one? I've been using ur old one and that still rocks. If you need to see a demo, check out http://myffnet.com and hit refresh. I have 3 that work great :p

Stile2 02-02-2008 03:36 PM

I have installed and the banner shows up, and the link works.

But I would like to keep my forum's name in the header as well as the new banner.
So I put the code in after the code to put my forum name(banner) in. Problem is that the new banner shows up below my name banner and centered.

How would I get them to show up next to each other?

http://www.iemas.us

Right now I am just using the same image twice, for testing.

Thanks
Keith

PS I tried to just make my name banner simply include the as banner, but then I can't have my name banner link to my forums, and the ad link to the vendor.

Help Please.

andrefedalto 02-02-2008 08:32 PM

Quote:

Originally Posted by Stile2 (Post 1434642)
I have installed and the banner shows up, and the link works.

But I would like to keep my forum's name in the header as well as the new banner.
So I put the code in after the code to put my forum name(banner) in. Problem is that the new banner shows up below my name banner and centered.

How would I get them to show up next to each other?

http://www.iemas.us

Right now I am just using the same image twice, for testing.

Thanks
Keith

PS I tried to just make my name banner simply include the as banner, but then I can't have my name banner link to my forums, and the ad link to the vendor.

Help Please.

Hey there, the modification was centering the banner by default. I removed the center tags from the code and added them to the template. So now you gotta download the zip file again from here (i updated it) and reinstall de product. And when replacing/adding the code to your header template, be sure to remove the "<center>" and "</center>" tags from it.

Hope it works!

River_rush 02-02-2008 09:51 PM

Hi, I am getting he selected file type is not allowed. image/gif when uploading err gifs, help!

Site url http://anotherfordforum.com/forums/index.php

andrefedalto 02-02-2008 11:06 PM

Quote:

Originally Posted by River_rush (Post 1434893)
Hi, I am getting he selected file type is not allowed. image/gif when uploading err gifs, help!

Site url http://anotherfordforum.com/forums/index.php

Go to your AdminCP > vBulletin Options > Banner Rotator

There will be a field for allowed file types, just add "image/gif" there (dont forget the comma).

gforce75 02-02-2008 11:18 PM

Well, the centered is most likely to the banner being between a centered tag. Check your html code, i.e. HEADER - if t hat's where it's at. I use dreamweaver to easily see my vb layouts and will spot all these simple errors.

River_rush 02-02-2008 11:22 PM

Quote:

Originally Posted by andrefedalto (Post 1434927)
Go to your AdminCP > vBulletin Options > Banner Rotator

There will be a field for allowed file types, just add "image/gif" there (dont forget the comma).

Your a star, I now confirm this banner rotator to be the current top of its class :) working with 3.6.8 patch 3 btw :)

Stile2 02-03-2008 05:54 AM

Works Perfectly!! thanks

CypherSTL 02-03-2008 08:39 AM

What if you dont have the code in your header?

- 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>

My Header does not contain the code to look for, so not sure what to replace.

andrefedalto 02-03-2008 08:58 AM

Quote:

Originally Posted by CypherSTL (Post 1435196)
What if you dont have the code in your header?

- 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>

My Header does not contain the code to look for, so not sure what to replace.

You have to find the code for your current header logo, and replace it with the code from brotator.

Reecey 02-03-2008 09:22 AM

i try to add image and get this error :

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

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpDGSgso' to './images/banners/jobs.gif' in /admincp/brotator.php on line 62

pow6713 02-03-2008 10:24 AM

Code:

<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner $banner</a></center>
I add a " $banner " to header and it still works...

And is it possible to locate more than one banner ...

2 or more lines and 2 - 4 - 6 banners and we are going to have more banners on our forums ...

and maybe we can add google addsense ... :D

is it possible ?

andrefedalto 02-03-2008 10:32 AM

Quote:

Originally Posted by Reecey (Post 1435215)
i try to add image and get this error :

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

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpDGSgso' to './images/banners/jobs.gif' in /admincp/brotator.php on line 62

be sure you have a folder called "banners" inside your forum images folder.

Quote:

Originally Posted by pow6713 (Post 1435236)
Code:

<center><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner $banner</a></center>
I add a " $banner " to header and it still works...

And is it possible to locate more than one banner ...

2 or more lines and 2 - 4 - 6 banners and we are going to have more banners on our forums ...

and maybe we can add google addsense ... :D

is it possible ?

If you add just $banner you will miss the linking function :)
You can put the banner anywhere you want, but it'll show the same banner in all places, to change u gotta refresh the page. Maybe with a little tweak you can add the option to get more then one banner from the database.

No, google adsense is not supported :(

Reecey 02-03-2008 12:43 PM

yeh it is but it dont work still :(

Stile2 02-03-2008 03:32 PM

This is how I added banners to my forum. Works great!! I ended up with my original header with an ad banner right next to it. Both are centered, and both are links to separate sites. My original header links to my forum home page and the ad banner links to page that I told it to when I added the banner. Hope that makes sense.

Code:

<td align="$stylevar[left]"><center><a href="http://www.iemas.us/index.php"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]"><a href="<if condition="$ban['url']">$ban[url]<else />$vboptions[forumhome].php$session[sessionurl_q]</if>" target="_blank">$banner</a></center>
        </td>

BTW, I really like how I can tell the banner which forums to show up in.
Good job on this mod.

Thanks
Keith

andrefedalto 02-03-2008 10:26 PM

Quote:

Originally Posted by Reecey (Post 1435313)
yeh it is but it dont work still :(

Please try uninstalling the entire modification and reinstalling from the beggining. If that doesnt work, please provide more information, like server configuration.

uReside.com 02-04-2008 03:45 PM

I'm getting the error 65 error

Warning: move_uploaded_file(./images/brotator/templogo1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /admincp/brotator.php on line 65

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phppPu2IT' to './images/brotator/templogo1.jpg' in /admincp/brotator.php on line 65

I needed to change permissions on the folder.

andrefedalto 02-04-2008 07:03 PM

Quote:

Originally Posted by uReside.com (Post 1436176)
I'm getting the error 65 error

Warning: move_uploaded_file(./images/brotator/templogo1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /admincp/brotator.php on line 65

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phppPu2IT' to './images/brotator/templogo1.jpg' in /admincp/brotator.php on line 65

I needed to change permissions on the folder.

change permissions on "brotator" folder to 0777 (chmod 777 it)

superthang 02-18-2008 10:33 PM

Please consider adding support for raw html so we can put google adsense or cpx ..

also, banner id? so we can add more than 1 unique banner to the forums?

start with banner1 banner2 and banner3 ?

thanks!

iow_bg 02-22-2008 02:54 AM

When trying to add banners... I keep getting this message.

I am uploading a file named "banner.jpg"

The selected file type is not allowed. image/pjpeg

Please help...

Gersfan 02-27-2008 11:03 AM

Is this safe to use in VB 3.6.8 ? ... Is it still causing problems in that version..

Just wondering since it's still in Beta.

Mrquarter 02-27-2008 01:00 PM

I keep getting this MySQL error:

Code:

Database error in vBulletin 3.7.0 Beta 4:

Invalid SQL:
INSERT INTO banners (bid, name, width, height, alt, flash, active) VALUES ('', 'quarterx1.gif', '800', '120', 'QuarterX', '0', '1');

MySQL Error  : Table '6241_forum.banners' doesn't exist
Error Number  : 1146
Date          : Wednesday, February 27th 2008 @ 02:59:45 PM
Script        : http://www.quarterx.org/forums/admincp/brotator.php?do=add
Referrer      : http://www.quarterx.org/forums/admincp/brotator.php?do=add
IP Address    : xxx.xxx.xxx.xxx
Username      : Tyler
Classname    : vB_Database
MySQL Version : 5.0.45


Mrquarter 02-27-2008 02:44 PM

Can anybody help me?

Zekeman 03-01-2008 12:03 AM

Quote:

Originally Posted by iow_bg (Post 1448483)
When trying to add banners... I keep getting this message.

I am uploading a file named "banner.jpg"

The selected file type is not allowed. image/pjpeg

Please help...


Me too!

7lanet 03-01-2008 12:15 AM

thanks

cagbaazee 03-20-2008 05:34 AM

i hv install , every one is okay, but i didnot see where are the banner. do someone explain it. Thanks

cagbaazee 03-20-2008 05:35 AM

Quote:

Originally Posted by Zekeman (Post 1454102)
Me too!

Go to your AdminCP > vBulletin Options > Banner Rotator

There will be a field for allowed file types, just add "image/pjpeg" there (dont forget the comma).


All times are GMT. The time now is 06:18 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.01554 seconds
  • Memory Usage 1,841KB
  • 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
  • (6)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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