i want to hide my custom html code from guest in my index sidebar.
Put your HTML inside a div and give it a class name
hide_{$mybb->user['uid']}
<div class="hide_{$mybb->user['uid']}"> YOUR CODE </div>
And put this CSS in
global.css
:
.hide_0 {
display: none;
}
This will hide your HTML from guests only, but not from registered members.
when i use this its display blank page to all
there was missing } thats why but now its showing good
Try once again. There was a missing curly brace which I have corrected in my code.
<div class="hide_{$mybb->user['uid']}"> YOUR CODE </div>