Login & Logout Changelog

  • 2.6.0 New options to hide Welcome message and Profile link. Can now be added to theme using shortcode. Tested with WP 3.5
  • 2.3.0 Updated Translation code to include My Profile.
  • 2.2.4 Tested with WordPress 3.0. Added Catalan translation, thanks to Aleix Buch.
  • 2.2.3 Updated German translation, thanks to Ulli Fetzer.
  • 2.2.2 Updated POT file to finish fixing translation problems.
  • 2.2.1 Fixed translation code affecting three lines of text, thanks to Ulli Fetzer.
  • 2.2.0 Center Widget bug fixed, much code tidied up and documentation improved. Support for themes bug fixed.
  • 2.1.7 Minor bug fix.
  • 2.1.6 Support for themes improved, thanks to Sean Bolster.
  • 2.1.5 German translation updated – thanks again Ulli Fetzer. Widget options updated.
  • 2.1.4 Added German translation, many thanks to Ulli Fetzer.
  • 2.1.3 Fixed bug with “Title” option not saving.
  • 2.1.2 Fixed bug in “Before HTML” and “After HTML” so quote marks are handled correctly.
  • 2.1.1 Updated Spanish translation, thanks to César Aracena.
  • 2.1.0 New options to add custom HTML before and after the plugin’s HTML. Also added Italian translation – thanks to Giovanni Di Santo (GREY FOX).
  • 2.0.0 Major update to enable the plugin to be used with themes that don’t support widgets. Now the plugin can be added to any part of your site. For example, to add to your footer, simply add “rh_hype_lilo()” to your theme’s footer.php. Other parts of the plugin code have also been tidied up.
  • 1.5.5 Added Polish translation. Thanks to Daniel of Home Help.
  • 1.5.4 Added Spanish (es_ES), Dutch (nl_NL) and Norwegian (nb_NO) translations. Many thanks to Frank Hondsmerk of http://www.erfjord.net for the Dutch and Norwegian translations.
  • 1.5.3 Minor bug fix. Added Persian (fa_IR) translation, many thanks to Bluebird2 at http://sourena.net/fa/
  • 1.5.2 Clean up PHP code
  • 1.5 Added fr_FR French translation – many thanks to Sebastien Violet for the translation and for cleaning up my PHP.
  • 1.4 Added support for multiple languages. The POT file is now included in the downloadable ZIP. Please leave a response below if you plan to produce an translation, mainly so other people don’t start working on the same thing.
  • 1.3.1 Bug fix: Logout link now always returns to the correct post/page – e.g. the post/page that the user was on before clicking “Log out”.
  • 1.3 Added configuration option to widget to remove the “Options” label for logged-in users. This makes the widget look nicer in narrow sidebars.
    Bug fix: Site width/Center Alignment now work properly.
  • 1.2 Changed format of links URLs introduced in 1.1. Enter a full URI for external websites (e.g. http://wordpress.org/extend/plugins/) or “/permalink” for a link to a post/page on your own WordPress site.
  • 1.1 Added new admin page to Tools menu.
    – enables admin to enter a list of text labels and URLs. If the list is not empty, the links are displayed by the widget.
    Added configuration options to widget:
    – Checkbox to toggle display of user’s email address.
    – Checkbox to toggle “Center Alignment” of widget text within the sidebar.
    – Textbox to enter the width of the sidebar. Only used if “Center Alignment” option enabled.
  • 1.0 Stable release. Can be used only with Widgetized theme. No configurable options.

55 Responses

  1. Vic says:

    Hello and thanks for creating this plugin which I just installed on a test site. Your last entry in your changelog states that there are new options to hide Welcome message and Profile link. I don’t want to hide the welcome message but I do want to hide the profile link. On a long shot, I tried ticking the hide register link but of course that didn’t work. I don’t have a custom profile page yet so I would like to hide the “My Profile” link. How can I hide it? Other than that, your plugin seems to be exactly what I was looking for and works extremely well! Thanks again!!!

    • admin says:

      Hi, Thanks for getting in touch. Version 2.6.0 has the hide profile option, and I have that version working on two of my sites without any problems. However, two people reported problems with 2.6.0 so I rolled back the changes in 2.6.1 until I figure out the cause of the problem. If you try 2.6.0 please let me know if it works properly, and if not, I’m happy to work with you to fix the problem. -Thanks, Roggie

  2. leo says:

    Hi!
    I just installed the new version of the login/logout plugin and now I can not login in my site: the page appear empty!!!
    With the previous versión the site works fine.
    Can you help me?
    Thanks

  3. After upgrading to the new Version 2.6.0, I get the following error when I try to update a post:

    Warning: Cannot modify header information – headers already sent by (output started at /home/www/stillwaterclub.org/wordpress/wp-content/plugins/login-and-out/hypervisor-login-logout.php:375) in /home/www/stillwaterclub.org/wordpress/wp-includes/pluggable.php on line 876

  4. AJ says:

    Great plugin! I tried to include it in my header but I can’t seem to style it to go where I want it. I can get around but adding code to php and creating style is a challenge for me. Any possible solutions? Thanks

  5. SMW says:

    I tried putting it in the navigation file of my theme and keep getting an error. Below is the code. (I don’t really know this stuff, just winging it)

    using_permalinks()) {
    $page_format = ”;
    $page_start = add_query_arg(‘paged’, ‘%#%’);
    } else {
    $page_format = (substr($page_start, -1 ,1) == ‘/’ ? ” : ‘/’) .
    user_trailingslashit(‘page/%#%/’, ‘paged’);;
    $page_start .= ‘%_%’;
    }

    echo ”. “\n”;
    echo paginate_links( array(
    ‘base’ => $page_start,
    ‘format’ => $page_format,
    ‘total’ => $wp_query->max_num_pages,
    ‘mid_size’ => 2,
    ‘current’ => ($paged ? $paged : 1),
    ‘type’ => ‘list’,
    ‘prev_text’ => ‘<‘,
    ‘next_text’ => ‘>‘,
    ));
    echo “rh_hype_lilo();
    echo “\n\n”;
    ?>

  6. SMW says:

    I’d like to put the login link on top of the navigation in my theme (candy theme) do I just copy the : “rh_hype_lilo(); and put it anywhere?

    • admin says:

      Yes, that’s all you need to do. Don’t forget the “start PHP” and “end PHP” tags if you are inserting it directly into an HTML portion of your theme rather than a PHP portion.

  7. Luke says:

    How can I modify the plugin so it sends users to another domain when they logout?

    I’m using it on a subdomain which I use for my clients. When they press logout I want to send them back to the main website. Any help would be greatly appreciated.

    • admin says:

      Change the href destination for $link_string_logout to point to your home page. e.g search the PHP file for ‘. wp_logout_url($_SERVER[‘REQUEST_URI’]) .’ and replace it (including the single quotes and full stops – with your homepage URL.

      • Luke says:

        Admin,

        I found ‘. wp_logout_url($_SERVER[‘REQUEST_URI’]) .’ and replaced it with http://mydomain.com. Just tested it and it does take the user back to the main website. But it doesn’t log them out of the subdomain. Have I done something wrong?

        • admin says:

          Yes, replace ‘. wp_logout_url( ) . ‘ , and change $_SERVER[‘REQUEST_URI’] to http://yourdomain.com

          • Brad says:

            I’m having the same problem – the redirect works, but the user isn’t logged out. I’ve changed $link_string_logout to ='<a href="http://mydomain.com&quot; …etc. in three different places, so I'm pretty sure I didn't miss anything. Your reply to Luke doesn't make sense to me – isn't that exactly what you said to do the first time?

          • admin says:

            I think your logout fails because you replaced the function call wp_logout_url() with a literal URL. The function call returns the supplied URL, if there is one, and nonce value — which is probably needed to successfully logout.
            Having said that, I replaced $_SERVER[‘REQUEST_URI’] with “http://www.google.com” and I get logged out but not redirected. I’ll chew on it for a while and get back to you….

          • Brad says:

            Problem solved. I replaced JUST $_SERVER[‘REQUEST_URI’] with the redirect url and both logout and redirect now work. Thanks for your help!

  8. sally says:

    Hi Roger,

    I’m running wordpress 3.01 with your log in lug in on a mac.

    I’ve installed your plug-in, but alas I’ve tested in Firefox, chrome and safari and NONE of your tickboxes actually tick for:

    Display email address:
    Hide option label:
    Hide Register link:

    So I’m unable to exclude the elements I need in the admin area!!!

    Are you able to help?

    Thanks,

    Sally 🙂

    • admin says:

      The checkboxes work for all browsers except Chrome (Chrome seems to have a bug, lots of websites have this issue with Chrome). It sounds like you have another active WordPress plugin that is clashing with LoginLogout. Try disabling other plugins and the checkboxes should work when you find the conflicting plug. If you let me know which plug is causing the problem I can look into this in more detail.

  9. Art Lane says:

    Roger,

    Snappy little plug-in. Thank you!

    I have 2 additional needs, which require your assistance, since I’m not a .php expert.

    1. How do I best force your Profile selection to redirect to an existing custom profile popup, which is different from the WP profile page? Where should I change the code?

    2. How can I force a user, after logging in, to my site’s “Welcome” page, instead of dropping them back to the last page displayed on a previous session?

    Thanks for your time & expertise!

  10. Carlos says:

    Hello: thanks for your plugin. I wanted to point out that I think there’s one problem with translations – the text for “my profile” seems to be hardcoded in the php plugin, it is not retrieved from that po-mo-whatever file. I’ve been activating and deactivating the plugin, deleting and reinstalling to no avail, until I figured it out, looked the php file and found it there.
    The plugin is very useful since, as you say in the description, the “META” widget takes up too much space and the links it contains are not removable nor editable. Thanks!

  11. Luca says:

    Thanks for the clever plugin.
    I’m trying to modify/improve the italian translation with PoEdit. As soon as I upload the new hypervisor-login-logout-it_IT.mo file, the login-out box disappear from the web page. If I upload only the new hypervisor-login-logout-it_IT.po file it keeps showing the old translation. What am I doing wrong? Usually my translations works….

    • admin says:

      Try deativating the plugin, replace the old MO file in the plugins/login-and-out/ directory with your new one, then reactivate the plugin.

      If you send me the new translation I’ll add it to the ZIP.

      Cheers, Roger.

      • Luca says:

        Thanks for replying. I have done it but no success. It is funny, I have removed the .po file, deactivated and re-activated and it keeps showing the italian translation

        • admin says:

          Maybe best to send me your translation and I’ll issue an update, once you install the update the new translation should work properly. I mailed you earlier so you should have my address. -Roger.

  12. Aleix Buch says:

    Hi,

    I can offer you a catalan translation. How send it to you?

    Aleix Buch

  13. Mathe says:

    I need theoption to switch the widget on only on certain WP-pages, not on others. Is that possible?

  14. haku says:

    I am currently working with the plugin. However, I would only like my visitors to login and not to register. Is it possible to remove the “register” – and how do I do it?
    Thanks in advance for assistance!

  15. matti says:

    Where do i send a Swedish translation (PO file)?

  16. ulli says:

    This was really quick.
    Thank you for the update 2.1.4.
    Ulli

  17. ulli says:

    Hi,
    thanks for the login & logout widget which works fine!

    I can provide you with a German translation for the latest release (2.1.3). Please tell me, where to upload.

    Regards
    Ulli

  18. caracena says:

    Hi,

    I’ve been playing with many addons trying to find the best (simple) ones for an upcoming proyect and so far this is the best to handle my redirections.

    I have one question regarding the “skinning” of the widget: All my theme’s widgets go inside separate boxes. To achieve that, I need to wrap all your widget with tags and the widget itself in another tag… where should I place them? I intend not to use the php stuff.

    Thanks in advance!

    • admin says:

      I have just released version 2.1.0 which includes new options to insert your own HTML before and after the widget. I hope this will allow you to skin the widget in any way you like. -Roger

      • caracena says:

        Thanks Roger, it worked perfectly.

        I sent you an email with updated Spanish translation.

        Thanks again!

      • upekshapriya says:

        Unfortunately when I enter a div or another tag with a class or id (which are of course using quotes) I get a returned entry with backslashes before the quote marks like this “. It means it won’t match any classes or ids in my css 🙁

  19. morgan says:

    Hello!

    I just installed the login/logout widget and I love it. Nice job!

    However, the links that I added do not have a checkbox showing. I have two test links that I would like to deactivate or delete. The info says to uncheck the box but the checkboxes do not appear in Chrome. When I tried in FireFox they were there!

    Thanks!

    Morgan

  20. Frangelus says:

    Hi Roger,

    I have made a Norwegian translation and can also provide a Dutch translation. I have made the .mo and .po files and copied them to the languages subfolder of the plugin for testing them on my own installation, but it just keeps showing the plugin in English. I would expect that the plugin takes the language settings from the WordPress installation and then looks for a corresponding translation in the languages subfolder. Maybe I’m using the wrong filename. Is there a way I can test them myself or should I just send the files to you? Just let me know where to send them, you have my emailaddress!

    Regards,

    Frank

  21. sebos says:

    Hi,
    I can provide you a french translation.
    The question is how ??

    • admin says:

      Hi Seb,

      Many thanks for the offer. The main steps are:

      1) edit the POT file (it’s in login-and-out.zip) and add the appropriate translation for each line in the POT file. Save the result as a PO file.
      2) From a PO file a MO file is built. This is a binary file which contains all the original strings and their translations in a format suitable for fast translation extraction. The conversion is done using the msgfmt tool. If you can’t do this don’t worry, I’ll take care of it.
      3) I add the MO file to the ZIP

      If you use Windows there are some tools to make editing the POT file easier – some info here: http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/

      Please let me know if you need any more information or help.

      Thanks again, Roger

Leave a Response to admin

You must be logged in to post a response.