|
Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews. |
Advertisement | |
|
|
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Permissions on custom fields
Forgive me if I'm missing something obvious ...
I'd love to apply permissions to custom fields. I'm using GARS to improve a product support forum, where I want to collect things like version info and test case URL's on support requests. Some of the information I'd like to collect needs to be visible only to the thread starter and 'staff'. Any ideas? The simplest way I see is to hack on mods/display/custom_fields.php a little, and just globally hide or show the entire custom fields table accordingly. Not quite ideal (doesn't give me fine grain control on individual fields), but would work. But I'd love to see custom fields extended on a per-field basis, to allow 'private' fields. I'd see this working as a global setting for 'staff usergroup ids', and a 'private' checkbox on the custom field definition. Only the thread starter and whatever groups are specified as 'staff' would see 'private' fields. -- hugh |
#2
|
||||
|
||||
Untested but another idea would be to go to the ACP -> GARS -> Modules -> click the module set with custom fields -> click the Custom Fields link -> set a special template in the 'custom field template' box and use template conditionals in that special template so values are only displayed to certain usergroups, perhaps with the following:
Code:
<if condition="is_member_of($bbuserinfo, 5, 6, 7)"> </if>
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks. While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams |
#3
|
||||
|
||||
Yeah, that'd probably be the better way to go.
Thanks, -- hugh |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom fields | attroll | Geek Article and Review System | 1 | 06-24-2008 04:56 PM |
Custom Fields | Damir | Geek Article and Review System | 27 | 10-13-2006 04:38 PM |
cant see custom fields | wildo69 | Geek Article and Review System | 14 | 09-05-2006 07:00 AM |
Custom Fields | utw-Mephisto | Geek Article and Review System | 3 | 07-14-2006 06:59 AM |
Upload Custom Submission Avatars and custom fields question. | Praetorian | Geek Article and Review System | 1 | 06-14-2006 01:50 PM |