Re: Is a Permanent Login (Auto-Login) Possible?
Please, I need that checkbox checked by default. Is there a simple way doing this?
Re: Is a Permanent Login (Auto-Login) Possible?
Quote:
Originally Posted by
solo_400
Please, I need that checkbox checked by default. Is there a simple way doing this?
Quick and dirty: Edit /includes/classes/observers/class.remember_me_observer.php. Find
Code:
public function create_checkbox()
{
return ($this->enabled) ? ('<label class="checkboxLabel" for="permLogin" title="' . TEXT_REMEMBER_ME_ALT . '">' . TEXT_REMEMBER_ME . '</label>' . zen_draw_checkbox_field ('permLogin', '1', false, 'id="permLogin"') . '<br class="clearBoth" />') : '';
}
and change to
Code:
public function create_checkbox()
{
return ($this->enabled) ? ('<label class="checkboxLabel" for="permLogin" title="' . TEXT_REMEMBER_ME_ALT . '">' . TEXT_REMEMBER_ME . '</label>' . zen_draw_checkbox_field ('permLogin', '1', true, 'id="permLogin"') . '<br class="clearBoth" />') : '';
}
I'll update the plugin's GitHub repository with a change-request to make a configuration setting to make it easier for you to set that default!
Re: Is a Permanent Login (Auto-Login) Possible?
Re: Is a Permanent Login (Auto-Login) Possible?
Quote:
Originally Posted by
lat9
I've just submitted v1.4.5 of "Remember Me" to the Zen Cart plugins; it will be available
here for download once reviewed.
This release contains changes associated with the following GitHub issues:
#10: Correct gzuncompress log-generation (cookies have been deleted).
#11: Disable processing when COWOA/guest checkout is active.
Thanks to @solo_400, @mikebr and @davewest for their help in identifying the problem (and its source) and testing the corrections.
v1.4.5 is now available for download.
Re: Is a Permanent Login (Auto-Login) Possible?
Getting
Code:
[01-Jan-2018 06:19:52 UTC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /home/planzen/public_html/includes/classes/observers/class.remember_me_observer.php on line 26
with planet Zen Commerce. Can PM access info if you've set it aside.
Re: Is a Permanent Login (Auto-Login) Possible?
Quote:
Originally Posted by
dbltoe
Getting
Code:
[01-Jan-2018 06:19:52 UTC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /home/planzen/public_html/includes/classes/observers/class.remember_me_observer.php on line 26
with planet Zen Commerce. Can PM access info if you've set it aside.
Well :censored: ... that's what I get making those "simple" last minute changes. The correction is to change line 26 from
Code:
$this->enabled = (defined('PERMANENT_LOGIN') && PERMANENT_LOGIN == 'true') && !isset($_SESSION['COWOA'] && !isset($_SESSION['is_guest_checkout']));
to
Code:
$this->enabled = ((defined('PERMANENT_LOGIN') && PERMANENT_LOGIN == 'true') && !isset($_SESSION['COWOA']) && !isset($_SESSION['is_guest_checkout']));
I'll get that change booked for an update.
Re: Is a Permanent Login (Auto-Login) Possible?
Quote:
Originally Posted by
lat9
Well :censored: ... that's what I get making those "simple" last minute changes. The correction is to change line 26 from
Code:
$this->enabled = (defined('PERMANENT_LOGIN') && PERMANENT_LOGIN == 'true') && !isset($_SESSION['COWOA'] && !isset($_SESSION['is_guest_checkout']));
to
Code:
$this->enabled = ((defined('PERMANENT_LOGIN') && PERMANENT_LOGIN == 'true') && !isset($_SESSION['COWOA']) && !isset($_SESSION['is_guest_checkout']));
I'll get that change booked for an update.
The change is booked and v1.4.6 has been submitted to the plugins' section for review.
Re: Is a Permanent Login (Auto-Login) Possible?
Quote:
Originally Posted by
lat9
The change is booked and v1.4.6 has been submitted to the plugins' section for review.
v1.4.6 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=332
1 Attachment(s)
Re: Is a Permanent Login (Auto-Login) Possible?
Dear friends, today I have observed that when I use facebook login ( oneall service ), zcrm_hashstring is set to expire on 1970. This prevent module working as expected.
Please see an attached picture.
Attachment 18311
Please let me know how can I solve this issue.
Many thanks
solo
Re: Is a Permanent Login (Auto-Login) Possible?
Quote:
Originally Posted by
solo_400
Dear friends, today I have observed that when I use facebook login ( oneall service ), zcrm_hashstring is set to expire on 1970. This prevent module working as expected.
Please see an attached picture.
Attachment 18311
Please let me know how can I solve this issue.
Many thanks
solo
Where might I find a download of that facebook login plugin? Please note that it might be difficult for me to debug because I refuse to have a FaceBook account.