Timed group membership

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Suggested Hosts
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Timed group membership

Post by Lord Phobos »

Hi

I really need a little function in groups: like the topic title says, I need the group leader(s) to be able to add users to a certain group for a defined time... exactly as the ban function can do. From the admin user banning tab, you can set the duration of the ban; banning a user adds that user to the hidden "banned users" group. So I think creating a new function to temporarily add an user to a group must not be so difficult.

I would like to stress out that I'm NOT seeking to do that to create a "premium" group for paying users.

Judging from some google research, I'm not the first and I don't think I would be the last to ask for such a function.

Can you help me out?

Thanks in advance.
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Timed group membership

Post by david63 »

Have you looked at the Auto Groups extension? One of the options is "warnings" and you might be able to utilise that
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

david63 wrote: Sun Oct 09, 2022 8:57 pm Have you looked at the Auto Groups extension? One of the options is "warnings" and you might be able to utilise that
I have that extension, but it doesn't have the function that I'm looking for, I even asked for it in it's contribution area.
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Is that not feasible?
I would also like to automatically put in that group for 30 days users reaching 3 or more warnings.
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

It's just a matter of copying the banning function put instead of putting the user in the "banned users" hidden group, put it in a chosen one for the time specified.
It is really that simple, can somebody plz help me?
User avatar
warmweer
Jr. Extension Validator
Posts: 11662
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Timed group membership

Post by warmweer »

Lord Phobos wrote: Tue Nov 15, 2022 6:25 pm It's just a matter of copying the banning function put instead of putting the user in the "banned users" hidden group, put it in a chosen one for the time specified.
It is really that simple, can somebody plz help me?
It's not that simple.
Automatically adding a user to a group when 3 warnings are reached is easy.
But in order to remove them from the group after 30 days implies that the timestamp of being added to that group has to be saved. That's an extra field somewhere.
However, when a user is banned, that timestamp is saved in the banlist_table.
So It may be possible to extend the AutoGroups extension: see How to Extend Auto Groups
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Too bad I'm unable to do it myself. :(
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

No one can help on that?
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Ok.

I will pay 20 euros to the one who will make such a simple extension for me.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3889
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Timed group membership

Post by Kailey »

Lord Phobos wrote: Tue Nov 29, 2022 5:43 pm I will pay 20 euros to the one who will make such a simple extension for me.
It's not allowed to offer payment in any form for assistance in this forum. If you feel what you want to do is beyond your capability, then please post in the Wanted! forum where you may find someone willing to take on your project.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26834
Joined: Fri Aug 29, 2008 9:49 am

Re: Timed group membership

Post by Mick »

Lord Phobos wrote: Tue Nov 29, 2022 5:43 pmI will pay 20 euros
Is that per hour?
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Mick wrote: Sat Dec 03, 2022 12:55 pm
Lord Phobos wrote: Tue Nov 29, 2022 5:43 pmI will pay 20 euros
Is that per hour?
Is that sarcasm?
I don't think it would take more than an hour for a person who knows what he's doing.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: Timed group membership

Post by Lumpy Burgertushie »

no offense but you seem to be so sure about how easy it is and how quick it could be done but you obviously don't know much about it.

luck,
robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Lord Phobos
Registered User
Posts: 935
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Sincerely, how difficult you think it would be?
HB
Registered User
Posts: 230
Joined: Mon May 16, 2005 9:30 pm

Re: Timed group membership

Post by HB »

Not difficult, but not trivial. To do it right, you'd need a new table, a cron job, and ideally an ACP interface. If it was just a quick hack of the base code with hardcoded values, a skilled programmer could do it in a half day with a minimal level of testing. To make it an extension and test it thoroughly, that's at least 2-3x more work.

By the way, your offer would be equivalent to asking a skilled mechanic if he'd replace your car's leaking head gasket for 20 euros. Sure, it's not difficult, but it takes time and skill. At least in the US, my preferred mechanic wouldn't even agreed to put my car on a lift and inspect it for that pay. :lol: And before anyone asks, no, I absolutely am not interested in coding opportunities.
Dan Kehn

Return to “Extension Requests”