Main Menu

Final group script

Started by Gandalf, February 13, 2009, 11:19:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gandalf

ok, pretty much finished on the final script that handles the group maintenance.

This one will check a users assigned groups and will see if they have a corresponding award. If they don't then they are removed from that group.

This was a particularly challenging script as there are multiple awards that belong to a single group and if someone has one award removed from them but still has another reward that belongs to that group then they need to stay assigned.

Due to the complexity of the script it does take between 5-10 seconds to run (as opposed to almost instant for the other) so I think this one should be set on a daily basis. Any issues with that?

If someone gets removed from an award and needs to be removed from a group urgently then they can be removed manually easily enough but I think for general use a 24h schedule will be fine as most people will be getting awards and not have them removed.

The only exception is the subscriptions if they don't renew, so worst case on that is they'll have an extra day with subscriber perks.

Anyway, I'm going to upload the script to the live forum and get ready to run it.

There will be people removed from groups as some have been assigned manually but don't have awards so be aware of that if people start crying!

Once the two scripts are in place then it will all run from the award system and people shouldn't be assigned or removed to groups manually unless the corresponding award is assigned or removed too. Otherwise the script will just reverse your changes.

Finally, the users will ALWAYS have the new groups as membergroups. Very important this one if you do assign manually.
*G*

Cake: Four large eggs. One cup semi-sweet chocolate chips. Three/four cups butter or margarine. One and two third cups granulated sugar. Two cups all purpose flour. Fish shaped ethyl benzene. Twelve medium geosynthetic membranes. Three tablespoons rhubarb, on fire.

Anonymous


Gandalf

*G*

Cake: Four large eggs. One cup semi-sweet chocolate chips. Three/four cups butter or margarine. One and two third cups granulated sugar. Two cups all purpose flour. Fish shaped ethyl benzene. Twelve medium geosynthetic membranes. Three tablespoons rhubarb, on fire.

Penfold

#3
Great one Neil.

Now - final one :norty:

Following on from the pm conversation with TL, how do we turn off the option where it says 'edited by' when an admin amends their own, or someone else's posts?

Thanks

Testing of edit - Gandy
PEN testing of Gandy's edited edit

smilodon

Cheers for that. If we do get issues running this script I could re-do the user groups so that each badge links to a single group. I could create a LAN, folding and forum group and we could assign each to their own badge? More groups than I'd like as the three badges have identical permissions, but's ut's doable if you want?
smilodon
Whatever's gone wrong it's not my fault.

Gandalf

Quote from: Penfold;263643Great one Neil.

Now - final one :norty:

Following on from the pm conversation with TL, how do we turn off the option where it says 'edited by' when an admin amends their own, or someone else's posts?

Thanks

Testing of edit - Gandy

yup, should be good now. Admins are exempt, even if they belong to a group that demands the message be shown.
*G*

Cake: Four large eggs. One cup semi-sweet chocolate chips. Three/four cups butter or margarine. One and two third cups granulated sugar. Two cups all purpose flour. Fish shaped ethyl benzene. Twelve medium geosynthetic membranes. Three tablespoons rhubarb, on fire.

Penfold

#6
coolio thanks Gandy.

edit: It's fine on own posts but it does show on others if I correct theirs? For example I've just taken the name out from here:

http://www.deadmen.co.uk/forum/showpost.php?p=263649&postcount=46

Thanks - don't worry if it's a hassle. You've gone above and beyond this week as it is.