WordPress.org

Ready to get started?Download WordPress

Forums

WPMS Sidebar Login Widget
links not working (11 posts)

  1. jeffryevans
    Member
    Posted 2 years ago #

    The links to the user's blog, to write a post, and to edit their profile do not work.

  2. Joshua Parker
    Member
    Plugin Author

    Posted 2 years ago #

    What is your setup or what error messages do you get? Do you have a subdomain install or a subdirectory install? What version of WordPress are you using? Does this happen with more than one user?

  3. jeffryevans
    Member
    Posted 2 years ago #

    It's a subdirectory install of 3.2.1. I do not get any error messages, the links generated are not correct. Instead of http://www.yourdomain.com/wp-admin, I get http://wp-admin/, and similar for the other links.

  4. Joshua Parker
    Member
    Plugin Author

    Posted 2 years ago #

    It usually appears like http://wp-admin when a user doesn't have a role on the main site and does not have a blog. It should work with subdomain and subdirectory install, but I will double check the code to make sure. In the meantime, can you go to your Users tab on the main site and see if the user(s) is(are) listed there with a role?

  5. jeffryevans
    Member
    Posted 2 years ago #

    yes, all of the users have a role. Even the superadmin's links do not show up correctly.

  6. jeffryevans
    Member
    Posted 2 years ago #

    I made the following code changes to correct the links:

    <?php if(is_super_admin()) { ?>
    <a href="<?php echo bloginfo('url'); ?>/wp-admin/network/" title="<?php _e('Network Admin'); ?>"><strong><?php _e('Network Admin'); ?></a></strong>
    <?php } ?>
    <br />
     <a href="<?php echo bloginfo('url'); ?>/wp-admin/" title="<?php _e('Dashboard'); ?>"><strong><?php _e('Your dashboard'); ?></a></strong>
    <br />
     <a href="<?php echo bloginfo('url'); ?>/wp-admin/post-new.php" title="<?php _e('Posting Area'); ?>"><?php _e('Write a post'); ?></a>
    <br />
     <a href="<?php echo bloginfo('url'); ?>/wp-admin/profile.php" title="<?php _e('Edit your profile'); ?>"><?php _e('Edit your profile'); ?></a>
    <br /><br />
  7. Joshua Parker
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, that will work since the first part of the domain does not change. I will add a vhost check for the next version. Does your code make use of the correct path: http://example.com/blogname/wp-admin/

  8. jeffryevans
    Member
    Posted 2 years ago #

    Awesome. One other thing that I think would be valuable is to provide a way for the user to customize the create a new account and lost password links. I am not using the default links, so I would like to be able to use my own custom links, without modifying the code.

    Just a thought...but I would appreciate it.

  9. jeffryevans
    Member
    Posted 2 years ago #

    http://example.com/blogname/wp-admin/

    My code does not use this link structure. Is this the wordpress mu url structure? Because I am just using the standalone wordpress version.

  10. Joshua Parker
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, now we are getting somewhere. This plugin is only for WordPress Multisite (WPMS). I did do a variation for standalone users and posted it in the comments section of this post: http://www.joshparker.us/blog/wordpress/wpms_sidebar_login_widget.html

  11. jeffryevans
    Member
    Posted 2 years ago #

    Thanks, I used the stand alone version and it was much better.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic