View Full Version : Miscellaneous Hacks - Banner Rotator (Definitive Mod) **UPDATED**
old7888
06-05-2008, 05:31 PM
I can't get it to work with 3.7.1
webspider
06-05-2008, 06:23 PM
It works fine with 3.71 but you may want to try the proper version.
glenbelt
06-30-2008, 02:59 PM
Hopefully someone here can help - I'm trying to install the Banner Rotator but I've got a different forum style so I'm not too sure...
I can't find this line of code:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
on the Header section of my forum.
My Header section contains a lot more code than the default one:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 331px;"><img src="$stylevar[imgdir_misc]/header_left.jpg" alt="" width="331" height="80" /></td>
<td style="background-image:url($stylevar[imgdir_misc]/header_bg.gif);"><div style="padding-right: 15px;" align="right">$random_banner3[$random_number3]</div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="background-image:url($stylevar[imgdir_misc]/links_bg.gif); height: 22px;">
<div class="headlinks" style="padding-left: 15px;">
<a href="index.php">Home</a>
<a href="faq.php$session[sessionurl_q]" accesskey="5">FAQ</a>
<a href="http://www.paid2review.co.uk/$session[sessionurl_q]">Make Money Online</a>
<a href="http://www.make-money-investing.co.uk/$session[sessionurl_q]">Make Money Investing</a>
<a href="memberlist.php$session[sessionurl_q]">Members List</a>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a>
<else />
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></if></if>
<a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow" id="navbar_search">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if>
</if>
<if condition="$show['member']">
<a href="$show[nojs_link]#usercptools" id="usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></if> <a href="#">Advertise</a>
<if condition="$show['member']"><a href="usercp.php$session[sessionurl_q]">UserCp</a></if>
<if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]" rel="nofollow">Register</a></if></div>
</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="childforums" value="1" />
<input type="hidden" name="exactname" 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>
<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>
</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&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['pmmainlink']"><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 -->
</if>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 15px;"><img src="$stylevar[imgdir_misc]/links_under_left.gif" alt="" width="15" height="11"></td>
<td style="background-image:url($stylevar[imgdir_misc]/links_under_bg.gif);"><div align="right"><img src="$stylevar[imgdir_misc]/links_under_right.gif" alt="" width="15" height="11"></div></td>
</tr>
</table>
<div style="padding-top: 15px;"></div>
<table width="100%" border="0" cellspacing="11" cellpadding="0">
<tr>
<td valign="top">
<table style="background-color: #c5c7f1;" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="width: 7px; height: 7px;"><img src="$stylevar[imgdir_misc]/rounded_topleft.gif" width="7" height="7"></td>
<td colspan="2"><div align="right"><img src="$stylevar[imgdir_misc]/rounded_topright.gif" alt="" width="7" height="7"></div></td>
</tr>
<tr>
<td> </td>
<td>
<!-- content table -->
$spacer_open
$_phpinclude_output
Any idea where the line of code is?
Thanks for any help
wWw.Fun2Wii.Com
06-30-2008, 09:38 PM
thanks
anderow
07-06-2008, 11:16 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
Have you added it with an
|
so image/gif|image/jpeg
and so on .
No seperator is used at the end of the last item
pt-hanhdung
07-09-2008, 03:59 PM
"Not Found
The requested URL /misc.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
I attach link to banner. But when lick to banner , Iy not show link. It's make errors like that. Help me slove this problem.
gbox master
07-13-2008, 04:16 PM
some things can drive you crazy
this is one of them
The selected file type is not allowed. image/gif
the file is a gif and the size is ok
so why is this not accepted ?
if some one could help me with this it would be apriciated
pauldack
07-15-2008, 12:08 PM
gbox master
You need to add the extension type to Options -> Banner Rotator -> Extensions
Jonouchiboy
07-19-2008, 12:16 PM
Hi. I installed it, and the images are uploaded, but I can't see them in the 'Edit Banners' tab. What's wrong? http://img147.imageshack.us/img147/8625/nobannerfd4.jpg
it says: "
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access /home99a/sub005/sc62064-XBST/www/forum/images/banners/Banner - 001.png in [path]/admincp/banner_rotator.php on line 56"
Also, there're not showing up on my frontpage either. I know it's in the right spot too. Thanks ^_^
nMIK-3
07-19-2008, 07:43 PM
To developer
A good idea is to add the ability to display a specific banner to specific forums, or limit a banner to be displayed only in a group of forums.
Also another good idea is to automatically deactivate a banner after a specific amount of views or hits.
gbox master
07-20-2008, 10:45 PM
gbox master
You need to add the extension type to Options -> Banner Rotator -> Extensions
i think you meen like this ?
jpeg|jpg|png|bmp|gif|image/jpeg|application/x-shockwave-flash
these settings are standard in the banner rotator when i installed it
as you can see gif is in the list and stil its not accepted
shoot me because i dont understand it
and i reaaly would like it to work because more people are asking me for a banner on my site now
and i really want to add some banners for organisations who do good work
like greenpeace and so on
so if some one feels like helping out you can always contact me:cool:
acast
09-05-2008, 03:25 AM
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?
I have the same. Any idea??If i put there the code doesnt appear, appears the background.
/* ***** sets background for header area - No need to change this ***** */
#hdr {
background: #F7632F url(enlighten/misc/header_back.gif) ;
width: 100%;
height: 102px;
margin: 0;
padding: 0;
}
dohkoken
09-06-2008, 10:21 AM
i have a same problem to "gbox_master"
for gif and jpg import
I can not find:
<img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" />
Please help!
jonbaker
11-18-2008, 03:42 PM
I installed and this works great!! I followed the installation and I have the GIF to work, I can upload and all the other settings. However, the image I use seems to be centered in some odd setting. The image is not left justified, and there seems to be a larger area that is not a hotlink. I can see that by hovering my mouse from side to side of the image.
Is there another setting that I am missing?
www.metrodubs.com/forums
I changed the following settings in the vBulletin Options section for Banner Rotator;
added “|image/gif”
default height to 85
default width to 575
default Alt to www.metrodubs.com
file size to 50000
default dir (unchanged)
and I added the following to the header;
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]">$banner</a></td>
jonbaker
11-18-2008, 04:56 PM
i removed all <center> </center> from the brotator.php file. still no results.
HaS?R
01-28-2009, 04:15 PM
Thank You.Installed
jonbaker
02-11-2009, 12:10 AM
why does it show the banner centered?
vbplusme
02-11-2009, 12:32 AM
why does it show the banner centered?
Is this a new query or an extension of the old question you asked months ago? Most likely the "template" that has the banner call has center alignment wrapped around it. You should check the header template where you placed the $banner. The call that its embedded in will probably have an center alignment in it.
davew
02-15-2009, 08:54 AM
Working fine with 3.8.1
Thank you!
jonbaker
02-16-2009, 02:38 AM
Is this a new query or an extension of the old question you asked months ago? Most likely the "template" that has the banner call has center alignment wrapped around it. You should check the header template where you placed the $banner. The call that its embedded in will probably have an center alignment in it.
sorry, with over 18 pages to read through, i must have missed it. my apologises.
92GreenGT
02-20-2009, 03:00 PM
Wanted to ask this question, I've got this mod installed and it works great! My question is that can I also make this display a different set of banners below my navbar? Can I install the product named something else or something and add the code in the navbar template as well? Let me know! Thanks
wickedstangs
07-19-2009, 08:34 PM
Does this work with VB 3.8.3?
webspider
07-19-2009, 09:27 PM
Works for me.
w00ttastic
08-30-2009, 08:30 PM
Doesn't work for me on 3.8.3. I've tried the given instructions, tried using <center>$banner</center>, tried tweaking the options in the Banner Rotator options, but nothing doing. All I get is nothing where my banner should be.
mpjaicom
09-04-2009, 03:17 PM
This hack works for me, but when i click the banner, it simply goes back to the main page of my forum, not to the URL i specified in the banner...
HELP!
thanks
~DJ
Selena Huynh
12-13-2009, 01:22 PM
It's nice and it will be greater if I can add url to the banner
rwoscott
04-26-2010, 11:18 PM
I really liked this hack, would be nice to see a VB4 version.
I haven't seen anything I like yet in the VB4 mods.
iref2010
02-02-2011, 08:10 AM
Would it work on Version 3.8.5?
Midas3
08-29-2011, 02:30 PM
Does this have any kind of basic stats like clicks/impressions?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.