Page 17 of 21 FirstFirst ... 71516171819 ... LastLast
Results 161 to 170 of 209
  1. #161
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

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

    Quote Originally Posted by solo_400 View Post
    Hey guys, I'm so happy seeing work in progress here. lat9 and dave, I'd like to test latest changes. Can I put latest class.remember_me_observer.php ( Version: 1.4.5 ) on my live wensite? I wish all a Happy New Year also.
    Since the gzuncompress/data issue is an annoyance (the log-file generation) as opposed to a problem (i.e. it causes your site to whitescreen), I'd suggest holding off for your live site update until the updated version is released.

  2. #162
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

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

    Thank you lat9, hope a better version will come up soon. Uhh.. I've just discover 10k log files due to gzuncompress/data issue.

  3. #163
    Join Date
    May 2007
    Posts
    124
    Plugin Contributions
    0

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

    Hi Lat9
    An error finally surfaced:

    [26-Dec-2017 18:42:44 America/Denver] Request URI: /xxx/Music/Music_Boxes/Taiwan?zenid=lvpjl451vtv5hqdeojomqe5a37, IP address: 66.249.88.60
    #1 trigger_error() called at [/home2/sub/public_html/xxx/includes/classes/observers/class.remember_me_observer.php:213]
    #2 remember_me_observer->decodeCookie() called at [/home2/sub/public_html/xxx/includes/classes/observers/class.remember_me_observer.php:43]
    #3 remember_me_observer->__construct() called at [/home2/sub/public_html/xxx/includes/autoload_func.php:79]
    #4 require(/home2/sub/public_html/xxx/includes/autoload_func.php) called at [/home2/sub/public_html/xxx/includes/application_top.php:170]
    #5 require(/home2/sub/public_html/xxx/includes/application_top.php) called at [/home2/sub/public_html/xxx/index.php:26]

    [26-Dec-2017 18:42:44 America/Denver] PHP Warning: gzuncompress error in decodeCookie, value = deleted, _SERVER[HTTP_USER_AGENT] = Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Mobile/15B202, _COOKIE = array (
    'zenid' => 'lvpjl451vtv5hqdeojomqe5a37',
    'zcrm_cfb3540972e63488d12b5ebb9cd6d91f' => 'deleted',
    ) in /home2/sub/public_html/xxx/includes/classes/observers/class.remember_me_observer.php on line 213

    This error surfaced when a customer's URL was selected from the User Tracking mod:






    Thank you

  4. #164
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

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

    With version 1.5.4, the IP was recorded in user tracking, but no errors showed up. However, firefox was nice and deleted all my saved cookies, so created new with firefox both PC and android phone... Remember me is working currently with no errors. Will see if the offending IP comes back tomorrow.

    Spent some time reading up on cookies, interesting ideas both sides of the fence. Downloaded some interesting code for testing, will have to compile and play later.
    Dave
    Always forward thinking... Lost my mind!

  5. #165
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

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

    @mikebr, that validates my take on the cause of the issue! @davewest, thanks for the continued testing.

  6. #166
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

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

    I also have user tracking module.

    I installed latest class.remember_me_observer.php on 26 December and no logfiles error today.

    Again thank you lat9 and long life zencart community. Happy New year guys.

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

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

    Quote Originally Posted by solo_400 View Post
    I also have user tracking module.

    I installed latest class.remember_me_observer.php on 26 December and no logfiles error today.

    Again thank you lat9 and long life zencart community. Happy New year guys.
    That's good news, solo_400! Happy New Year to you, too!

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

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

    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.

  9. #169
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    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.
    I've not had the same IP, but some new ones pop up without cursing error logs.. I think you got this one covered.. Thanks.

    On a side note... I like to share what I did for a added layout style. I moved the checkbox in front of the wording and added a expanding info box. There are other type of info boxes but this takes the lest amount of code.

    In the observer class I changed the checkbox script as this:
    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" />') : '';
           return ($this->enabled) ? ( zen_draw_checkbox_field ('permLogin', '1', false, 'id="permLogin"') . '<label class="checkboxLabel" for="permLogin" title="' . TEXT_REMEMBER_ME_ALT . '">' . TEXT_REMEMBER_ME . ' <span style="cursor:pointer;color:blue;font-weight:bold;" id="dialogbox" data-text-swap=" [x]"> [?]</span> </label>') : '';
    
        }
    In the page where the script is used, such as the tpl_login_default.php anywhere near the bottom added the script:
    Code:
    <script type="text/javascript">
    $(document).ready(function () {
    
       $( "#dialogbox" ).click(function() {
         $( ".dialog_group" ).toggle("slow");
    
        var el = $(this);
        if (el.text() == el.data('text-swap')) {
            el.text(el.data('text-original'));
        } else {
            el.data('text-original', el.text());
            el.text(el.data('text-swap'));
        }
        
        });
        
     });
       
    </script>
    Something allot of sites have explaining what the checkbox is for. There are other ways to enhance the hover title/alt tag as will.
    Dave
    Always forward thinking... Lost my mind!

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

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

    Good idea, @davewest, having some indication as to what is being remembered. I'll add that as a future enhancement.

 

 
Page 17 of 21 FirstFirst ... 71516171819 ... 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