vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Sliding Banners or Images on Forum Home or Everywhere (https://vborg.vbsupport.ru/showthread.php?t=252643)

XiTCLUB 10-25-2010 10:00 PM

Sliding Banners or Images on Forum Home or Everywhere
 
1 Attachment(s)
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

XiTCLUB 10-26-2010 10:59 AM

If it works Then Please Reply or "Mark as Installed"

synseal 10-26-2010 11:00 AM

Thanks, works a treat!. :up: *Installed.

gokhansancar 10-26-2010 04:18 PM

Thanks it works

synseal 10-26-2010 05:35 PM

Is there a way for it to show just one banner on page load.

When I refresh the page sometimes it shows all four banners one above the other until the page has fully loaded and then it shrinks down to just one, then it starts to rotate.

Thanks.

SeZoNaS 10-26-2010 06:12 PM

Amaaaaaaaaaaizing ,, Download is in progress (d)

XiTCLUB 10-26-2010 09:24 PM

Quote:

Originally Posted by synseal (Post 2114536)
Is there a way for it to show just one banner on page load.

When I refresh the page sometimes it shows all four banners one above the other until the page has fully loaded and then it shrinks down to just one, then it starts to rotate.

Thanks.

You can see it here http://www.techkings.org/forum/

This is not Possible Because we are displaying our contents in an Un-Ordered List and Controlling them with CSS & Jquery when we open our website all the data loads within the form but jquery & slider.js loads some time late as slider.js file controls the loop of banners which loads later

Manoel J?nior 10-26-2010 11:00 PM

LOL

Thanks!!!

Eduardo Leon 10-27-2010 01:41 AM

Quote:

Originally Posted by Manoel J?nior (Post 2114657)
LOL

Thanks!!!

what ?

just say thanks for sharing this . . . !

...

barcena 10-27-2010 11:49 AM

Can this be used to show google ads?


All times are GMT. The time now is 01:54 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.01878 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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