osDate Forum - osDate Dating Script

osDate => General osDate Help => Topic started by: fiatlux on June 28, 2018, 09:41:27 PM

Title: Change User Expiration Date 2.5.5
Post by: fiatlux on June 28, 2018, 09:41:27 PM
How can I change a users expiration date manually?  Is there a database table that I can change or a place to change the expiration date in the admin panel?

Thanks,
Jason
Title: Re: Change User Expiration Date 2.5.5
Post by: Pharg on June 29, 2018, 12:24:47 AM
Hi fiatlux,

We no longer support osDate v2.2.5, but to change the days, it is done the same in all the versions.

To change the day, you have to change the Membership days, Months etc in the admin area.

To add more days, you need to edit the language> select a language in this case I am picking English, the edit the lang_main.php
Find this line:
Code: [Select]
$lang['activedays_array'] = array('1'=>'1','7'=>'7','30'=>'30','90'=>'90','180'=>'180','365'=>'365','999'=>'999' );

Change to:
Code: [Select]
$lang['activedays_array'] = array('1'=>'1','7'=>'7','30'=>'30','90'=>'90','180'=>'180','365'=>'365','999'=>'999','10950'=>'Life' );
Save the changes.

Once you have done this, you must then go the admin, Manage Languages, Select your language in this case English and click reload, this will now add the changes to the database.

Now you can go to the Manage Memberships and make the changes to the Memberships by doing below.

All New members will get the changes when they join, so nothing to do here.

For Members already registered, this wont change the expiring date until you manually click the Memberships, Gold,Silver, Free on the Members.

To make the changes on the Existing Members in the admin under Member Profiles
Select all then click the button Change to Gold or Silver or Free
You will see the date will change.

If they are expired still, just select all and now click Activate.

Take your time doing this, as each time click Change to or Activate it sends a email, you
don't want to get in trouble sending to many emails in one go, best to do 10 at a time or you get marked as spam/spammer

Now they have full access again.

That's it, hope all goes well for you and I made this easy to follow.