0 Members and 1 Guest are viewing this topic.

*

Pharg

  • *****
  • 2,923
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
osDateEvo v1.2 Free Membership, Payment and session changes.
« on: February 09, 2017, 01:45:58 AM »
Hi Members,

I have made some changes to the stats since last login area where it shows the member their membership.

I have changed the Free to show Life instead of days and Expires on doesn't show in Free Membership anymore only shows in Gold or Silver Memberships

I also had to add to new text in the lang_main.php on line 813 ad this:
Code: [Select]
$lang['life'] = 'Life';
$lang['never'] = 'Never';
$lang['requested_page'] = 'Requested Page is Viewable Only to Site Members';

Code: [Select]
Then on line 810 in lang_main.php change this:
$lang['activedays_array'] = array('1'=>'1','7'=>'7','30'=>'30','90'=>'90','180'=>'180','365'=>'365','10950'=>'10950' );
To this:
Code: [Select]
$lang['activedays_array'] = array('1'=>'1','7'=>'7','30'=>'30','90'=>'90','180'=>'180','365'=>'365','10950'=>'Life' );
Find in the lang_main.php about line 523:
Code: [Select]
$lang['no_payment'] = 'No payment required (Free)';
Change to:
Code: [Select]
$lang['no_payment'] = '(Free Membership) No payment required';
Load the new language changes to the database by using the Manage Languages in the Admin area and all is well.

Then upload this user_home_stat_lines_dtls.tpl into the template /default and /default-3-column

Plus I added that sessioninc.php changes that tidy's up the not a member viewing at members.

Changes have also been made to to the payment.tpl as before Free members would see they could No payment required (Free), this is no longer shown to Free members as they now have Life membership, it will only show to Gold and Silver Members if they want to change to Free.

Please download the payment.tpl and then upload it into the template /default/ and the /default-3-column/

I have also included all the Language files so you can download and upload them Only if you have custom changes
to your lang files yourself.

If you have already made changes yourself, the Edit the lang_main.php of your selection and make the necessary changes.

There has also been changes made to the gift_ajax.php to work in both MySql and MySqli

That's it for now, enjoy

Regards, Phill
« Last Edit: February 10, 2017, 04:41:59 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

chris99

  • *
  • 16
  • osDate Version: osDate Evo v1.0
Re: osDateEvo v1.2 Free Membership, Payment and session changes.
« Reply #1 on: February 09, 2017, 04:19:29 AM »
Can you help me, I try following what you post and i don't no what i miss or did wrong, When i try loading english language, it showing errow message  HTTP 500 error
That’s odd... the website can’t display this page
The site may be under maintenance or could have a programming error.

*

Pharg

  • *****
  • 2,923
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Re: osDateEvo v1.2 Free Membership, Payment and session changes.
« Reply #2 on: February 09, 2017, 06:57:32 AM »
Hi Chris99,

I can see you didn't do as it's says above as none of the attachments have been downloaded.

Send me your FTP details in a PM please?
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35