FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Privileges for paid-up members
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159168&th=118421#msg_159168
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
]]>srchild2009-05-10T17:04:24-00:00Re: Privileges for paid-up members
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159169&th=118421#msg_159169
Best regards.
Frank
]]>naudefj2009-05-10T18:40:27-00:00Re: Privileges for paid-up members
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159170&th=118421#msg_159170
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
]]>srchild2009-05-10T18:50:33-00:00Re: Privileges for paid-up members
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159175&th=118421#msg_159175
naudefj2009-05-10T20:55:25-00:00Re: Privileges for paid-up members
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=159178&th=118421#msg_159178
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
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?