Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Hide a Field

Quote Reply
Hide a Field
Hello,

I would like to hide some of the fields that display on the form created when the client presses the "Post New" button or the "Reply" link, depending on the group that they are in. It looks like the same template is used "include_post_display.html" for the button or the link.

Has anyone tried to do something like this?

Thank you,

John
Quote Reply
Re: [jbzipperian] Hide a Field In reply to
Hello,

I have figured out a method for hiding fields based on the permissions that the user has. In short, if a user is a modirator or an administrator certain fields are displayed for data entry when creating a posting. All other registered users are able to reply to postings without seeing the other fields. I used the following statement to support this feature.

<%if user_forum_permission >=5%>

code for fields placed here

<%endif%>
Quote Reply
Re: [jbzipperian] Hide a Field In reply to
That should be <%if user_forum_permission >= 6%> - 5 is Post/Reply/Read access, while 6 is moderator/administrator access.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Hide a Field In reply to
Hi Jason,

Thank you.

John