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)
Ideas Centre
User avatar
warmweer
Jr. Extension Validator
Posts: 11450
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Timed group membership

Post by warmweer »

HB wrote: Sat Dec 03, 2022 6:31 pm ...
To do it right, you'd need a new table, a cron job, and ideally an ACP interface.
I don't think a new table is necessary.
An extra field in the user_group table should suffice (e.g. membership_start)
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.
HB
Registered User
Posts: 217
Joined: Mon May 16, 2005 9:30 pm

Re: Timed group membership

Post by HB »

Agreed, assuming you don't mind modifying phpBB-defined tables (and introducing a field only applicable to a subset of the entries). A generalized implementation could include a group_time_limit (or similar) in the groups table, too. To the OP: This exchange indirectly demonstrates how quickly an "easy-peasy" change becomes more work than an hour of coding. ;)
Dan Kehn
Lord Phobos
Registered User
Posts: 932
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

I see.
I'm just mantaining a fairly small amount of residual hope in this. :D
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26702
Joined: Fri Aug 29, 2008 9:49 am

Re: Timed group membership

Post by Mick »

Lord Phobos wrote: Sat Dec 03, 2022 3:54 pmIs that sarcasm?
No I'm asking, have you any idea how much freelancers earn? It's certainly a lot more than €20/hour.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧
User avatar
warmweer
Jr. Extension Validator
Posts: 11450
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Timed group membership

Post by warmweer »

HB wrote: Sun Dec 04, 2022 4:56 pm Agreed, assuming you don't mind modifying phpBB-defined tables (and introducing a field only applicable to a subset of the entries).
...
I agree with the "modifying phpBB-defined tables or not" predicament: (in most cases) it's probably best avoided .
But in this case the field wouldn't be applicable to a subset of the table only:
  • the combination user-group_id user_id is unique
  • user pending is usually something temporary
and strictly speaking every existing user-group_id user_id has a membership start time (but it isn't stored).

But it's questions like these that are part of the development process and although many (if not most) extension writers offer their extensions for free, an offer of 20$ isn't exactly what I'ld call an incentive.
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: 932
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

I'm sorry for the ridicolous offer indeed. :(
I'm now thinking that a slight modification of Ban Hammer would maybe suffice, as I'm suggesting here.

NOTE: I'm not saying again this is easy, to be clear. Sorry again.
HB
Registered User
Posts: 217
Joined: Mon May 16, 2005 9:30 pm

Re: Timed group membership

Post by HB »

warmweer wrote: Mon Dec 05, 2022 8:05 pm I agree with the "modifying phpBB-defined tables or not" predicament: (in most cases) it's probably best avoided...
There's tradeoffs, for sure. It doesn't bother me, but extension writers may prefer to make more effort to avoid modifying base tables, if only to make install/enable/disable easier. On the other hand, a separate table means you take ownership of its lifecycle -- cleaning up when a user is deleted, for example. It also would require more extension-related SQL modifications to join the new table with existing ones.

That said, I'm not a purist when it comes to code changes that are mine alone. Someday, I'd like to clean up my useful-but-hack(ish) modifications and contribute them to phpBB, if only in recognition of the countless developers who've [indirectly] helped me with their contributions.
Lord Phobos wrote: Mon Dec 05, 2022 11:46 pmI'm now thinking that a slight modification of Ban Hammer would maybe suffice, as I'm suggesting here.
I sometimes joke that I haven't written an original line of code in years because I rarely start from scratch. Anyway, that extension hasn't been updated since 2018, and it has enough unnecessary baggage that I don't think it's a great candidate for code reuse.
Dan Kehn
Lord Phobos
Registered User
Posts: 932
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Sorry for the bumping.
Can someone help me?
CyHowYouGoing
Registered User
Posts: 1
Joined: Mon May 22, 2023 9:35 pm

Re: Timed group membership

Post by CyHowYouGoing »

That Posts will help you or any takers to realize, what you want:

viewtopic.php?t=1227605
https://sitesplat.com/phpBB3/viewtopic.php?t=1574
Last edited by CyHowYouGoing on Mon May 22, 2023 9:45 pm, edited 1 time in total.
Lord Phobos
Registered User
Posts: 932
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Too bad I don't have the skills to achieve such a result.
I just need the simple option to put an user in a group specifiyng the duration: 2 days, 1 week, one month etc.
So I don't have to track down the users and put calendars to remember the duration.
User avatar
GanstaZ
Registered User
Posts: 1196
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Timed group membership

Post by GanstaZ »

Well.. time based membership is on my radar of interest as I need it for my advanced groups system.
But there are 3 issues:
  1. I don't see any point to invest time/effort to create anything for 3.3.x branch.
  2. I'm not sure that I want to add that manual option into profile area.
  3. I'm not sure if I want to create standalone functionality as a separate extension.
In other words.. time will tell.

Maybe someone who needs exactly the same functionality as You want, will create it that way.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
Lord Phobos
Registered User
Posts: 932
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

So, still no one can help me creating this function?
Lord Phobos
Registered User
Posts: 932
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Sorry, up.

Still no way to do this?
deninho32
Registered User
Posts: 227
Joined: Tue May 21, 2019 8:57 am

Re: Timed group membership

Post by deninho32 »

Would be a great function.
phpBB 3.3.7 | PHP Version 7.4.33 | Milk Theme
Lord Phobos
Registered User
Posts: 932
Joined: Tue May 18, 2004 11:41 pm

Re: Timed group membership

Post by Lord Phobos »

Tell me a price if someone would do it paid.
It just need to copy the "banned users" time option.

Return to “Extension Requests”