WordPress.org

Support

links not working

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Joshua Parker

    @parkerj

    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?

    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.

    Plugin Author Joshua Parker

    @parkerj

    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?

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

    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 />
    Plugin Author Joshua Parker

    @parkerj

    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/

    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.

    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.

    Plugin Author Joshua Parker

    @parkerj

    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

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘links not working’ is closed to new replies.
Skip to toolbar