Page 18 of 21 FirstFirst ... 81617181920 ... LastLast
Results 171 to 180 of 209
  1. #171
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Please, I need that checkbox checked by default. Is there a simple way doing this?

  2. #172
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Quote Originally Posted by solo_400 View Post
    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!

  3. #173
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Superb. thank you.

  4. #174
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Quote Originally Posted by lat9 View Post
    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.

  5. #175
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default 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.

  6. #176
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Quote Originally Posted by dbltoe View Post
    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 ... 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.

  7. #177
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Quote Originally Posted by lat9 View Post
    Well ... 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.

  8. #178
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Quote Originally Posted by lat9 View Post
    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

  9. #179
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default 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.
    Name:  zcrm_hashstring_1970.PNG
Views: 144
Size:  3.1 KB

    Please let me know how can I solve this issue.

    Many thanks
    solo

  10. #180
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Is a Permanent Login (Auto-Login) Possible?

    Quote Originally Posted by solo_400 View Post
    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.
    Name:  zcrm_hashstring_1970.PNG
Views: 144
Size:  3.1 KB

    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.

 

 
Page 18 of 21 FirstFirst ... 81617181920 ... LastLast

Similar Threads

  1. Admin auto login for a cron job
    By Gigo in forum Customization from the Admin
    Replies: 20
    Last Post: 9 Aug 2012, 07:39 AM
  2. Is there a way to auto-login to admin?
    By mikejd in forum General Questions
    Replies: 4
    Last Post: 3 Nov 2009, 09:55 AM
  3. Auto-switching DB login to end 1226 Error
    By Camarilladee in forum Basic Configuration
    Replies: 7
    Last Post: 2 Jun 2006, 05:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR