![]() |
Logo Rotation
1 Attachment(s)
I had a client who wanted a rotating logo system that allowed them to have fancy transitions and have each logo link to a specific page. No mod I could find allowed this so, utilizing a jQuery app called Nivo Slider, I've managed to create exactly what they wanted.
Please note that I've only attempted this with a fixed theme. I do not know how it will behave with a fluid one. If someone wants to test it and let me know I'll make changes to the instructions as necessary. DEMO Special Thanks: Lynne for helping me get the plug-in portion working properly. Requirement: Nivo Slider 1. Download and decompress the Nivo Slider archive. 2. Upload the files jquery.nivo.slider.pack.js and nivo-slider.css to your forums 'clientscript' folder. 3. Go to vB AdminCP --> Plugins & Products --> Plugin Manager --> Add New Plugin. Enter the following information: Product: vBulletin Hook Location: template_register_var Title: Nivo Logo Rotator Execution Order: 5 Plugin PHP Code: Code:
$templater = vB_Template::create('banner_rotator'); 5. Go to vB AdminCP --> Styles & Templates --> Style Manager --> Add New Template. Enter the following information: Title: banner_rotator Template: Code:
<link rel="stylesheet" href="clientscript/nivo-slider.css" type="text/css" media="screen" /> 6. Save. 7. Edit the additional.css template. Add at the bottom: Code:
/* CSS for Banner_Rotator */ 9. Edit the header template. Find: 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> Code:
<div style="width:XXXpx; height:XXXpx;"> 10. Save. You should now have a rotating logo in the header of your vB forum. Version History 0.7: Added code at step 9 to help lock the header dimensions for your logo. 0.6: Fixed IE bug 0.5: Initial Release |
Reserved.
|
Very, very cool!
Is it just random? For example, if I have a logo I want to show up first can I do that? |
Quote:
|
perfect.
|
Couldn't this be made in to a widget to use on the homepage for news? I'd love something like this to work with the VB CMS system as a widget
|
Quote:
|
1 Attachment(s)
This is really cool man. I tried it on a fluid style, and you will have to use it a bit differently though.
There is a problem however. If you look at my screenshot, you will see that the banner seems to be broken into parts and thrown to the bottom of the actual banner. The js affects also seems to only happen on these broken parts, and not on the banner on top at all. Attachment 123029 I am on 4.0.8, I hope you can help me to fix this. Thanks. |
I tried upgrading to 4.0.8 but it completely destroyed my custom theme, so I reverted to 4.0.7. Until the designer of my theme releases an update (which they said won't happen until 4.1) I'm not going to be much help. If you want to give me limited access to your site I'd be happy to look at the templates and see if I can spot were the trouble is. PM me if interested.
|
vb 4.08 problem
|
very nice but i have the same problem here
https://vborg.vbsupport.ru/showpost....77&postcount=8 secondly plz thunderclap82 how can you make the login box like that?? |
Quote:
Quote:
|
Quote:
but how you run it in 4.0.8? |
how the logo to be placed in the middle (align center) ?
|
Quote:
Code:
<center>{vb:raw banner_rotator}</center> |
Quote:
|
Quote:
Code:
<div id="slider"> Code:
<div id="slider"><center> |
Quote:
|
Quote:
|
is there any chance to update this mod to 4.0.8?
|
Yes make it to 4.0.8 please....
|
The developer of my theme has said he plans to have the theme updated for 4.0.8 within a week. Once I can upgrade successfully I will look into the 4.0.8 issue.
|
Quote:
|
I upgraded to vB 4.0.8 today and the rotating logo still works fine. I'm not sure why others are having the problem mentioned above.
|
Quote:
Code:
<div id="slider"> note : in the demo site the login area gone away behind the banner |
Quote:
Quote:
|
thanks for your update
plz i have 2 questions 1- how to center the logo 2- how to show the login area above the logo bec now the login behind logo thanks again |
Quote:
Code:
<div style="width:XXXpx; height:XXXpx; align:center;"> |
Quote:
now the logo go to left and not in the center !!! how to fix that? |
Try changing "align:center;" to "align-text:center;". I'm not sure if that will work but give it a try. Otherwise, try using <center></center> around the <div></div>.
|
i try all of above methods without benefit
is there any chance to center it from css code? |
Quote:
|
Quote:
i appreciate your help thanks |
Quote:
|
Quote:
hi i dont understand , my logo width 874 so you mean to decrease it or what? bec i made every center code without benefit see by your self plz http://www.baghdad4ever.net/vb thanks |
First, your style is fluid and not fixed. So it probably is centered until you start widening the browser. I don' think there is a way to keep the logo centered with a fluid style. Sorry I can't be of more help.
|
Quote:
thanks for your help how to make the style fixed instead fluid? |
Quote:
Add Code:
.doc_header { In my instance: Sadly I'm looking into this mod, and would like to use it for rotating banners, however I use a background image as my banner in my css and my logo is just a transparent image to maintain the homepage link. Code:
#header { |
I have this installed correctly, however I'm running into two big issues:
1. The previous image is not disappearing until the 3rd image appears, so I always have two images on top. I am using .png for my images and they have a semi-transparency. (My additional.css file is as you stated to have it in the first post, the code you provided is the only code in my additional.css file) 2. I am unable to use the links at the top of my website that are suppose to be on top of the image (Notifications, My Profile, Settings etc.) I am using vBulletin v4.1.1 |
I just noticed that this post is not supported anymore.
Will have to just uninstall and look for another option. |
All times are GMT. The time now is 05:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|