Page 18 of 20 FirstFirst ... 81617181920 LastLast
Results 171 to 180 of 191
  1. #171
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    915
    Plugin Contributions
    12

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

  2. #172
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    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.

  3. #173
    Join Date
    Aug 2009
    Posts
    355
    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.

  4. #174
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    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!

  5. #175
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    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.

  6. #176
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    915
    Plugin Contributions
    12

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

  7. #177
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    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.

  8. #178
    Join Date
    Aug 2009
    Posts
    355
    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?

  9. #179
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,399
    Plugin Contributions
    72

    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!

  10. #180
    Join Date
    Aug 2009
    Posts
    355
    Plugin Contributions
    0

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

    Superb. thank you.

 

 
Page 18 of 20 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