PDA

View Full Version : Hide from usergroup


trollshrooms
08-09-2016, 10:59 PM
So i started using this pold template edit, and tbh with a little bit of customizing it, its wonderful.

but it is viewable to guests and i know there is some tag i can wrap it in to hide it from guests.

any help?

Trying to hide this from Guests
<style type="text/css">
#SideBar{
list-style:none;
position:fixed;
z-index:5;
right:0;
top:130px;
width:16px;
padding:8px 5px;
border:1px solid #000000;
border-right:none;
-moz-border-radius:10px 0 0 10px;
-webkit-border-radius:10px 0 0 10px;
border-radius:10px 0 0 10px;
-moz-box-shadow:0 0 7px rgba(0,0,0,.6);
-webkit-box-shadow:0 0 7px rgba(0,0,0,.6);
box-shadow:0 0 7px rgba(0,0,0,.6);
background: rgb(99,132,176);
background:-moz-linear-gradient(top,rgba(255, 255, 255),rgb(0,0,0));
background:-webkit-gradient(linear,left top,left bottom,from(rgba(255, 255, 255)),to(rgb(0,0,0)));
background:linear-gradient(top,rgba(255, 255, 255),rgb(0,0,0))
}
#SideBar li{
margin:9px 0 0 0;
line-height:0
}
#SideBar li:first-child{
margin-top:0
}
#SideBar a{
display:block;
width:17px;
}
#SideBar a span{
position:absolute;
top:-999em
}
</style>
<ul id="SideBar">

<li><a href="usercp.php" title="UserCP"><img src="images/usercp_icons/cog.png"></a></li>
<li><a href="profile.php?do=editavatar" title="Edit Avatar"><img src="images/usercp_icons/picture_edit.png"></a></li>

</ul>

MarkFL
08-09-2016, 11:14 PM
You could wrap the unordered list element as follows:

<vb:if condition="$show['member']">
<ul id="SideBar">
<li>
<a href="usercp.php" title="UserCP"><img src="images/usercp_icons/cog.png"></a>
</li>
<li>
<a href="profile.php?do=editavatar" title="Edit Avatar"><img src="images/usercp_icons/picture_edit.png"></a>
</li>
</ul>
</vb:if>

trollshrooms
08-10-2016, 07:30 PM
how do i add that to what i already have, is that a completely different sidebar?

MarkFL
08-10-2016, 09:05 PM
Just replace what you have beneath the style element with what I posted...it is the same as what you posted, except it's wrapped within a template conditional, and indented for added readability. :)