rejetto forum

How can I restrict a particular user to see [up] and no one else?

Guest · 3 · 1030

0 Members and 1 Guest are viewing this topic.

woodfold

  • Guest
I've searched for quite a while but haven't found how to do this. I need an account to see the "[up]" code but no one else, as it's confusing for users to see it when they are restricted to a specific folder for up/downloading..

I can't seem to check successfully for "Admin" for instance, all the code I try either doesn't show for anyone or it shows for everyone.

Can anyone provide an example, please?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13440
    • View Profile
with HFS 2.2 you can solve this only client-side (that means, by using javascript).
Instead of just writing TEXT
you can write
<script>
if ("%user" == "Frank") document.write("TEXT");
</script>


With hfs 2.3 there is a server-side solution.
{.if|{.%user% = Frank.}|TEXT.}


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13440
    • View Profile
i expect quotes to not be needed in this specific case, but they don't hurt for sure