PDA

View Full Version : Miscellaneous Hacks - Banner Rotator (Definitive Mod) **UPDATED**


Pages : [1] 2

andrefedalto
12-13-2006, 10:00 PM
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:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions" />
replace to:
$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.

[B]SUPPORT GIVEN ONLY FOR WHO CLICKED "INSTALL"

Shazz
12-13-2006, 11:36 PM
Looks very nice :)
The 3.5 version of this was my fav. back then

AMG021
12-13-2006, 11:51 PM
Nice

Barakat
12-14-2006, 12:01 AM
so nice ....

Barakat
12-14-2006, 12:23 AM
emmm while uploading a simple banner in ext. of jpg or png it gives this

The selected file type is not allowed.

Dante_elitE
12-14-2006, 08:22 AM
Muito obrigado, esse hack ? muito bom, como eu lhe disse no MSN vai ajudar muita gente.

English :
Very obliged, this hack is very good, as I said to it in the MSN I go to help much people.

radarhunter
12-14-2006, 09:14 AM
has someone installed this on their website if yes can we please see it`s working ???????

as how it will look on the site is not shown in the screenie that author has given :D

projectego
12-14-2006, 09:19 AM
Awesome. Thanks!

andrefedalto
12-14-2006, 09:36 AM
emmm while uploading a simple banner in ext. of jpg or png it gives this

The selected file type is not allowed.
I changed a thing in the brotator.php. Please redownload the pack and replace your brotator.php that is in admincp folder for the one in the zip file. Now when you get the error that file type is not allowed, it will also show the type of the file, so you copy it, go to vBulletin Options in AdminCP, find "Banner Rotator" and then add the new extension there. That should work. If not, report here again please :)

has someone installed this on their website if yes can we please see it`s working ???????

as how it will look on the site is not shown in the screenie that author has given :D
Sorry, my mistake. Check here to see how it looks in the website:
https://vborg.vbsupport.ru/attachment.php?attachmentid=57595
Everytime you refresh or change the page, the banner will be replaced by other randomly.

Tuga??
12-14-2006, 02:43 PM
in my one i dont find

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

any help ?
thank you

<META http-equiv=Page-Exit content=BlendTrans(Duration=0)>
<META http-equiv=Page-Enter content=BlendTrans(Duration=0)>
<script type="text/javascript" src="snow.js"></script>
<!-- logo -->
<a name="top"></a>
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/head_back.gif">
<tr>
<td valign="top" width="965"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/head_left.gif" width="965" border="0"></a></td>
</tr>
</table>
</center>

<!-- /logo -->
<!-- Navigation bar -->
<table width="100%" style="background-image:url($stylevar[imgdir_misc]/nav.jpg)" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" height="87">

<table width="50%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" width="100" height="87"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img src="$stylevar[imgdir_misc]/nav_home.jpg" width="100" height="87" border="0" alt="" /></a></td>
<if condition="$show['registerbutton']">
<td width="100" height="87"><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/nav_reg.jpg" width="100" height="87" border="0" alt="" /></a></td>
<else />
<td width="100" height="87" id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/nav_link.jpg" width="100" height="87" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>
<td align="left" valign="top" width="100" height="87"><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_member.jpg" width="100" height="87" border="0" alt="" /></a></td>
<td align="left" valign="top" width="100" height="87"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_usercp.jpg" width="100" height="87" border="0" alt="" /></a></td>
<td align="left" valign="top" width="100" height="87"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_cal.jpg" width="100" height="87" border="0" alt="" /></a></td>
<td align="left" valign="top" width="100" height="87" id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/nav_search.jpg" width="100" height="87" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td align="left" valign="top" width="100" height="87"><a href="faq.php$session[sessionurl_q]" accesskey="5"><img src="$stylevar[imgdir_misc]/nav_faq.jpg" width="100" height="87" border="0" alt="" /></a></td>

</tr>
</table>
</td>
</tr>
</table>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]:</a></td>
</tr>
<else />
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]:</a></td>
</tr>
</if>
</table>
</form>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>
<!-- / Navagation bar -->

<!-- content table -->
$spacer_open

$_phpinclude_output
$marquee

andrefedalto
12-14-2006, 03:54 PM
Tuga: Giveme your forum address please

Barteken
12-14-2006, 06:16 PM
does this hack also handle javascript? because i have a pool with banners at tradedoubler...

PoetJA-1975
12-15-2006, 03:45 AM
does this hack also handle javascript? because i have a pool with banners at tradedoubler...

Good question! I'd like this to work for google scripts and others...
ALSO - I assume that the $banner can be placed anywhere in say the navbar template?

Looks nice though - Thanx for the share!

Jacquii.

andrefedalto
12-15-2006, 10:23 AM
Sorry, this handles only images (jpg, png, gif...) and flash (swf).

PoetJA-1975: Yes, it will show the images/flash wherever you place $banner ;)


Don't forget to click install!

Barakat
12-15-2006, 10:29 AM
still have the same bug while trying to upload a banner with ext. jpeg or png .

The selected file type is not allowed.

Darat
12-15-2006, 11:55 AM
still have the same bug while trying to upload a banner with ext. jpeg or png .

The selected file type is not allowed.

I've got the same bug - the banners folder is there, chmod'd to 777, the types are defined in the settings but all uploads return an error saying "The selected file type is not allowed. image/gif"

Attitude
12-15-2006, 12:06 PM
Invalid SQL:
UPDATE banners SET active = '1' WHERE bid = '1';

MySQL Error : Table 'mydatabasename.banners' doesn't exist
Error Number : 1146

my table prefix is not mydatabasename though it is testvb

cant figure out what to do ?

NFLfbJunkie
12-15-2006, 03:08 PM
When trying to edit/update or deactivate banner, the following message occurs:

Database error in vBulletin 3.6.4:

Invalid SQL:
UPDATE banners SET active = '0' WHERE bid = '1';

MySQL Error : Table 'databasename_forums.banners' doesn't exist
Error Number : 1146

andrefedalto
12-15-2006, 04:24 PM
Barakat: Download and put the newest brotator.php in admincp folder. When the error appears, it must show the file type like it did with Darat, that showed "image/gif"

Darat: Go to vBulletin Options, Banner Rotator and add this "image/gif" to file types allowed. Dont forget to put | between file types.

Attitude & Junkie: It was my mistake. I forgot to add table prefix in some queries. Everything is ok now. Please download the zip file again and replace ONLY /admincp/brotator.php in your host. Thanks for reporting the bugs!

Please post here again if it works, and dont forget to click install!

phovanxua
12-15-2006, 04:46 PM
Thanks very much ....this is look kick ass .

NFLfbJunkie
12-15-2006, 07:47 PM
Everything is working now; thanks. One other thing. How can I get my banner the same width as the forum width. For the default theme, that would be from the white area from the left to the right - I guess this is the "Main Table Width". When I change the table width to the same width of the banner, the banner is not centered, so it has the appearance of it being off-centered. Any hints?

NFLfbJunkie
12-15-2006, 09:40 PM
I installed this MOD at work on my work computer and everything was okay. I come home and nothing is working on my computer. The banner I created does not show on the forum home page and the banner does not show in the admincp when going to edit the banner. Is this a browser issuer? I have IE7.

Rick
12-16-2006, 01:34 AM
Nice hack, but I need one more feature before I can use it. I need to be able to determine the "weight" of each banner so that some can be shown once per rotation, others once every other rotation etc...

Any chance of adding that in a future version?

Aeolian
12-16-2006, 02:26 AM
Hello there
Very handy addon but i wanna keep my forum image along with banner, kinda like.. http://forum.vbulletinsetup.com/
how do i achieve that with this mod?

thanks

andrefedalto
12-19-2006, 11:46 PM
Everything is working now; thanks. One other thing. How can I get my banner the same width as the forum width. For the default theme, that would be from the white area from the left to the right - I guess this is the "Main Table Width". When I change the table width to the same width of the banner, the banner is not centered, so it has the appearance of it being off-centered. Any hints? Try adding $banner between <center></center> tags. Or if its in a table, add "align=center" to the line/column.

I installed this MOD at work on my work computer and everything was okay. I come home and nothing is working on my computer. The banner I created does not show on the forum home page and the banner does not show in the admincp when going to edit the banner. Is this a browser issuer? I have IE7. Did you check if "banner" folder was created inside images folder? Do the script has permission to read/write from the folder?

Nice hack, but I need one more feature before I can use it. I need to be able to determine the "weight" of each banner so that some can be shown once per rotation, others once every other rotation etc...

Any chance of adding that in a future version?I dont see that feature being added in the future. Sorry, if you can do that, feel free to edit my modification and then release it here ;)

Hello there
Very handy addon but i wanna keep my forum image along with banner, kinda like.. http://forum.vbulletinsetup.com/
how do i achieve that with this mod?

thanksInstead of replacing your forum banner to the code "$banner", you just need to place "$banner" wherever you want and dont remove your main banner code.

Talisman
12-20-2006, 12:36 AM
Nice hack, but I need one more feature before I can use it. I need to be able to determine the "weight" of each banner so that some can be shown once per rotation, others once every other rotation etc...

As a temporary solution until someone here comes up with the code for that, this would do it if an approximate weight that's still random would work for you. This is a very cumbersome and somewhat annoying way to do this, but it'll swap them out closer to what you want .. while you're waiting:

Just upload multiple copies of the same image you want shown more frequently and just a single copy of the headings.

1. Banner 1a
2. Banner 1b
3. Banner 1c
4. Banner 2
5. Banner 3
6. Banner 4
7. Banner 5a
8. Banner 5b
9. Banner 5c
10. Banner 6

Banner 1 will appear (approximately) 30% of the time. Banner 5 will be there 20% of the time. And the remaining 4 banners just 10%.

Thank you so much for the hack, andrefedalto! :bunny:

NFLfbJunkie
12-20-2006, 12:36 PM
Originally Posted by Junkie
I installed this MOD at work on my work computer and everything was okay. I come home and nothing is working on my computer. The banner I created does not show on the forum home page and the banner does not show in the admincp when going to edit the banner. Is this a browser issuer? I have IE7.

Did you check if "banner" folder was created inside images folder? Do the script has permission to read/write from the folder?

The banner folder is in the images folder correctly with 777 mod. The banner shows up at work on IE6, but not on home cpu with IE7.

djawir
12-22-2006, 11:14 AM
The selected file type is not allowed. image/gif

aerogear2002
12-25-2006, 09:07 AM
the root folder is that the www folder

Frimon86
01-02-2007, 10:30 PM
Cool mod!

Cobro
01-08-2007, 01:50 AM
Database error in vBulletin 3.6.4:

Invalid SQL:
SELECT * FROM vbulletinbanners ORDER BY bid DESC;

MySQL Error : Table 'homepage_vb.vbulletinbanners' doesn't exist
Error Number : 1146
Date : Sunday, January 7th 2007 @ 08:47:20 PM
Script : http://forum.homepage.net/admincp/brotator.php?do=delete
Referrer : http://forum.homepage.net/admincp/index.php?do=nav
IP Address : xxx.xxx.xxx.xx
Username : libre
Classname : vb_database

:confused: some help plz

KURTZ
01-08-2007, 02:43 AM
reserved for future use :)

Cobro
01-08-2007, 06:57 PM
:confused: what are you talking about ?? reserved for later ??????

MediaMisfit
01-10-2007, 07:40 PM
Anyways that we can make the banners linkable??? That would be cool.

Cove_new
01-14-2007, 06:07 PM
This mod is rather nicem, but...
1) No gif support - i tried to edit options - no resault
2) Need a field with link, so it can be used with flash only

Immortal_Shades
01-16-2007, 05:04 PM
I uploaded a flash banner a.k.a SWF but not only is not long enough.
(Where can I change banner size/hard core?) But it just doesn't appear at all and all I get is a black box with a Red X.

krazycivik
01-20-2007, 07:01 PM
how do i add banners?? i install it but now what cant find anything

Thechipleaders
01-23-2007, 02:48 AM
I keep getting the following error. Can anyone help? The error goes for any file type nust just a gif

The selected file type is not allowed. image/gif

Thechipleaders
01-25-2007, 03:05 PM
bump

still hoping for some help. This program sounds Great!!!

mktrilogy
02-02-2007, 05:02 AM
I think its the skin im using, i cant seem to find the

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

stinger2
02-02-2007, 03:42 PM
this should be builtin in vbulletin......its just great

RichieBoy67
02-03-2007, 03:50 PM
I commented on the Wrong mod... Please remove this post..

Thanks

marcsmith73
02-04-2007, 12:34 AM
When will be able to add URLs?

amagazi
02-04-2007, 06:39 PM
Good question.. I'm on the verge of installing, but what retailer in their right mind will pay me for an advertisement that doesn't even link to their website?

Ac0l0n
02-09-2007, 08:11 AM
Everytime i try and upload the xml it gives me a error why?

MySQL Error : Table 'banners' already exists
Error Number : 1050
Date : Friday, February 9th 2007 @ 03:12:33 AM
Script : http://www.vbulletin-admin.com/forums/admincp/plugin.php?do=productimport
Referrer : http://www.vbulletin-admin.com/forums/admincp/plugin.php?do=productadd
IP Address : 70.252.165.244
Username : Ac0l0n
Classname : vb_database

MTVSlick
02-09-2007, 10:29 AM
in my one i dont find

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

any help ?
thank you

<META http-equiv=Page-Exit content=BlendTrans(Duration=0)>
<META http-equiv=Page-Enter content=BlendTrans(Duration=0)>
<script type="text/javascript" src="snow.js"></script>
<!-- logo -->
<a name="top"></a>
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" background="$stylevar[imgdir_misc]/head_back.gif">
<tr>
<td valign="top" width="965"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/head_left.gif" width="965" border="0"></a></td>
</tr>
</table>
</center>

<!-- /logo -->
<!-- Navigation bar -->
<table width="100%" style="background-image:url($stylevar[imgdir_misc]/nav.jpg)" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" height="87">

<table width="50%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" width="100" height="87"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img src="$stylevar[imgdir_misc]/nav_home.jpg" width="100" height="87" border="0" alt="" /></a></td>
<if condition="$show['registerbutton']">
<td width="100" height="87"><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/nav_reg.jpg" width="100" height="87" border="0" alt="" /></a></td>
<else />
<td width="100" height="87" id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/nav_link.jpg" width="100" height="87" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>
<td align="left" valign="top" width="100" height="87"><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_member.jpg" width="100" height="87" border="0" alt="" /></a></td>
<td align="left" valign="top" width="100" height="87"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_usercp.jpg" width="100" height="87" border="0" alt="" /></a></td>
<td align="left" valign="top" width="100" height="87"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/nav_cal.jpg" width="100" height="87" border="0" alt="" /></a></td>
<td align="left" valign="top" width="100" height="87" id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/nav_search.jpg" width="100" height="87" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td align="left" valign="top" width="100" height="87"><a href="faq.php$session[sessionurl_q]" accesskey="5"><img src="$stylevar[imgdir_misc]/nav_faq.jpg" width="100" height="87" border="0" alt="" /></a></td>

</tr>
</table>
</td>
</tr>
</table>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
<if condition="$show['member']">
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]:</a></td>
</tr>
<else />
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]:</a></td>
</tr>
</if>
</table>
</form>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>
<!-- / Navagation bar -->

<!-- content table -->
$spacer_open

$_phpinclude_output
$marquee

I too can not find this code, www.guelphsfinest.com if u could let me know what i have to do here that woudl be great, Thank you.


Mark,

Skedoozy
02-12-2007, 01:11 AM
The selected file type is not allowed. image/gif

This mod is rather nicem, but...
1) No gif support - i tried to edit options - no resault
2) Need a field with link, so it can be used with flash only

I keep getting the following error. Can anyone help? The error goes for any file type nust just a gif

The selected file type is not allowed. image/gif


Add the following to Vbulletin Options> Banner Rotator at the end of the Extensions line.

|image/gif


Anyways that we can make the banners linkable??? That would be cool.

When will be able to add URLs?

Yes, this would be nice. Urls for image links. Thanks!

thendershot
02-12-2007, 02:19 PM
Quote:
Originally Posted by MediaMisfit
Anyways that we can make the banners linkable??? That would be cool.

Quote:
Originally Posted by marcsmith73
When will be able to add URLs?

Yes, this would be nice. Urls for image links. Thanks!



^^ yeah thats what i need the banner software for :)

MTVSlick
02-13-2007, 02:35 AM
my keeps saying I cant use that image type, and I have tried all and set image types to most, but still same thing?

Mark,

MTVSlick
02-13-2007, 03:02 AM
okay works now, thank you INSTALLED!

Mark,

Skedoozy
02-19-2007, 11:34 PM
No support on this at all, eh? It seems to be randomly deleting banners now. So weird.

airborneCAL
02-20-2007, 02:55 AM
It would definitely be great if you could add a field to enter the URL of the banner's source to make it clickable. Then, when clicked for it to open a NEW window.

projectego
02-28-2007, 10:57 AM
* projectego clicks install (again!) ;)

MotMann
03-01-2007, 09:36 AM
Do that mod displayed different banner in header and footer?

I mean:

Banner "A" just in Header and Banner "b" just in footer?

brvheart
03-01-2007, 02:38 PM
is there a way to make the banner clickable to the page for the banner you are showing?

Coach_Guru
03-01-2007, 05:09 PM
Future additions: Add URL for each banner individually, so when users click on it they will be redirected.

When this mod?

Thanks.

WarLion
03-03-2007, 09:12 PM
is there a way to make the banner clickable to the page for the banner you are showing?


actually i need that and i made it

find in product-rotator.xml


CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");

and remplace with this
CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`link` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");

then find
} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}

and remplace with
} else {
$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>";
}

now you need to add this about line 89
<phrase name="setting_brotator_default_link_desc" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Defalt link]]></phrase>

and
<phrase name="setting_brotator_default_link_title" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Default link]]></phrase>

save and import

now you need to edit the admincp/brotator.xml

on line 30 add this
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']);

find this
if ($movefile) {
$db->query_write("INSERT INTO " . TABLE_PREFIX . "banners (bid, name, width, height, alt, flash, active) VALUES ('', '$fname', '$_POST[width]', '$_POST[height]', '$_POST[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}

and remplace with this
if ($movefile) {
$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[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}

find this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}

remplace with this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
link = '$_POST[link]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}

find this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$active

and remplaze with this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br>
Link : <input type='text' class='bginput' name='link' value='$banner[link]' class='bginput' size='28'><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$active

save and overwrite

with this you can edit the link too
and thats all works for me on vb 3.6.4

michaelsilvia
03-04-2007, 12:59 AM
How about allowing banners to be assigned to specific forums? I have been looking for something like this! For isntance, I have a baseball sub-forum and would like a baseball header, then a football header in my football forum.

Mike

nirav
03-04-2007, 03:27 PM
i cant find
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
in my header template

WarLion
03-04-2007, 04:12 PM
i cant find
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
in my header template

show me your header

brvheart
03-07-2007, 06:38 PM
thank you much :) will do this in a bit for sure :) I almost say integrate it to the mod or maybe have both in the mod so that people can choose...since I have seen quite a few mention it ;)

thank you again, great mod!!

gsmlover4u
03-08-2007, 04:56 AM
what is this error
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access ./images/banners/iklkiu_468x60_01_01.gif/iklkiu_468x60_01_01.gif in /admincp/brotator.php on line 62

KHALIK
03-14-2007, 11:02 PM
working nicely.

But

can you select different banners for "Specific" forums.

accessdeniedzzz
03-17-2007, 05:37 AM
Nice work ;) i luv it

Spika
03-21-2007, 09:17 AM
actually i need that and i made it

find in product-rotator.xml


CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");
and remplace with this
CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`link` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");then find
} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}and remplace with
} else {
$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>";
}now you need to add this about line 89
<phrase name="setting_brotator_default_link_desc" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Defalt link]]></phrase>and
<phrase name="setting_brotator_default_link_title" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Default link]]></phrase>save and import

now you need to edit the admincp/brotator.xml

on line 30 add this
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']);find this
if ($movefile) {
$db->query_write("INSERT INTO " . TABLE_PREFIX . "banners (bid, name, width, height, alt, flash, active) VALUES ('', '$fname', '$_POST[width]', '$_POST[height]', '$_POST[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}and remplace with this
if ($movefile) {
$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[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}find this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}remplace with this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
link = '$_POST[link]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}find this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$activeand remplaze with this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br>
Link : <input type='text' class='bginput' name='link' value='$banner[link]' class='bginput' size='28'><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$activesave and overwrite

with this you can edit the link too
and thats all works for me on vb 3.6.4

Great work!
Works fine in 3.6.5!
My banners are now clickable, and I Have put I forumhome template below $navbar
but I have another question: How I can open the link in a new Window? Where I have put the code?

Thanks in advanced.

php4ever
03-21-2007, 06:13 PM
I honestly dont see where you add banners. I've searched every single area of the admin cp and cant find a single place to upload images for the banners.

brvheart
03-21-2007, 06:43 PM
actually i need that and i made it

find in product-rotator.xml


CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");

and remplace with this
CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`link` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");

then find
} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}

and remplace with
} else {
$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>";
}

now you need to add this about line 89
<phrase name="setting_brotator_default_link_desc" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Defalt link]]></phrase>

and
<phrase name="setting_brotator_default_link_title" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Default link]]></phrase>

save and import

now you need to edit the admincp/brotator.xml

on line 30 add this
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']);

find this
if ($movefile) {
$db->query_write("INSERT INTO " . TABLE_PREFIX . "banners (bid, name, width, height, alt, flash, active) VALUES ('', '$fname', '$_POST[width]', '$_POST[height]', '$_POST[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}

and remplace with this
if ($movefile) {
$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[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}

find this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}

remplace with this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
link = '$_POST[link]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}

find this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$active

and remplaze with this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br>
Link : <input type='text' class='bginput' name='link' value='$banner[link]' class='bginput' size='28'><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$active

save and overwrite

with this you can edit the link too
and thats all works for me on vb 3.6.4

I did that and now I get a DB error :(

MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054

Spika
03-22-2007, 11:17 AM
I honestly dont see where you add banners. I've searched every single area of the admin cp and cant find a single place to upload images for the banners.

In AdminCP you should see in the left column "Banner Rotator" where you can add, edit or delete banners, If not refresh your browser.

mescalin
03-23-2007, 03:15 PM
Its a perfect mod thank you..!

I would liketo see code rotating options (for bannerexchanges etc.) in the future releases..

andrefedalto
03-24-2007, 01:22 PM
Great work!
Works fine in 3.6.5!
My banners are now clickable, and I Have put I forumhome template below $navbar
but I have another question: How I can open the link in a new Window? Where I have put the code?
Thanks in advanced.
If you did the changes WarLion pointed, find:
} else {
$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 replace to
} else {
$banner = "<a href='".$ban['link']."' target='_blank'><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></a>";
}

I honestly dont see where you add banners. I've searched every single area of the admin cp and cant find a single place to upload images for the banners.
Check attached image.

I did that and now I get a DB error :(

MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054
After making the changes pointed by WarLion you have to reinstall the modification with the changed xml.

Its a perfect mod thank you..!

I would liketo see code rotating options (for bannerexchanges etc.) in the future releases..
Can you explain more please?



And to WarLion: Thanks for helping out :)
Just one thing: there were no need to create a new field in database (link), since i already had set the 'url' field for future releases. But if it works fine, leave as it is. Thanks a lot for adding the feature :)

brvheart
03-24-2007, 11:40 PM
I did reinstall....

mescalin
03-25-2007, 11:17 PM
for example i want to rotate

<center> <iframe src="http://www.anahtars.com/iframe.php?site_id=1xxxxx&bd=1" width="468" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"><a href="http://www.anahtars.com/adclick.php" target="_blank"><img src="http://www.anahtars.com/adview.php?site_id=xxxx&bd=1" width="468" height="60" border="0"></a></iframe></center>

and maybe some other ads as swf, jpg..

many advertisers wants to place the code not just a banner.. it seems to be just a rotating images.. But it can rotate codes it can be fantastic..

andrefedalto
03-26-2007, 09:31 PM
for example i want to rotate



and maybe some other ads as swf, jpg..

many advertisers wants to place the code not just a banner.. it seems to be just a rotating images.. But it can rotate codes it can be fantastic..

Huh, i'm pretty sure there is already a modification for that. Just do a quick search at the mod-database and you should find something that suits your needs :)

I did reinstall....
are you sure u reinstalled the modified version and not the original? I took a look at the code and if you did every step the way you should do, no errors would come up.

xrayeramy
03-27-2007, 11:59 PM
Two questions before trying to install.
The URL code warlion did...is that in a new window? I still want them on my site and not redirected.
Can I have banners 1-10 rotating in the header and banners 11-20 rotating on the left? Do I need to add code somewhere to do that?

xrayeramy
03-28-2007, 12:43 AM
I see my first question was answered in post #70.

ktutorials
04-01-2007, 01:38 PM
when i import GIF it tells gif not supported.. when importing png it tells png not suported..

zahid1
04-05-2007, 12:31 AM
i coudn't find this code in my header

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

this code is avaliable on on default skin cna u tell us for custom skin

zahid1
04-05-2007, 09:08 PM
when i treid to uplaod banner it say The selected file type is not allowed. image/pjpeg

please help me

zahid1
04-05-2007, 09:45 PM
still have the same bug while trying to upload a banner with ext. jpeg or png .

The selected file type is not allowed.


chage extention to ''gif'' or ''jpg'' or what ever u have u justa change to ''swf'' then it will be fine

z0diac
04-06-2007, 11:46 AM
I just started reading this thread - it seems like a good hack, but....

has ANYONE succesfully installed it yet? Seems like everyone's had nothing but problems judging from this thread, so before I install I just want to make sure it's running ok.

brvheart
04-06-2007, 02:02 PM
I installed and it is running great, I am just trying to make the banner clickable which is not in the original mod...so install away ;)

brvheart
04-06-2007, 02:03 PM
Huh, i'm pretty sure there is already a modification for that. Just do a quick search at the mod-database and you should find something that suits your needs :)


are you sure u reinstalled the modified version and not the original? I took a look at the code and if you did every step the way you should do, no errors would come up.

I will re-try them right now and let you know ;)

brvheart
04-06-2007, 02:36 PM
I just re-edited all files and uploaded/overwrote and I still get the same thing...I do have a question with some of the instructions:

now you need to add this about line 89
PHP Code:
<phrase name="setting_brotator_default_link_desc" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Defalt link]]></phrase>
and
PHP Code:
<phrase name="setting_brotator_default_link_title" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Default link]]></phrase>

I added both of these on lines 89 and 90...is that right?

Also does this mean add it to what is already there?:

on line 30 add this
PHP Code:
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']);

kokiri Kid
04-06-2007, 04:19 PM
Excellent, pure genius!

Calibre_k
04-07-2007, 05:01 PM
gif & bmp files it wont let me add any reason why?

rjmjr69
04-07-2007, 05:43 PM
i coudn't find this code in my header

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

this code is avaliable on on default skin cna u tell us for custom skin

Basically you are looking for your banner/logo. Custom skins use different methods to code them in the header template. What I think would be the easiest to do in order to find it in your code. Would be too right click on your current banner goto properties and find the NAME of the banner/logo. Search for that name in your header template. Should be about where you would want to place it?
Someone correct me if I'm wrong but it worked for me. And usually does for other template edits where I can not find the default code.;) ;)

gsmlover4u
04-10-2007, 10:50 AM
how i can solve this error

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

dlee
04-12-2007, 04:51 PM
I don't have any edit settings. Any idea what's up with that? Also, no images are showing up on the forum. The path to the directory holding the images is correct. Header code is as follows:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><center>$banner</center></a></td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

Attached is a screenie of my brotator options.

dlee
04-12-2007, 06:00 PM
Edit from above. Fixed.

Now I get the classic error that everyone has been getting saying that the file i want upload is invalid type: image/pjpeg

Where did you go dude?

deegan
04-13-2007, 07:23 PM
Edit from above. Fixed.

Now I get the classic error that everyone has been getting saying that the file i want upload is invalid type: image/pjpeg

Where did you go dude?In your above screen shot, the first line is "Extensions"...

Add "|image/pjpeg" to the end of it...

Now MY problem is the standard "I have different code in my header so I don't know where to put $banner"...

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>

<td align="$stylevar[left]"><a href="http://www.hardcorepolitics.com" target="_blank"><img src="http://www.hardcorepolitics.com/images/DefaultBanner_buildings.jpg" border="0" width=100% alt="If you see this, then the banner is screwed up"></a></a></a></a>
$header_advertisement
</td>
</tr>
</table>
<!-- /logo -->

Any help?

DFerris
04-15-2007, 10:30 PM
Hi

Once I added the specific url link mod to the banner rotate mod I get this error.

Database error in vBulletin 3.6.5:

Invalid SQL:
UPDATE banners SET
alt = 'TrialsWorld',
width = '699',
height = '90',
link = 'http://www.trialsworld.com/Photopost/showgallery.php,
flash = ''
WHERE bid = '1';

MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054
Date : Sunday, April 15th 2007 @ 06:22:46 PM
Script : http://www.trialsworld.com/VBulletin/admincp/brotator.php?do=edit
Referrer : http://www.trialsworld.com/VBulletin/admincp/brotator.php?do=edit
IP Address : 87.127.154.46
Username : *****
Classname : vb_database

It works fine without the url mod. I must be doing something wrong.
Has anyone got a link to where I can download these modded files. Or can someone email me them please.

Thanks in advance.
Daryl

Ceege
04-16-2007, 01:43 AM
anyone have this working for 3.6.5?

DFerris
04-16-2007, 05:12 AM
I currently run 3.6.5 and it runs fine. Its just the mod to click on a specific link when you click on the banner that I cant get working.

DFerris
04-16-2007, 07:07 PM
Yippee. Got it working. :D

BulletNow
04-18-2007, 03:21 AM
Now how can we make it so when ppl click on the banner it directs them to that homepage.

ThePimp
04-18-2007, 03:37 AM
Banner categories for this would be very slick.
$banner_1
$banner_2
etc...
_# being the category number.

gsmlover4u
04-18-2007, 12:43 PM
when i upload the image i receive this error


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

gsmlover4u
04-25-2007, 12:14 PM
still waiting help for this error

when i upload the image i receive this error

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

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

tbroush
04-25-2007, 03:40 PM
Is anyway to add the statistics back on this version

titorevolu
04-26-2007, 11:31 AM
installing ok.

Vric
04-27-2007, 02:13 AM
installed with the link hack and it work wonder. Thanks !

MPDesignZ
04-29-2007, 12:59 AM
actually i need that and i made it

find in product-rotator.xml


CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");

and remplace with this
CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`link` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");

then find
} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}

and remplace with
} else {
$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>";
}

now you need to add this about line 89
<phrase name="setting_brotator_default_link_desc" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Defalt link]]></phrase>

and
<phrase name="setting_brotator_default_link_title" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Default link]]></phrase>

save and import

now you need to edit the admincp/brotator.xml

on line 30 add this
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']);

find this
if ($movefile) {
$db->query_write("INSERT INTO " . TABLE_PREFIX . "banners (bid, name, width, height, alt, flash, active) VALUES ('', '$fname', '$_POST[width]', '$_POST[height]', '$_POST[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}

and remplace with this
if ($movefile) {
$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[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}

find this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}

remplace with this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
link = '$_POST[link]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}

find this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$active

and remplaze with this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br>
Link : <input type='text' class='bginput' name='link' value='$banner[link]' class='bginput' size='28'><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$active

save and overwrite

with this you can edit the link too
and thats all works for me on vb 3.6.4



Worked perfectly! Thanks :D

MP

juan71287
05-05-2007, 05:36 PM
Hey, I have the STYLE/SKIN Enlighten. Now, the banner is located in the Main CSS. This is how it looks:
#logo {
background: url(enlighten/misc/header_logo.gif);
width: 197px;
height: 102px;
float: left;
margin: 0;
padding: 0;
}
How would I be able to make the banner rotate with the other banners I made?

snakes1100
05-14-2007, 04:32 PM
Quick note for ppl that want the banner to open in a new window.

In product-rotator.xml:

Replace:

} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}


Replace with:

} else {
$banner = "<center><a href='".$ban['link']."' target='_blank'><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0' target='_blank'></a></center>";
}


or

In the plugin "Banner Rotator Generator" after its installed:


Replace:

} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}


Replace with:

} else {
$banner = "<center><a href='".$ban['link']."' target='_blank'><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0' target='_blank'></a></center>";
}




Also i'd like to thank both andrefedalto (for the addon) & warlion (for the modification)

Note:
Warlion removed the center tags, i added them back, if you dont want the banner to automagically center, remove the center tags from the code.

Anthony

tmwamw
05-21-2007, 10:53 AM
Hi there

I dont want to appear thick BUT I installed banner rotator, and it looked to work fine...

However - the banners go no where - they are just images. How do you add the URL the banner is suppoed to go to?

In edit banner on the mod you can out Alt text, change size etc, but what about the hyperlink?

No point having a banner rotator that just shows nice images, or have I just missed something out?

Please advise...... thanks.

Stop
05-23-2007, 10:27 PM
I did the edits WarLion suggested,Here (https://vborg.vbsupport.ru/showthread.php?p=1195101#post1195101), to be able to add links to the banners but it seems that I missed up in something..

Can somebody please upload the modified version ..

Thanks in advanced..

Mrdby
06-04-2007, 12:38 AM
Can This Be Linked To Another Page With All The Uploaded Banners?

phill2003
06-05-2007, 09:06 PM
Marked as installed thanks. I have to say I would not have installed it but for the other user posting the fix to allow linked banners, Might be worth while putting him in the credits and having the code incorporated to the stock hack.

kenblat
06-07-2007, 08:46 AM
I have installed it and it works great. But when using IE i cannot highlight any words on it and plus mouse's autoscroll too. I think it cannot handle with js.

In FF, it's ok. Moreover, how this mod rotates my banners?

phill2003
06-09-2007, 09:26 AM
This does not delete the image from the server, So if you have a banner with the name of 'comp.png' then delete it and try to start a new banner campaign with a different banner called 'comp.png' it uses the old banner.

I had to go and delete the banner from the server manually.

Cooter
06-09-2007, 10:27 PM
per your instructions, it doesn't work

phill2003
06-10-2007, 07:14 AM
per your instructions, it doesn't work

If you follow instructions then it does work the simple fact is, It is working on my site now just go and have a look. I would make sure you have



imported the product

uploaded the 2 files one to admincp the other to includes xml

put the variable $banner where you want to show it.

set the banner options in vbulletin options

set up some banners to show




then if it still does not work undo it and start again.

valdet
06-13-2007, 02:35 PM
Here are the modified 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

tillcat5
06-25-2007, 09:48 PM
des this work with buttons as well as banners

tipoboy
06-26-2007, 08:34 AM
just installed it followed instructions installed plugin did edits etc and all works but the image does not show double checked all 777'd images folder still nothing any help here would be appreciated

tipoboy
06-27-2007, 01:53 PM
anyone know how to resolve this??????

Fungsten
06-27-2007, 11:06 PM
Code:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
replace to:

Code:
$banner


Where it says "replace to" that doesn't mean "replace with" does it? Anyways, the option is not showing up in the ACP except under VB Options.

tipoboy
06-28-2007, 01:00 PM
now i'm confuzed.

"replace to" and "repalce with" arent they the same????

i've been using vb for a while now and all hacks i've done when it asks you to edit the templates it usually means overwriting the existing code!

it appears to work i have the rotating banner option in my admincp can upload new banners can delete banners etc etc but when trying to view them on the forum it just shows the appropriate size of the picture with a red cross in the corner like the picture can not be found even though it has been saved in the banner folder created in the host directory!!!!

so my question again is cane help, cause i'm stumped been trying various things for a few days to no avail
thanks
dave

OpalCat
06-29-2007, 01:34 AM
I am apparently an idiot. I thought this would be a rotator for advertising banners, but instead it completely removed my entire forum logo. Well that sucks. Does anyone know of a banner rotator that lets you have sponsor banners rotating without removing your site's branding like this one does? (A search for "banner rotate" comes up with a bunch of hits, and I don't want to waste a bunch of time messing with another one that totally doesn't do what I want, which is why I'm asking for suggestions rather than just blindly installing another one from the search results.)

we_scooter
06-30-2007, 02:58 PM
sucks i am clicking uninstall , as no support for this hack and it ruins the forum..

TheBlackPoet
06-30-2007, 04:20 PM
i was originally frustrated because i couldnt figure out why my images are not showing... but i got it now... and i applaud your work.. this is beautiful!!!

tipoboy
07-02-2007, 09:14 PM
now i'm confuzed.

"replace to" and "repalce with" arent they the same????

i've been using vb for a while now and all hacks i've done when it asks you to edit the templates it usually means overwriting the existing code!

it appears to work i have the rotating banner option in my admincp can upload new banners can delete banners etc etc but when trying to view them on the forum it just shows the appropriate size of the picture with a red cross in the corner like the picture can not be found even though it has been saved in the banner folder created in the host directory!!!!

so my question again is cane help, cause i'm stumped been trying various things for a few days to no avail
thanks
dave

anyone help here or should i click uninstall which would be ashame??

Fungsten
07-02-2007, 09:20 PM
anyone help here or should i click uninstall which would be ashame??

I've uninstalled. The developer hasn't been online since May.

paypal
07-04-2007, 01:38 AM
I love this mod, Cant wait to get upgraded version adding Link to the banner

The Ottoman
07-04-2007, 01:44 AM
I am apparently an idiot. I thought this would be a rotator for advertising banners, but instead it completely removed my entire forum logo. Well that sucks. Does anyone know of a banner rotator that lets you have sponsor banners rotating without removing your site's branding like this one does? (A search for "banner rotate" comes up with a bunch of hits, and I don't want to waste a bunch of time messing with another one that totally doesn't do what I want, which is why I'm asking for suggestions rather than just blindly installing another one from the search results.)


Have you thought of installing this hack, and then instead of pasting the code in place of your image, you paste it below your image?


For example:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
$banner

The Ottoman
07-04-2007, 01:52 AM
just installed it followed instructions installed plugin did edits etc and all works but the image does not show double checked all 777'd images folder still nothing any help here would be appreciated


To verify, did you chmod the folder, or the files inside of the images of it?

Also, right click on the broken image at the top of your page, select Properties and then verify that the image is in the same place that you uploaded it to.


BTW, did you happen to notice the Notation in bright orange?

tipoboy
07-04-2007, 02:32 PM
To verify, did you chmod the folder, or the files inside of the images of it?

Also, right click on the broken image at the top of your page, select Properties and then verify that the image is in the same place that you uploaded it to.


BTW, did you happen to notice the Notation in bright orange?

yes noticed the bright orange writing had to make the folder and i 777'd it when i click the image it does say that it is the right path to the image. i used ftp to double check if the image was there and it was

any ideas??

The Ottoman
07-04-2007, 07:09 PM
yes noticed the bright orange writing had to make the folder and i 777'd it when i click the image it does say that it is the right path to the image. i used ftp to double check if the image was there and it was

any ideas??


Is the file itself chmodded to 777?

bigevil
07-27-2007, 03:33 PM
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?

valdet
07-27-2007, 04:28 PM
I love this mod, Cant wait to get upgraded version adding Link to the banner

Check few posts above, I already supplied the modded files which include linking your banners to your affiliates/sponsors etc...

I hope you find them useful..

Val.

slosupra
07-31-2007, 12:09 AM
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

Dannyloski
07-31-2007, 12:25 AM
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: ...

silence88
08-01-2007, 09:36 PM
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.

benjaminbih
08-02-2007, 06:37 PM
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:
<td align="$stylevar[center]">
&nbsp;
</td>

add this:
<td align="$stylevar[right]">$banner</td>


maybe som one like it so

Stefano Virgill
08-03-2007, 09:55 AM
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

Stefano Virgill
08-03-2007, 10:19 AM
Ok, never mind,
I fixed it from phpMyAdmin

The field created was URL instead of LINK

greetings

Steve

bigevil
08-03-2007, 05:43 PM
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.

silence88
08-04-2007, 02:13 PM
ok 1 question. when i logged in it popped up also s that normal

silence88
08-04-2007, 02:14 PM
ok 1 question. when i logged in it popped up also s that normal

Sorry WRONG MOD!

gsmlover4u
08-15-2007, 01:09 PM
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

Koby
08-17-2007, 03:05 AM
Works great, but some images upload... and then nothing shows in their place... others work just fine.

Kinda strange, checked FTP and the files are there but it wont show the banners

SpaceStar
08-17-2007, 10:56 PM
actually i need that and i made it

find in product-rotator.xml


CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");

and remplace with this
CREATE TABLE `". TABLE_PREFIX ."banners` (
`bid` smallint(20) UNSIGNED NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`width` varchar(255) NOT NULL default '',
`height` varchar(255) NOT NULL default '',
`alt` varchar(255) NOT NULL default '',
`url` varchar(255) NOT NULL default '',
`link` varchar(255) NOT NULL default '',
`flash` INT(1) UNSIGNED NOT NULL default '0',
`active` INT(1) UNSIGNED NOT NULL default '0',
PRIMARY KEY (`bid`)
)
");

then find
} else {
$banner = "<center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center>";
}

and remplace with
} else {
$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>";
}

now you need to add this about line 89
<phrase name="setting_brotator_default_link_desc" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Defalt link]]></phrase>

and
<phrase name="setting_brotator_default_link_title" date="1166036111" username="FileWarez" version="1.0b"><![CDATA[Default link]]></phrase>

save and import

now you need to edit the admincp/brotator.xml

on line 30 add this
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']);

find this
if ($movefile) {
$db->query_write("INSERT INTO " . TABLE_PREFIX . "banners (bid, name, width, height, alt, flash, active) VALUES ('', '$fname', '$_POST[width]', '$_POST[height]', '$_POST[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}

and remplace with this
if ($movefile) {
$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[alt]', '$_POST[flash]', '$_POST[active]')");
print_cp_message($vbphrase['brotator_add_success'], "brotator.php?do=add", "1");
} else {
print_cp_message("There was an error while moving your file. Please retry.");
}

find this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}

remplace with this
if (!empty($_POST['bid'])) {
$db->query("UPDATE " . TABLE_PREFIX . "banners SET
alt = '$_POST[alt]',
width = '$_POST[width]',
height = '$_POST[height]',
link = '$_POST[link]',
flash = '$_POST[flash]'
WHERE bid = '$_POST[bid]'");
print_cp_message($vbphrase['brotator_edit_desc_success'], "brotator.php?do=edit", "1");
}

find this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$active

and remplaze with this
print_cells_row(array(
"<center>".$img."</center>",
"<form name='form1' method='post' action='brotator.php?do=edit'>
<input type='text' class='bginput' name='alt' value='$banner[alt]' class='bginput' size='35'><br>
Link : <input type='text' class='bginput' name='link' value='$banner[link]' class='bginput' size='28'><br>
Width: <input type='text' class='bginput' name='width' value='$banner[width]' class='bginput' size='5'>
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>
Flash? <label for='flash".$banner[bid]."' class='smallfont'><input name='flash' id='flash".$banner[bid]."' type='checkbox' value='1' ".$checked."><strong>Yes</strong></label>
<input type='hidden' name='bid' value='$banner[bid]'>
<input type='hidden' name='update' value='1'>
<input type='submit' name='Submit' value=' ".$vbphrase['brotator_edit_update']." ' class='button'>
</form>",
$active

save and overwrite

with this you can edit the link too
and thats all works for me on vb 3.6.4


Great - it works fine - though this put the banner to the left hand side - remember to put CENTER for centering the banner....

} else {
$banner = "<a href='".$ban['link']."'><center><img src='" . $vbulletin->options[bburl] . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></center></a>";
}

websiteking532
08-18-2007, 07:03 AM
what a great mod

but i got the following error when i tried to add a banner

http://upload.bz/files/zvjmr1zgnjqgnmdxjkdm.jpg

sunnycher
08-18-2007, 02:27 PM
Not working, i added the GIF ext and it still wont let me upload it ?


I changed a thing in the brotator.php. Please redownload the pack and replace your brotator.php that is in admincp folder for the one in the zip file. Now when you get the error that file type is not allowed, it will also show the type of the file, so you copy it, go to vBulletin Options in AdminCP, find "Banner Rotator" and then add the new extension there. That should work. If not, report here again please :)


Sorry, my mistake. Check here to see how it looks in the website:
https://vborg.vbsupport.ru/attachment.php?attachmentid=57595
Everytime you refresh or change the page, the banner will be replaced by other randomly.

sunnycher
08-18-2007, 02:31 PM
It's not letting any of the ext upload lol!

sunnycher
08-18-2007, 02:33 PM
too much of a hassle, uninstalled.

SpaceStar
08-18-2007, 09:58 PM
Just experinced, if you put a question mark (?) in ALT field, it comes up with an SQL error :)

i.s.s.w
08-22-2007, 12:25 PM
Nice :)

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

The selected file type is not allowed.

majorvbuser
08-22-2007, 01:52 PM
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??

applyimage
08-22-2007, 02:26 PM
|This error is returned when trying to upload a banner:
Warning: move_uploaded_file(./images/banners/communitybanner.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in /admincp/brotator.php on line 62

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

edit: uninstalled.

sorry.

SpaceStar
08-22-2007, 02:46 PM
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

SpaceStar
08-22-2007, 02:48 PM
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:

scenes
08-22-2007, 05:17 PM
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

smp3000
08-22-2007, 07:41 PM
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.

scenes
08-22-2007, 07:53 PM
:( 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 ? :confused:

Thanks

scenes
08-23-2007, 10:00 AM
:) 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 ?

:D Too many questions????

BTW - here's my forum site:
http://www.zag.it/forums

stevebullman
08-23-2007, 02:58 PM
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.

WarLion
08-26-2007, 06:12 AM
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 (https://vborg.vbsupport.ru/showthread.php?t=133954&page=4) 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
`link` varchar(255) NOT NULL default '',
and add below
`target` varchar(20) NOT NULL default '',

find
$banner = "<a href='".$ban['link']."><img src='" . $vbulletin->options . $defaultdir . "/" . $ban['name'] . "' alt='" . $ban['alt'] . "' width='".$ban['width']."' height='".$ban['height']."' border='0'></a>";
}

and remplase with
$banner = "<a href='".$ban['link']."' [B]target='".$ban['target']."'><img src='" . $vbulletin->options . $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
$defaultdir = str_replace(".", "", $vbulletin->options['brotator_default_dir']);

add below
$target_options = array(
_self => _self,
_blank => _blank,
_parent => _parent,
_top => _top,
);


find
print_input_row('Link', 'link', $vbulletin->options['brotator_default_link']);

add below
print_select_row('Target', 'target', $target_options, _self);

find

$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
$db->query_write("INSERT INTO " . TABLE_PREFIX . "banners (bid, name, width, height, link, [b]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
link = '$_POST[link]',

add below
target = '$_POST[target]',

find
Height: <input type='text' class='bginput' name='height' value='$banner[height]' class='bginput' size='5'><br><br>

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


http://img142.imageshack.us/img142/488/addfc6.png
http://img142.imageshack.us/img142/4914/edithj1.png


all credits go to andrefedalto (https://vborg.vbsupport.ru/member.php?u=122172)

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

AquilaEagle
08-26-2007, 01:41 PM
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?

69075

WarLion
08-26-2007, 02:25 PM
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?

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?

Caddyman
08-26-2007, 03:10 PM
ok call me dumb, how do i replace this image with the banner? sidebar_top.gif

<td style="width: 200px; height: 99px; background-image:url($stylevar[imgdir_misc]/sidebar_top.gif); background-repeat:no-repeat;"></td>

AquilaEagle
08-26-2007, 03:22 PM
I've fixed it - removed the files and it sorted itself :)

CrashPush
08-30-2007, 05:26 PM
Installed and works great! I love this mod! My favorite mod of this board! 35 different banners rotating on my site!

I'm just waiting for a 'per forum banner' rotator.

stevebullman
08-30-2007, 05:38 PM
try this then
https://vborg.vbsupport.ru/showthread.php?t=132716

what i found particulary useful was the coding on the second post in, you can paste that anywhere and have a rotating banner!

kylewood
09-02-2007, 02:50 PM
There was an error while moving your file. Please retry.

I get that error, help anyone?

AnabolicResourc
09-03-2007, 02:33 PM
Works great !

apokphp
09-15-2007, 05:14 AM
The banner folder is in the images folder correctly with 777 mod. The banner shows up at work on IE6, but not on home cpu with IE7.
I had a similar problem. Turns out it was my anti-virus program. I use Kaspersky (could be others that do it as well). The program is more than just an anti-virus program, it's also anti-spyware, firewall, pop-up, etc...

One of the other things it does, is "anti-spy". It prevents sites from using invasive scripts, often found in banners. I fixed mine by turning off my "anti-banner" protection in my Anti-Spy settings.

If you don't use Kapersky but another system, try to find the settings for anti-banners, turn it off, all should be fixed.

bigraph
09-16-2007, 12:43 AM
is it possible for you to come up with a hack that would load X banner in X forum and sub forums, and Y banner for Y forum and subforums. I would appreciate it :)

BrotherX
09-24-2007, 01:42 PM
How to call banners outside of the header template, for example in postbit template, becouse it is obvius banners will not load outside of the header with code

$banner?

IS300luver
09-28-2007, 02:51 AM
After all the mods I still cannot get this work. Does anyone have the files that have been modded so that you can actually upload images? I found those other files a few pages back and it is still not working for me. Thanks -Brandon

plastourgos
10-11-2007, 12:12 PM
not working on 3.6.x version

z0diac
10-13-2007, 01:07 PM
Ok...

1: It does not allow me to import JPG images.
http://img91.imageshack.us/img91/3418/screen01ye4.jpg

2: I manually copied all my banners from my /graphics directory into my images/banners directory (which I had to create myself) and it's still not loading banners.

http://forum.icedogfans.com

Now I have a forum with no banners at all!

z0diac
10-13-2007, 01:15 PM
On top of not working, uninstalling does not revert your header script back to normal, so you have to replace the code back into it that you changed. Sorry, but I have to give this script a low rating. Not working, requires user to create own directories, doesn't uninstall properly, etc... if it's not meant to work on 3.6.8 there should be a huge bold text statement saying so. Says it works on 3.6.4, but doesn't say it doesn't work on 3.6.8

qtouch
10-15-2007, 04:34 AM
great hack man just installed and works like a charm.

EDIT : Any ideas why I can't see the banners with Internet Explorer ? works fine firefox but not IE.....

sylar
10-17-2007, 06:56 AM
Does any one have the code on how to have the banners link back to the site wiht the $banner on it. Also how can I align them to the left instead of center. I have tried the <left> tag but it does not work.

Thanks in advance.

sylar
10-17-2007, 09:44 AM
WellI could not get the code working that people suggested here for the links on the banners. I was only concerned with poiting my banners to my own forum so I used the code below to do this.

<div id="logostrip">$banner<alt="$vboptions[bbtitle]" /> </div>

I was also able to align my banner to the left using the info provided in the code on post 54.

Now the MOD is running flawlessly for me. Love it. I use another product for advertisement banners as this one is not well suited for that.

Thanks for everyones help and insight.

Khashayar581
10-25-2007, 02:21 PM
thanks. installed and work fine,
but for me, i doesnt any sence without clickable banners!!!

Jenkins
11-13-2007, 01:53 PM
selected image not allowed

*edit* nevermind I'm an idiot, this question was address on the first page :P haha. i had to add image/pjpeg and now it works fine.!

SaltyOnionBalls
11-26-2007, 09:16 PM
This hack is the best!

Sorry if this hasn't been asked, but how many banners can we add? Unlimited? :D

ginnser
11-27-2007, 04:39 PM
working but dont having problems. how do i mod 0777 ??? whats that all about ?

Cheers

rwoscott
11-27-2007, 06:00 PM
working but dont having problems. how do i mod 0777 ??? whats that all about ?

Cheers
You have to change the read/write/Execute permissions of the uploaded files.

You can usually do this through your FTP client, by looking at the properties or attributes of the file.

I use WinSCP, right click on the uploaded file in the admincp directory, then select properties.
Click all the permission R/W/X boxes, The Octal will change to 0777, and you will be able to use the admincp functions properly.

As you are not having any problems then the above is for your information only.

rwoscott
11-27-2007, 06:06 PM
Thanks For the mod, installed and working. nicely.

Is it possible to split the banner?

We used to have a left and right banner, right for display only, left took you to another part of the site. Is it easy/possible to do this?

phonepro
12-04-2007, 03:23 AM
i got the Banner rotaror in admin cp when i click add banner i get
this message

The selected file type is not allowed. image/gif

i have checked the chmod ok also jpg file same issue

this is my header can anyone tell me where to add $banner
<!-- logo -->
<a name="top"></a>
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="background-image:url($stylevar[imgdir_misc]/back.jpg)">
<tr>
<td valign="top"><td valign="top" width="100"><img src="$stylevar[imgdir_misc]/link_02.gif" width="100" border="0" alt="Reviews"/></td>
<td valign="top" width="100">
$banner</td <img src="$stylevar[imgdir_misc]/link_03.gif" width="100" border="0" alt="Articles"/></td>
<td valign="top" width="100"><img src="$stylevar[imgdir_misc]/link_04.gif" width="100" border="0" alt="Downloads"/></td>
<td align="right" valign="bottom"><img src="$stylevar[imgdir_misc]/link_05.gif" alt=""/></td>
$banner
</tr>
</table>
</center>

phonepro
12-06-2007, 03:45 AM
can anyone help on this?

rwoscott
12-06-2007, 05:38 AM
can anyone help on this?
Under AdminCP > vBulletin Options > Banner Rotator > Extensions

Do you have image.gif in there??

Also, in the same location what does this field contain?
Default dir for images.

realsumon
12-06-2007, 06:50 AM
working fine! Thanks for module

rigodiaz
12-11-2007, 12:05 PM
what is this error
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access ./images/banners/iklkiu_468x60_01_01.gif/iklkiu_468x60_01_01.gif in /admincp/brotator.php on line 62
Just create a new folder in the images folder with the name "banners", and change mod 777.


Grate Mod, thanks!

mofeu
12-17-2007, 07:31 PM
I have a problem when I am trying to upload a banner I have the following error message

The selected file type is not allowed. image/gif

the allowed extensions are jpeg|jpg|png|bmp|gif|image/jpeg|application/x-shockwave-flash

rwoscott
12-17-2007, 09:31 PM
I have a problem when I am trying to upload a banner I have the following error message

The selected file type is not allowed. image/gif

the allowed extensions are jpeg|jpg|png|bmp|gif|image/jpeg|application/x-shockwave-flashInclude image.gif in the allowed extensions. Remember to include a pipe | to separate each item.

Robert Paulson
12-18-2007, 01:48 AM
Nice hack. It took some work to get up and running, but I'm a total noob so it's to be expected.

And I apologize if this has been covered, but is there a way to keep an existing logo on the left of the header and load the banners to the right, like below. :o

I've been back and forth for an hour with other issues like the installation, new file extensions, etc., I'm just spent and need a quick fix.

http://i243.photobucket.com/albums/ff200/ez_willis/bnr.jpg

Mary517
12-21-2007, 12:51 AM
I'm doing something wrong. I've uploaded the 2 files into the file manager (into several places, was confused by "root" vs "admincp" folders.) Have made all R/W/X 777. Have uploaded in Plugins & Products - Manage Products. The "Banner Rotator" appears in vBulletin Options list of stuff. Have edited the header to display the banner. (Have edited settings to show it on the right, 468 x 60.)

But after refreshing the admincp the Banner Rotator dropdown does not show up on the left. That is, the dropdown to banner functions, like the Styles & Templates, Languages & Phrases and so on.

I'm guessing there is one simple thing I haven't done, but I haven't figured it out. (Have read this thread.)

Thanks for any suggestions and help! :)

Robert Paulson
12-21-2007, 02:48 AM
I'm doing something wrong. I've uploaded the 2 files into the file manager (into several places, was confused by "root" vs "admincp" folders.) Have made all R/W/X 777. Have uploaded in Plugins & Products - Manage Products. The "Banner Rotator" appears in vBulletin Options list of stuff. Have edited the header to display the banner. (Have edited settings to show it on the right, 468 x 60.)

But after refreshing the admincp the Banner Rotator dropdown does not show up on the left. That is, the dropdown to banner functions, like the Styles & Templates, Languages & Phrases and so on.

I'm guessing there is one simple thing I haven't done, but I haven't figured it out. (Have read this thread.)

Thanks for any suggestions and help! :)

Try logging out of your Admin CP, close out the browser, then open it up again and log back in.

ReadOrDie
12-21-2007, 03:01 AM
If I have multiple skins how do I make it so certain banners only appear for certain skins? If I have two different skins I don't want the same banners appearing for each one.

CMGU
12-21-2007, 10:45 PM
thats great thanks


*install

CMGU
12-21-2007, 10:49 PM
- Go to your AdminCP > Style Manager > YOUR SKIN > Edit HEADER template and find:

<img src="$stylevar[titleimage]" border="0" alt="$vboptions" />

and replace with
$banner
[B]You have to do this in all skins

Mary517
12-22-2007, 12:09 AM
Try logging out of your Admin CP, close out the browser, then open it up again and log back in.
thx - no luck

In the Plugin - Manage Products I am not sure which file was to be uploaded. I have tried it with product-brotator.xml and with brotator.php. (Deleting the previous try and starting over each time.) I don't know where the Manage Products places the actual file, so perhaps that one isn't 777'd and that is the problem.

I have uploaded the files brotator.php and product-brotator.xml into several places in the file manager in the attempt to get it running. Both files are now located at the root-root of the server, one level down in the public_html folder, in public_html/admin (with a number of admin php files,) public_html/admincp (created because it was mentioned in this thread,) public_html/forums/, public_html/images. All are chmod 777. If I figure out which is the working folder/file I'll delete the others.

Appreciate any tips. I look forward to being another happy brotator user. :)

Leon44
12-22-2007, 08:10 PM
Hello I have a small question. Can you select what skin you want each banner to display on?

xcesiv
12-24-2007, 09:59 AM
How Can i make the banner rotator left aligned

Yaqoob
12-24-2007, 10:10 AM
nice work but i need by arabic Language if you can support me then i will be install :)

parash
12-31-2007, 06:46 PM
i have a question to devloper and and others as well .. i need exactly something like this .. which can change banner whenever you refresh and reload the forum .. but the position is diffrent ..in my site ( its a radio site ) i have made groups .. Rj group .. dj Group .. spammer group and staff group .. so like people are in that group ..so i would upload few banner banner for certain group and .. banners should appear in the user posts and threads .. and everytime they refresh it changes .. banner rotater ..here is how it should looks .. this is my forum without banner i made a box where banner should appear ..
https://vborg.vbsupport.ru/

and this is a site that already have that banner thing in them .. this is how it looks there ( dont know if links are allowded so i didnt mention it here)
https://vborg.vbsupport.ru/

xcesiv
01-13-2008, 05:44 AM
Still wondering how to changethe banner to be left justified

mofeu
01-14-2008, 06:30 PM
Include image.gif in the allowed extensions. Remember to include a pipe | to separate each item.

Warning: move_uploaded_file(./images/banners/tmbannergoodfh5.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/phpQXZM3M' to './images/banners/tmbannergoodfh5.gif' in /admincp/brotator.php on line 62

mofeu
01-14-2008, 06:57 PM
Just create a new folder in the images folder with the name "banners", and change mod 777.


Grate Mod, thanks!


OK!!!:)

mofeu
01-14-2008, 07:05 PM
In my skin
I don't have to replace <img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
Is anything that I can do?

socalrico
01-17-2008, 11:10 PM
does your banner ad mod allow you to click and link? If so how?

Oh wait I just read that it will be a future feature. Any idea when?

socalrico
01-19-2008, 04:45 PM
It would be nice to have this mod combined with cyb flash image banner rotator

Admin CP access with link options as opposed to Cyb flash's quick links access (That I was never able to make work)

Stile2
01-20-2008, 05:55 PM
ok ever since I have done the add the url hack to this mod I get a database error.

Invalid SQL:
UPDATE banners SET
alt = '',
width = '400',
height = '120',
link = 'http://www.zenmods.com',
flash = ''
WHERE bid = '1';

MySQL Error : Unknown column 'link' in 'field list'
Error Number : 1054
Date : Sunday, January 20th 2008 @ 11:40:06 AM

Any help would be great!
Thanks

gbox master
01-20-2008, 10:36 PM
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:


@ SpaceStar or others
where does the php file go's
this is what i miss in the topic

and i find it not good that the coder self is not suporting this:(
therefore my respect for other coders who are supporting this hack:up:

andrefedalto
01-20-2008, 11:41 PM
Hey people. I wanna apologize for leaving the mod unsuported, but i had some problems (well, i cant call it a problem, couse it was a good thing) and didnt have time to login here and help you.

But just to update you all, a new version of this mod will probably come out soon (already vB 3.7 certified :) ). Therefore i wont be supporting this thread while the new mod is under development.

Hope you all understand :)

SNATCH3R
01-22-2008, 10:44 AM
Thanks for this mod...installed on vb 3.6.8....works fine....

Stile2
01-23-2008, 03:17 PM
Well no support, Clicks Uninstall!!! Bummer.

SpeedJunkyz
01-24-2008, 09:33 PM
Im confused about the instructions to install, can you re state them more clearly.

I DL'ed the info to my pc
I uploaded the files in the image folder in the zip
I installed the xml file product to my admincp
I do not know which template you are talking about with the header. Should I revert the header tmplate first?

edit:

I figured out how to fix the header code, however its not working what did I do wrong

what does this mean = "and CHMOD 77 the folder "/image/banners""

Robert Paulson
01-25-2008, 05:25 AM
I do not know which template you are talking about with the header.
If you're just using the default template, edit that one. If you have a custom template, edit that one. If you are giving your users the option to select multiple unique headers, you'll need to edit all of them if you want the banners to appear on each one.

SpeedJunkyz
01-25-2008, 10:27 AM
Im confused about the instructions to install, can you re state them more clearly.

I DL'ed the info to my pc
I uploaded the files in the image folder in the zip
I installed the xml file product to my admincp
I do not know which template you are talking about with the header. Should I revert the header tmplate first?


edit:

I figured out how to fix the header code, however its not working what did I do wrong

what does this mean = "and CHMOD 77 the folder "/image/banners""


No I figured out the header bit, its still not working. I dont know what chmod 77 means. If noone can help me I guess I will get my designer to do it thanks

webspider
01-25-2008, 01:05 PM
I must be daft. How do you set the url for each banner?

gbox master
01-25-2008, 01:31 PM
No I figured out the header bit, its still not working. I dont know what chmod 77 means. If noone can help me I guess I will get my designer to do it thanks


chmod is the rights of the dir or file
there are 3 category's owner group and world
those 3 have 3 options
read write execute

ok thats to much for me i dont understand anything of this
so lets make it easy for you
download total commander
login on the server with that
go to the file that needs to be chmodded
select it
then at the top of total at the left i think it say in english FILE
klik it then choose change atributes

then you will understand everything there is about chmod:p
for noobs like us this is the way to understand something about this:D

see jpegs :D

ps:
lees=read
schrijf=write
uitvoeren=execute
bestand=file

SpeedJunkyz
01-25-2008, 04:45 PM
lol ok thanks, Nevermind I will just get my developer to do it lol

Robert Paulson
01-26-2008, 06:54 AM
lol ok thanks, Nevermind I will just get my developer to do it lol

It's not real difficult. Right click on the file. It'll become painfully obvious at that time.

SpeedJunkyz
01-26-2008, 11:53 AM
No im having a hard time reading peoples typing because either they leave out words, letters or whatever, so their typing isnt making any sense

SpeedJunkyz
01-26-2008, 12:19 PM
Ok I ch mod 0777 it lol I think....why didnt someone just say change the permissions of that file/folder lol

Robert Paulson
01-27-2008, 07:51 AM
why didnt someone just say change the permissions of that file/folder lol

Because it's easier and quicker to say chmod 777? :confused:

socalrico
01-27-2008, 05:30 PM
Uninstalled. Couldn't get the link to work in quick links.

SpeedJunkyz
01-27-2008, 06:10 PM
yeah it is still no worky for me what have I done wrong...anyone please I need to move on from this to another project, or else i will just uninstall Thanks

SJ

andrefedalto
01-31-2008, 04:51 PM
New version, with new features: https://vborg.vbsupport.ru/showthread.php?t=169266

gbox master
01-31-2008, 09:55 PM
New version, with new features: https://vborg.vbsupport.ru/showthread.php?t=169266

nice one dude
posting in 3.6.8 that there is a new version
and then its for 3.7
some times things can make me cry :confused:

computer1
02-23-2008, 05:07 AM
I dont have this

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

Code:
<center>$banner</center>
and I can upload my banners but I cant se them to my portal I use vba cmps
so plz howe shuld I do ?

here is my code for the header

<!-- logo -->
<a name="top"></a>
<div id="border"><div id="main">
<table width="792" style="margin-left: 1px; margin-right: 1px; border: 0px;" cellspacing="0" cellpadding="0">
<tr>
<td class="header1"></td>
<td class="header1"></td>
</tr>
<tr>
<td class="logo"></td>
<td class="headspace"></td>
</tr>
<tr>
<td class="navl"></td>
<td class="nav"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img src="tiger/misc/nav-home.gif" width="105" height="19" style="border: 0px;" alt="$vboptions[bbtitle]" /></a> <a href="memberlist.php$session[sessionurl_q]"><img src="tiger/misc/nav-members.gif" width="105" height="19" style="border: 0px;" alt="$vbphrase[members_list]" /></a>

<if condition="$show['member']">
<a href="usercp.php$session[sessionurl_q]"><img src="tiger/misc/nav-usercp.gif" width="105" height="19" style="border: 0px;" alt="$vbphrase[user_cp]" /></a>
</if>
<if condition="$show['registerbutton']">
<a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="tiger/misc/nav-register.gif" width="105" height="19" style="border: 0px;" alt="$vbphrase[register]" /></a>
</if>
<a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="tiger/misc/nav-search.gif" width="105" height="19" style="border: 0px;" alt="$vbphrase[search]" /></a></td>
</tr>
</table>
<!-- content table -->

$_phpinclude_output
$spacer_open

CMGU
02-24-2008, 04:34 PM
How can I make the banner This a section specifies As shown in the attached image

maidos
02-25-2008, 01:41 PM
possible to put my banner at left side? i dont want it to be center

rwoscott
02-25-2008, 05:25 PM
possible to put my banner at left side? i dont want it to be centerIf you've put your $banner (in header template) in between <center> tags remove the center tags. Or use align=left in your <TD> tag.

mariocaz
02-25-2008, 05:40 PM
How many banners can I add with this mod ?? more than 10 ?? or ther is no limitant ?

thank you

CMGU
02-25-2008, 11:01 PM
How can I make the banner This a section specifies As shown in the attached image


anybody help me?

kingmotox
03-11-2008, 07:11 PM
any updates on this hack like the future plans listed.

EcoCav
04-15-2008, 07:39 PM
Still getting the same error....

The selected file type is not allowed.

Is there a fix to this, or did I just waste my time?

webspider
04-15-2008, 07:49 PM
Extensions accepted for upload (separated by |)

jpeg|jpg|png|bmp|gif|image/jpeg|image/png|image/gif|application/x-shockwave-flash

Jpax
04-18-2008, 03:34 PM
The selected file type is not allowed. image/gif
Same errors over and over and over.

in the admin pannel > banner rotator> I changed jpeg|jpg|png|bmp|gif|image/jpeg|image/png|image/gif|application/x-shockwave-flash
to
.jpeg|.jpg|.png|bmp|.gif|.image/jpeg|.image/png|.image/gif|application/x-shockwave-flash

and it still dont work

Jpax
04-18-2008, 03:59 PM
well I got it working but the links are all trying to go to my website forum. IE: 7

Heres how I aligned my banner


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[center]"><a href="<if condition="$ban['url']">$ban[url]" target="_blank"><else /></if>$banner</a></td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

http://www.Mysite.com/forum/Sitethat should be opening a new window.com <- It should go to the site i asked for when i set it up. any ideas

baymortgage99
04-20-2008, 05:39 AM
Banner Rotation hack - I needed this

blazinchuck
04-21-2008, 02:29 AM
I'm not seeing the banner menu in styles manager?
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />

I took that^^^^^^out and replaced it with $banner...is that right? Take all that out and replace it with"$banner" I'm new to this and could use some help. I'm really nervous when making changes to the templates-especially when I dont understand this stuff anyway.

imports
04-22-2008, 12:05 AM
it still doesnt work..any update?

pooffck
04-22-2008, 08:28 PM
hello
anyone can help.... i have a problem pls
how can i put different banners, in center with some space between them ?
see the pic below:
https://vborg.vbsupport.ru/external/2008/04/28.jpg

FishMRC
04-24-2008, 06:34 PM
Like some of the others, I installed this last night, but only tried loaded images this evening.

I am also getting the error message that is cannot load image/jpeg or image/gif.

Any ideas?

Thanks
Fish

River_rush
04-26-2008, 08:23 AM
you have to add them to the allowed list, its been covered it in this thread or the 3.7 before.

FishMRC
04-27-2008, 07:23 PM
Yes I have, and I've also added the image/jpeg stuff, and still getting the error message!

I've loaded the newer version and this still doesnt work!

I'm starting to wonder why I am bothering with it.

The permissions are set at 777 on the ./image and .image/banners folders and still no luck.

Fish

scruffy
04-28-2008, 08:52 AM
Hiya :)

Firt off, I should add that i am THE most UNtechy gal in the world, but i would love to have this on my forum. I have a friend that added a 'header' for the new skin, and I'm not sure how to add this and put it beneath the heading of the forum?

Dont laugh please :D I'm truly rubbish.

Reading the posts here its all way over my head, so if someone could tell me in childlike terms I'm forever in your debt.

Thank you in advance

scott_gersforum
05-04-2008, 10:49 AM
Does this work with 3.7?
I use it as my main banner and I am just about to upgrade to 3.7.
Anyone know?

goranbaxy
05-05-2008, 06:59 AM
Hi, great mod, installed!

However I would like to see more option for every banner I add, like should it open in new window or not And stuff like that :)

legionofangels
05-06-2008, 03:56 AM
Can you add links so that the banners will go to pages that you define?

bornic
05-24-2008, 10:15 AM
How can I add url on it

thestaton
05-27-2008, 02:20 PM
Hi, great mod, installed!

However I would like to see more option for every banner I add, like should it open in new window or not And stuff like that :)

x2. anyone try this for 3.7 yet?

g0dfather1984
05-31-2008, 09:26 PM
Question, I have allowed GIF images on the rotator. So, I do have some that uploaded. However, when trying to load others it doesn't work.

Why would it work for some and not for others? How do I go about fixing this matter?