WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-UserLogin] Possible glitch (18 posts)

  1. raygene
    Member
    Posted 6 years ago #

    Hi,

    I already hard-coded such a function (not a plugin) on some of my blogs and wanted to try your solution, for some strange reason, I see 01234567 at the very top of the widget. Tried it with 3 different themes and I still get that sequence of numbers.

    Cheers,
    Gene

    http://wordpress.org/extend/plugins/wp-userlogin/

  2. raygene
    Member
    Posted 6 years ago #

    Looks like the author doesn't visit this forum much...

    Gene

  3. Jerry Stephens
    Member
    Posted 6 years ago #

    Sorry for not getting back to this sooner. I took care of the problem, but didn't see this post (I've been out of the house for the past few days). Anyway, the problem has been fixed. As soon as WordPress catches up with the repositories v2.1 should be available. Thanks for letting me know about this.

  4. raygene
    Member
    Posted 6 years ago #

    Hi,

    Anyway, the problem has been fixed.

    Thanks, I downloaded and installed it and it works fine.

    Mind you, I had something similar (but crude) working by inserting the following code in a Daiko's Text Box:

    <?php
      global $user_ID, $user_identity;
      get_currentuserinfo();
      if (!$user_ID):
    ?>
    	      <form name="loginform" id="autoriz" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
    	        <h2>Member Login</h2>
    	        <label for="login">Login:</label>
    	        <input type="text" name="log" value="" id="login" /><br />
    	        <label for="password">Password:</label>
    	        <input type="password" name="pwd" value="" id="password" />
    	        <input type="hidden" name="rememberme" value="forever" />
    	        <input type="submit" name="submit" value="Login" id="enter" />
    	        <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
    	        <p><?php wp_register('', ''); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword">Lost your password?</a></p>
    	      </form>
    <?php else: ?>
    	      <div id="manage">
    	        <h2>Member Functions</h2>
    	        <p>Hi, <?php echo $user_identity; ?>!</p>
    	        <ul>
                <li><a href="<?php bloginfo('url'); ?>/wp-admin/post-new.php">Write Article</a></li>
    <?php if (current_user_can('level_10')){ ?>
    			<li><a href="<?php bloginfo('url'); ?>/wp-admin/">Dashboard</a></li>
                <li><a href="<?php bloginfo('url'); ?>/wp-admin/edit.php">Manage Posts</a></li>
                <li><a href="<?php bloginfo('url'); ?>/wp-admin/edit-comments.php">Manage Comments</a></li>
    <?php }?>
    <?php if (!current_user_can('level_10')){ ?>
                <li><a href="<?php bloginfo('url'); ?>/wp-admin/profile.php">My Profile</a></li>
    <?php }?>
    	          <li><a href="<?php echo get_settings('siteurl') . '/wp-login.php?action=logout&amp;redirect_to=' . $_SERVER['REQUEST_URI']; ?>">Logout</a></li>
    	        </ul>
    	      </div>
    <?php endif; ?>

    I like the option to go directly to "moderate comments", if this were possible.

    Cheers,
    Gene

  5. raygene
    Member
    Posted 6 years ago #

    Oops, think I found a bug, when clicking on "register", I get a 404 page on account that it doesn't take into account the sub-folder WP is installed in (http://yoursite.com/wp-login.php?action=register instead of http://yoursite.com/blogfolder/wp-login.php?action=register).

    Cheers,
    Gene

  6. Jerry Stephens
    Member
    Posted 6 years ago #

    I know where the problem is, I think. I'll have a new revision up by morning (currently 19:35 California Time). Thanks for keeping me on my toes. :)

  7. raygene
    Member
    Posted 6 years ago #

    I know where the problem is, I think. I'll have a new revision up by morning. Thanks for keeping me on my toes. :)

    LOL, love testing plugins, glad you fixed it.

    Cheers,
    Gene

  8. webrob
    Member
    Posted 6 years ago #

    I think this would be a great plug-in but I am getting an error.

    Please see in the upper right of my site:

    http://dev.piermarketing.com/sd/

    Any ideas?

  9. Jerry Stephens
    Member
    Posted 6 years ago #

    I'm not seeing any errors on your site. Care to explain the error to me? What version of the plugin are you using?

  10. mhains
    Member
    Posted 5 years ago #

    Leftville, I get:

    Warning: implode() [function.implode]: Invalid arguments passed in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-userlogin\userlogin_widget.php on line 124

    any solution?
    Michael

  11. Jerry Stephens
    Member
    Posted 5 years ago #

    I've been gone for a while due to a huge move. Let me take a look at the code and see what might be causing the problem. Then I'll get back to you. Thanks for being so patient.

  12. da.gray
    Member
    Posted 5 years ago #

    Hi leftville,

    It seems that I got the same problem :

    Warning: implode() [function.implode]: Bad arguments. in C:\xyzxyz\wp-content\plugins\wp-userlogin\userlogin_widget.php on line 124

    I'm on version 2.6.2 and the error appears only when the user is logged in. When he is off, fields and links are displayed correctly.

    Thanks for bringing your support, your plugin is very useful.

    da.gray

  13. Jerry Stephens
    Member
    Posted 5 years ago #

    I can't seem to reproduce the errors you guys have given me on my local systems (Windows, Mac, or Linux). Perhaps reinstalling the plugin might help, there's the slim chance that you may have gotten hold of the mid-fix revision that accidentally got uploaded as 2.2 some time ago. Other than that, I'll definitely keep looking into this issue.

  14. da.gray
    Member
    Posted 5 years ago #

    Hi Leftville and thanks for reply.

    I don't know why, but I'm not able to reproduce the error too. All is running with no error when the user is logged.
    Apparently, it seems that concerns only the first log. When surfing on other pages and coming back to home, the error seems not exist anymore...

    I tried to create a new member, logged in with new codes, and there wasn't any error.

  15. Jerry Stephens
    Member
    Posted 5 years ago #

    Finally figured it out. If the Login and Control Panel title fields are left blank you will get the resulting implode error. I'll work on fixing this in later releases.

  16. Hoib
    Member
    Posted 5 years ago #

    Hi. I've got the same error too but on a diff line:
    implode() [function.implode]: Invalid arguments passed in C:\SVdP\wordpress\wp-content\plugins\wp-userlogin\userlogin_widget.php on line 129

    On a localhost version of WP 2.7. Setting User Login from the selection of Widgets, gives me this error either with data in the User Form Title and Control Panel Title fields or if those fields are left blank. Wish I knew what those labels meant and where I should expect to see them.

    Nonetheless, this nice plugin is busted for me until repaired or a workaround appears.

  17. Hoib
    Member
    Posted 5 years ago #

    Oh COOL!

    I went in and filled the fields back in from their experimented blank state. It works perfectly! Thanks to leftville. And - I now can see what the labels do and mean. Nice!

  18. Jerry Stephens
    Member
    Posted 5 years ago #

    2.3.1 has just been uploaded, and it fixes the implode problem. Please update as soon as the repo catches up with WP.org.

    It was a small oversight on my part. I wasn't writing the data to the database until the settings page had been displayed. That's corrected and everything should be working smoothly now.

    Thanks for your patience, guys, you rock!

Topic Closed

This topic has been closed to new replies.

About this Topic