FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Privileges for paid-up members
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Privileges for paid-up members [message #159168] Sun, 10 May 2009 17:04 Go to next message
srchild is currently offline  srchild   United Kingdom
Messages: 88
Registered: December 2003
Location: UK
Karma: 1
Member
I run a fudforum where the users either are or are not paid-up members of the organisation running the forum. We'd like to recognise the paid-up status of the paid-up members by giving them extra privileges. I though allocating the paid-up members to a 'paidup' group would be the way forward, and it is to some extent, but I wonder whether/how this can be taken further.

For example, with groups I could give search permission to paidups but not to others.

But a lot of settings, for example enabling rights to use avatars, email notifications, and similar, seem not to apply to groups but are global, so I can't give 'favours' of these kinds to paidups without also giving them to others (or am I overlooking something?)

Thanks





Simon Child
Re: Privileges for paid-up members [message #159169 is a reply to message #159168] Sun, 10 May 2009 18:40 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
It's fairly easy to extend the group management system to also apply to avatars, etc. However, someone would need to write a patch before it can be implemented.

Best regards.

Frank
Re: Privileges for paid-up members [message #159170 is a reply to message #159169] Sun, 10 May 2009 18:50 Go to previous messageGo to next message
srchild is currently offline  srchild   United Kingdom
Messages: 88
Registered: December 2003
Location: UK
Karma: 1
Member
naudefj wrote on Sun, 10 May 2009 19:40
It's fairly easy to extend the group management system to also apply to avatars, etc. However, someone would need to write a patch before it can be implemented.


Can you give me an idea where I should be looking and I'll see how it looks?

Thanks


Simon Child
Re: Privileges for paid-up members [message #159175 is a reply to message #159170] Sun, 10 May 2009 20:55 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Grep the src directory for p_SEARCH and similarly implement a p_AVATAR. Two simple edits and theme rebuild should do it.
Re: Privileges for paid-up members [message #159178 is a reply to message #159175] Sun, 10 May 2009 22:38 Go to previous message
srchild is currently offline  srchild   United Kingdom
Messages: 88
Registered: December 2003
Location: UK
Karma: 1
Member
naudefj wrote on Sun, 10 May 2009 21:55
Grep the src directory for p_SEARCH and similarly implement a p_AVATAR. Two simple edits and theme rebuild should do it.


Four edits later... groupmgr.php.t, groups.inc.t, groupmgr.tmpl and msg Smile

That puts an entry in groups manager for avatar, but of course (?) enabling it has no effect if avatars disabled in admin control panel, and if I enable avatars in admin control panel then they appear to be enabled for everyone regardless of whether my new option is enabled or disabled.

Is it simply a matter of setting the correct opt value in group_perm_array in groups.inc.t (I tried 4194304), or (more likely) am I going to have to hack some code somewhere else - since what I seem to be trying to do here is to override a global setting usually set in admin control panel?

Thanks


Simon Child
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Troubleshooting admin MySQL connection problem
Next Topic: Need to remove the remotecontrol
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 22:26:13 GMT 2024

Total time taken to generate the page: 0.02446 seconds