SMF 2.1.3 has been released! Take it for a spin! Read more.
Started by Vala, June 28, 2010, 02:55:50 PM
Quote from: Kindred on March 12, 2013, 10:02:08 AMActually Sugar, what he appears to be doing is checking to see who is in what group and then assiging the USERS in that group to the correct permissions.So, he's not modifying anything in the core of SMF's permissions to allow the group to be a gropup moderator.What he is doing is checking (once an hour) to see who is in the group which he has made as a group moderator and then granting each user in that group to group moderator permission (or removing it, if they are no longer in the group)it's a decent way to do it, without mucking with the smf permissions system actually...He's just doing it inefficiently, by using an external script, when he could be using the smf scheduled tasks to do the same thing without any external junk at all.
Quote from: Arantor on March 12, 2013, 10:28:03 AMQuoteit would make this much cleaner in a language that had actual array supportPHP DOES have actual array support. In fact its array support is better than other languages.
Quoteit would make this much cleaner in a language that had actual array support
Quote from: Kindred on March 12, 2013, 11:12:14 AMI was wondering how easy that would be to trigger........ it does seem tpo be the most logical place to trigger it, even more so than a scheduled task.
Quoteand lol Arantor.... yep...
QuoteGroup to be moderated;group to be the moderatorsstore it in the mod settings array
Quote from: Kindred on March 12, 2013, 11:42:29 AMit would be a pretty sunple UI.Group to be moderated;group to be the moderatorsstore it in the mod settings arraydo a foreach when you trigger the check and break apart the string at the semicolonyou could set as many as you want this way and have an array of 20 cross moderating groups. lol