Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Sliding Banners or Images on Forum Home or Everywhere Details »»
Sliding Banners or Images on Forum Home or Everywhere
Version: 1.00, by XiTCLUB XiTCLUB is offline
Developer Last Online: Feb 2020 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.x Rating:
Released: 10-25-2010 Last Update: Never Installs: 36
 
No support by the author.

Hi,

Modification : Sliding banners

Method : Jquery

Example : http://www.xitclub.com/forum.php?styleid=29 ( See Top right Banners on Forum home )


Installation:


1. Download the Attached Files and Upload to Your Forum Root

2. Add The Following Code Where you want to Display Adds ( I use "Advertising>Add New Add>Global>Header" in vb 4.0.7)

Code:
<html>
<head>

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="easySlider1.5.js"></script>
<script type="text/javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function(){    
    $("#slider").easySlider({
        controlsBefore:    '<p id="controls">',
        controlsAfter:    '</p>',
        auto: true, 
        continuous: true
    });    
});
// ]]>
</script>
<style type="text/css">
#slider { width:468px; height:30px; margin:0 auto; padding:0; }
#slider ul,
#slider li { margin:0; padding:0; list-style:none; }
/* 
    define width and height of list item (slide)
    entire slider area will adjust according to the parameters provided here
*/
#slider li { width:468px; height:60px; overflow:hidden; }
body { margin:0; padding:0; width:100%;}


/* slider */
.slider {height:60px;}
.block_header h2 { color:#f3f4f4; font:bold 28px Arial, Helvetica, sans-serif; margin:0; padding:40px 10px 10px 10px; line-height:1.4em;}
.block_header p { color:#f3f4f4; font:normal 12px Arial, Helvetica, sans-serif; margin:0; padding:10px; line-height:1.8em;}



</style>
</head>
<body>
  <div class="block_header">
    <div class="slider">
      <div id="slider">
        <ul>
       
          <li>
            <div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;"> Your Image or Banner Code Goes Here
            </div>
          </li>
          <li>
            <div style="background-color:#000; color:#FFF; width:468px; height:60px;">Your Image or Banner Code Goes Here
            </div>
          </li>
          <li>
            <div style="background-color:#000; color:#FFF; width:468px; height:60px;">Your Image or Banner Code Goes Here
            </div>
          </li>
     <li>
            <div style="background-color:#000; color:#FFF; width:468px; height:60px;">Your Image or Banner Code Goes Here
            </div>
          </li>
        </ul>
      </div>
    </div>
</div>
</body>
</html>
Notice : Replace Red text With Your Image or Banner Code
Edit The CSS According to Your Needs

Download Now

File Type: zip js.zip (20.9 KB, 273 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-27-2010, 11:54 AM
XiTCLUB XiTCLUB is offline
 
Join Date: Jan 2010
Location: Lahore, Pakistan
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by barcena View Post
Can this be used to show google ads?
Yes it will be used to show any adds just put your add code within the <div> </div> tgs
Reply With Quote
  #13  
Old 10-27-2010, 02:29 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod....

Before I install it, is there a place I control where it appears?

The top right on my web site doesn't work for me ...

Thank you ...

Regards,
Badger
Reply With Quote
  #14  
Old 10-27-2010, 07:34 PM
XiTCLUB XiTCLUB is offline
 
Join Date: Jan 2010
Location: Lahore, Pakistan
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its appear where you advertisements appear
Reply With Quote
  #15  
Old 10-28-2010, 03:14 PM
Ahmad110 Ahmad110 is offline
 
Join Date: Sep 2010
Location: North of iran
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for sharing . installed
i want to see big picture how can i change it ?
Reply With Quote
  #16  
Old 10-28-2010, 04:21 PM
starman? starman? is offline
 
Join Date: Apr 2008
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great stuff, excellent work and thanks. I've put it in a sideblock with my event ads and it looks pretty good.
Reply With Quote
  #17  
Old 10-28-2010, 05:58 PM
XiTCLUB XiTCLUB is offline
 
Join Date: Jan 2010
Location: Lahore, Pakistan
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ahmad110 View Post
thanks for sharing . installed
i want to see big picture how can i change it ?
Just Change height and width in code
1st one is in
Code:
/* slider */
.slider {height:60px;}
change height in above

Then change in every <div>
Code:
<div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;">
Change height and width of each <div> according to ur needs
Reply With Quote
  #18  
Old 10-28-2010, 10:46 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Beautiful .. Thanks for sharing
Reply With Quote
  #19  
Old 11-01-2010, 07:27 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be a more desirable and downloaded hack if you can create a plugin with admin options to add and remove sponsors rather then editing the header file.
Reply With Quote
  #20  
Old 11-01-2010, 08:26 PM
XiTCLUB XiTCLUB is offline
 
Join Date: Jan 2010
Location: Lahore, Pakistan
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
This would be a more desirable and downloaded hack if you can create a plugin with admin options to add and remove sponsors rather then editing the header file.
Basically i am a web Designer not a Developer i dnt know to make product sory for that
Reply With Quote
  #21  
Old 11-14-2010, 05:58 AM
danyol1706 danyol1706 is offline
 
Join Date: Jun 2010
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Noob question here, but how do I get the banner to load where you had yours (xitclub.com) -tucked right under the login info? I used the "Advertising>Add New Add>Global>Header 2" slot in vBulletin 4.08 (see circled area in left image).

As seen in the image to right, my banner is stuck in the middle.

Great mod and thank you.
Attached Images
File Type: png Header 2.png (31.4 KB, 0 views)
File Type: png Ad Alignment.png (6.8 KB, 0 views)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05493 seconds
  • Memory Usage 2,321KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete