The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Swapping Banner Logo based on signed in or not.
Is there a quick and painless way to change which banner logo is displayed for guests versus anyone signed in?
I have both a 400 pixel and an 800 pixel banner for my site. I want the 400 pixel banner to show for guests and the 800 pixel one to be displayed when members are signed in. I appreciate any help anyone can offer. |
#2
|
||||
|
||||
Doesn't get much easier than using a simple conditional
HTML Code:
<vb:if condition="$show['member']"> LOGGED IN LOGO CODE HERE <vb:else /> LOGGED OUT LOGO CODE HERE </vb:if> |
#3
|
||||
|
||||
Looks good, but would this code have to be in every template for the main parts of the site, like Blogs, Forums, CMS?
|
#4
|
||||
|
||||
I don't think so. It depends on how custom your skin is. You should only have to edit the header template since that is where the code for the logo is (in the default header)
|
#5
|
||||
|
||||
Thank you very much. I will try it and see how it works! =)
|
#6
|
||||
|
||||
First of all I wanted to reply and thank you very much! This works perfectly. A shorter version of my site banner is shown when not logged in, and the full length banner is shown when logged in. This prevents the login boxes from being obscured by the logo image. So that was a huge help!
Now for the fun part...I am wondering...if you can change the conditional to detect a certain usergroup or individual by username? That could allow for some fun modifications. |
#7
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=231525" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=231525</a>
|
Благодарность от: | ||
Savage Circuits |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|