We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Hide sidebar from guests
Topic Started: Jul 1 2011, 09:28 AM (553 Views)
Annika
Member
[ * ]
Board Address: http://s4.zetaboards.com/dansbandsgalaxen/index/
Board Software: ZetaBoards
Description: How do I hide one sidebar from guests?

I got a dubble sidebar (two sidebars)... how do i hide one of them from the guests?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I just see one sidebar as a guest. What browser (and version) are you using?
Offline Profile Goto Top
 
Reid
Member Avatar
È una trappola!

I too see but one sidebar.
Offline Profile Goto Top
 
Annika
Member
[ * ]
I change that... there is just one sidebar for the moment... that sidebar i want just members to se...
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Add id="sidebar" to the TD for the sidebar; the one with the min-width, then use this:

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
if ($("#top_info small a:contains('[Log In]')").length > 0) {
$("#sidebar").remove();
}
</script>
Offline Profile Goto Top
 
Annika
Member
[ * ]
Sorry my lack of knowlige.... TD???
I figure it out... thank.

How will i with the code if i want another sidebar.. do i just copy the same code but change the id??
Edited by Annika, Jul 4 2011, 04:39 AM.
Offline Profile Goto Top
 
Quozzo
Member Avatar
By the blood of Sanguinius!
[ *  *  *  *  * ]
Code:
 
<script type="text/javascript">
if ($("#top_info small a:contains('[Log In]')").length > 0) {
$("#sidebar").remove();
$("#foo").remove();
}
</script>
like that
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic