|
uCoz Community Archives Locked How to make only users see this |
How to make only users see this |
Hi guys, I have read the If and else codes, but i have no clue if i can even do that with this code. Here's the problem.
I added the <?if($SEARCH_FORM$)?>$SEARCH_FORM$<?endif?> code to the title of the page, but anyone can search within my site that way. I tired to add the if use logged in code but i don't think i am doing it properly because it keeps giving me an error. It also might be that that code cannot be made into what i'm looking to do with it. What i want to do is, only allow registered members to view the search bar, can some add the if[user_logged_in] code to this so it works for only registered users. <?if($SEARCH_FORM$)?>$SEARCH_FORM$<?endif?> Added (2011-04-04, 1:08 PM) i added but this is another problem, banned members can view this as well, is there a way for me to make only it so banned members cannot see this? since i can't delete banned members i want to be able make it so no banned member can search for anything within the forum |
Code <?if($USER_LOGGED_IN$)?> <?if($GROUP_ID$=255)?> <?else?>$SEARCH_FORM$<?endif?> <?else?> Please, register to use search. <?endif?> now Maryasha, please continue here: To busy building a passive income online ;)
|
| |||
| |||