Download & Extend

ability to set a date when all members' membership expires

Project:Membership
Version:5.x-1.0
Component:User interface
Category:feature request
Priority:critical
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

ideal for clubs that have an fiscal year end where all memberships need to be renewed

Comments

#1

Priority:normal» critical

I just found out the club that I am doing this site for does have a date where all memberships expire (end of March which is my deadline). Can I at least make the default date when you go to:

admin/user/membership

Be Mar 31 ... and always be the next year coming?

#2

I dug into the membership.module file and found this section....I assumed this is where the default date shown when you go to admin/user/membership is set:

$form['newmember']['expires'] = array(
'#type' => 'date',
'#title' => t('Expires'),
'#default_value' => array( // XXX: is there any nicer way to set it to "tomorrow"?
'year' => date('Y',strtotime('now') + 60*60*24),
'month' => date('n',strtotime('now') + 60*60*24),
'day' => date('j',strtotime('now') + 60*60*24),
),
);

I thought changing it to:

$form['newmember']['expires'] = array(
'#type' => 'date',
'#title' => t('Expires'),
'#default_value' => array( // XXX: is there any nicer way to set it to "tomorrow"?
'year' => date('Y',strtotime('now') + 60*60*24*365),
'month' => date('n','3'),
'day' => date('j','31'),
),
);

Would set the date new memberships were added to be March 31, a-year-from-now but it didn't seem to affect much...

How can I set it?

#3

Basically I like your idea, but I would not hardcode such a date into the module. Maybe an administration setting would do it in a more flexible way.

#4

Agreed. I did manage to find the setting in the code to do what I wanted to on this, but it would be a great admin setting. GUIs are always good (for me!)

#5

Status:active» closed (won't fix)

First of all, membership.module is discontinued now, for the favor of Role Expire module. Secondly, this specific issue seems to be solvable quite easily with role_expire's Views integration and a scent of VBO, if I understand all of them correctly.

nobody click here