Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #32  
Old 11-28-2010, 09:52 AM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by xXxpert View Post
Good work but my one is not marquee tag think before where you posting dont bump your post by spreading link in other's threads where it has no meanings
just trying to help other out, think about the community an not just your mod
Reply With Quote
  #33  
Old 11-28-2010, 09:32 PM
XiTCLUB XiTCLUB is offline
 
Join Date: Jan 2010
Location: Lahore, Pakistan
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by betts02 View Post
just trying to help other out, think about the community an not just your mod
hmm ok, Thanks for suggestion
Reply With Quote
  #34  
Old 12-13-2010, 06:41 PM
MatiasCandy MatiasCandy is offline
 
Join Date: May 2008
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks great as soon as I get to advertising I will look at this more
Reply With Quote
  #35  
Old 03-17-2011, 02:52 AM
jskoh jskoh is offline
 
Join Date: Dec 2008
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, mine is not showing good. i upload the two js file to the forums root. and add two image but it shown up the image without silde. i place it under the nav bar. any body help?
Reply With Quote
  #36  
Old 03-17-2011, 10:02 AM
XiTCLUB XiTCLUB is offline
 
Join Date: Jan 2010
Location: Lahore, Pakistan
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jskoh View Post
hi, mine is not showing good. i upload the two js file to the forums root. and add two image but it shown up the image without silde. i place it under the nav bar. any body help?
did you replace this red text (Your Image or Banner Code Goes Here)
with your image source?

like <img src="XXX" /> ?
Reply With Quote
  #37  
Old 03-17-2011, 11:41 AM
jskoh jskoh is offline
 
Join Date: Dec 2008
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep.. i put two image there. it shown two image. one top and one below. it just didnt slide. any advice? i upload the folder "js" to my domain root.
Reply With Quote
  #38  
Old 03-17-2011, 11:53 AM
jskoh jskoh is offline
 
Join Date: Dec 2008
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okok... i got it work now.. thank.. installed
Reply With Quote
  #39  
Old 03-17-2011, 12:01 PM
jskoh jskoh is offline
 
Join Date: Dec 2008
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it look funny after the fourth image and it slide backward. any way to change from scrolling back than jump to image1
Reply With Quote
  #40  
Old 12-23-2011, 05:55 AM
Loren34695 Loren34695 is offline
 
Join Date: Dec 2011
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I wanted. Not a "mod" really, just some code that can be put into the ad block to rotate images. Thanks!

In answer to the question above about fixing the "rewind" after the last image, that's all built into the easySlider JQuery code. The good news is that if you upgrade from version 1.5 to 1.7, it fixes that problem. Instead of "rewinding", it just smoothly scrolls to the first image after the last image.

For the less-code-savvy, it's pretty easy to make that change. Just download version 1.7, place it in the folder where you put version 1.5, and then change the reference to the filename in your code block from "1.5" to "1.7". That's it!
Reply With Quote
  #41  
Old 12-23-2011, 06:00 AM
Loren34695 Loren34695 is offline
 
Join Date: Dec 2011
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, BTW, you can eliminate a lot of the code in this example. The fact that it has styling in place for the body tag could override your theme style (it did mine), so I got rid of it and the rest of the general HTML page stuff.

Here's the less-cluttered code that I used:
Code:
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="easySlider1.7.js"></script>
<script type="text/javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function(){    
    $("#slider").easySlider({
        controlsShow:  false,
        controlsBefore:    '<p id="controls">',
        controlsAfter:    '</p>',
        auto: true, 
        continuous: true,
        pause: 10000
    });    
});
// ]]>
</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; }


/* slider */
.slider {height:60px;}
</style>

    <div class="slider">
      <div id="slider">
        <ul>
       
          <li>
            <div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;">
Ad #1 Here
            </div>
          </li>
          <li>
            <div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;">
Ad #2 Here
            </div>
          </li>
          <li>
            <div style="background-color:#000; color:#FFF; width:468px; height:60px; padding:0px; margin:0px;">
Ad #3 Here
            </div>
          </li>
        </ul>
      </div>
    </div>
Reply With Quote
Reply


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:15 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.06334 seconds
  • Memory Usage 2,340KB
  • 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
  • (2)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
  • (1)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