The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Hide c-box from guests
Hi everyone.
We're using a c-box for our chatbox which we've been using for a while and I've transplanted it over into my footer template, which is great. However, is there a code that I can use to hide it from the guest group? This is what I use to hide it from guests on my previous forum.... Code:
<span id="hidden_content" style="display: none;"> c-box code goes in here </span> <script type="text/javascript"> <!-- if(pb_username != 'Guest') document.getElementById('hidden_content').style.display = ''; //--> </script> So if anyone can help, it's much appreciated! Thanks! |
#2
|
||||
|
||||
HTML Code:
<if condition="$show['member']"> stuff to only show logged in members </if> |
#3
|
||||
|
||||
Thank you Lynne, you are a complete star as usual. :up:
|
#4
|
||||
|
||||
what about outside in the forum directory?
|
#5
|
||||
|
||||
Hi everyone!
I'm now looking to do the opposite, and hide a c-box from everyone except admin and mods. Code:
<if condition="$show['administrator,moderator']"> </if> Thanks! |
#6
|
||||
|
||||
Code:
<if condition="is_member_of($bbuserinfo, 5, 6)">HTML HERE</if> |
#7
|
||||
|
||||
Thank you Dismounted, you're a star.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|