vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Banner Rotator (Definitive Mod) **UPDATED** (https://vborg.vbsupport.ru/showthread.php?t=133954)

andrefedalto 12-13-2006 10:00 PM

Banner Rotator (Definitive Mod) **UPDATED**
 
New version of https://vborg.vbsupport.ru/showthread.php?t=103477 with minor bugs fixed and added some additions people requested.

So, what does this hack do?
- This mod allows you to add lots of forum banners.
- The banners will be automatically randomized everytime you reload your forums.

How can i work with it?
- It's all controlable through AdminCP.
- NOT NEEDED ftp access to upload banners.
- You CAN upload banners (jpg, gif & png) through AdminCP.
- NEW: You can upload flash (SWF) banners!
- You can set a description for individual banners.
- NEW: You can set size (width & height) for each banner individually
- You can edit the description easily and individually.
- You can delete the banners through AdminCP (this function delete the banner from the ftp)
- You can activate/deactivate you banners.
- Deactivated banners remains in the ftp, but will not be shown on forum home.

Future additions: Add URL for each banner individually, so when users click on it they will be redirected.
How can i install? (Time to install: 1 minute if you are fast enough )
- Upload all the files contained in the "upload" folder inside the zip to your forum root directory.
- Install product-brotator.
- Go to your AdminCP > Style Manager > YOUR SKIN > Edit HEADER template and find:
Code:

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

$banner
- Refresh your admincp index and Banner Rotator menu should appear!

Please, I updated and added new features of this mod in this afternoon, so probably it still have some bugs. So, if you find one please report here.

Thanks!

NOTE: Maybe some of you will have to create folder called "banners" inside folder "images" manually, and then chmod it 0777.

SUPPORT GIVEN ONLY FOR WHO CLICKED "INSTALL"

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

Quote:

Originally Posted by Barakat (Post 1138158)
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 :)

Quote:

Originally Posted by radarhunter (Post 1138366)
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/attachmen...chmentid=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

PHP Code:

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

any help ?
thank you

PHP Code:

<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,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=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 



All times are GMT. The time now is 07:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01491 seconds
  • Memory Usage 1,915KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete