vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Rotate Logo (https://vborg.vbsupport.ru/showthread.php?t=252183)

thunderclap82 10-17-2010 01:19 AM

Rotate Logo
 
I'm trying to incorporate a jQuery image rotator into the header of my forum so the logo rotates after a set amount of time. I think I'm on the right track but am bumping into a wall.

I created a new template called banner_rotatorwith the jQuery code:

Code:

<link rel="stylesheet" href="clientscript/nivo-slider.css" type="text/css" media="screen" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="clientscript/jquery.nivo.slider.pack.js" type="text/javascript"></script>

<div id="slider">
        <img width="500px" src="images/titleimage/BLUESKIES.jpg" alt="" />
        <img width="500px" src="images/titleimage/CBB_WD12.jpg" alt="" />
        <img width="500px" src="images/titleimage/DK_RMBJ.jpg" alt="" />
        <img width="500px" src="images/titleimage/Q2_T4.jpg" alt="" />
</div>

<vb:literal>
<script type="text/javascript">
$(window).load(function() {
        $('#slider').nivoSlider({
                effect:'random',
                slices:15,
                animSpeed:500,
                pauseTime:3000,
                startSlide:0,
                directionNav:false,
                directionNavHide:true,
                controlNav:false,
                controlNavThumbs:false,
                controlNavThumbsFromRel:false,
                controlNavThumbsSearch: '.jpg',
                controlNavThumbsReplace: '_thumb.jpg',
                keyboardNav:true,
                pauseOnHover:true,
                manualAdvance:false,
                captionOpacity:0.8,
                beforeChange: function(){},
                afterChange: function(){},
                slideshowEnd: function(){}
        });
});
</script>
</vb:literal>

I then go to the header template and change the line:

Code:

<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
with:

Code:

<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:raw banner_rotator}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
Needless to say this doesn't work. Is what I'm trying to do feasible and I'm coding something wrong, or is this not doable?

Blooded 10-17-2010 02:03 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=238004" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=238004</a>

is not what you want but i think it will help you a lot

thunderclap82 10-17-2010 02:14 AM

Quote:

Originally Posted by Blooded (Post 2110894)
https://vborg.vbsupport.ru/showthread.php?t=238004

is not what you want but i think it will help you a lot

Thanks, but you're right. Not what I'm looking for.

thunderclap82 10-19-2010 09:38 PM

*bump*

No one has any idea?


All times are GMT. The time now is 12:03 AM.

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.02158 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete