• Resolved ink9

    (@ink9)


    Hello,

    Thank You for your plugin, it works perfectly with my site…

    but i do have a little bit link problem. when users logged in, How can i remove the link that links to “dashboard” and also replace the “edit profile” link to link to regular page instead wp back-end.

    Thank You.

    -Ink.

    http://wordpress.org/extend/plugins/sb-login/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi ink9
    I want to help you, because, maybe, our friend Fida is very busy. Me too, I wrote a question (already solved by me), but without any answer from author of plugin.
    In your case, you must adjust the code in the file /template/logged-in.php or, if you agree my personal changement, you can replace the following

    <ul class="links">
    		<li><a href="<?php echo site_url('/wp-admin/'); ?>"><?php _e('Dashboard','ninety'); ?></a></li>
    		<li><a href="<?php echo site_url('/wp-admin/profile.php'); ?>"><?php _e('Edit Profile','ninety'); ?></a></li>
    		<li><a href="<?php echo wp_logout_url( nd_login_current_url() ); ?>"><?php _e('Log out','ninety'); ?></a></li>
    	</ul>

    with this:

    <ul class="links">
    <?php  if ( current_user_can('edit_post') ) { ?>
    		<li><a href="<?php echo site_url('/wp-admin/'); ?>"><?php _e('Dashboard','ninety'); ?></a></li>
    		<li><a href="<?php echo site_url('/wp-admin/post-new.php'); ?>"><?php _e('New Post','ninety'); ?></a></li>
    <?php } else {?>
    		<li><a href="<?php echo site_url('/wp-admin/post-new.php'); ?>"><?php _e('New Post','ninety'); ?></a></li>
    <?php } ?>
    		<li><a href="<?php echo wp_logout_url( nd_login_current_url() ); ?>"><?php _e('Log out','ninety'); ?></a></li>
    	</ul>

    [ Signature moderated. ]

    Thread Starter ink9

    (@ink9)

    Hello Andrea,

    Thank You for taking your time out to help me….

    All I really want is to make this link

    <li><a href="<?php echo site_url('/wp-admin/profile.php'); ?>"><?php _e('Edit Profile','ninety'); ?></a></li>

    to link to a front page on my site like this:
    http://mysite.com/mypage
    That’s all…
    Thank You.
    -Ink.

    Hi ink9.
    OK!.
    You need write
    <li><a href="<?php echo site_url(); ?>"><?php _e('Home','ninety'); ?></a></li>
    That’s all!.
    [ Signature moderated. ]

    Thread Starter ink9

    (@ink9)

    Thank You once again… it’s working but now, its linking to my home page….

    I want it to link to my profile page like this
    example:
    http://mysite.com/myprofilepage.

    not my home page
    example:
    http://mysite.com

    I really don’t know php, pls bear with me.

    -Ink.

    Hi ink9,
    Please, link on your attached links and see yourself what appear, it’ a normal homepage with error, because you must be a logged user!.
    But, before to try, logout from that site.
    In any case you have only 3 possibilities for address:

    <?php echo site_url( $path(optional), $scheme(optional) ); ?>
    <?php echo network_site_url( $path(optional), $scheme(optional) ); ?>
    <?php echo home_url( $path(optional), $scheme(optional) ); ?>

    For really help you must write the esact condition of your problem.[ Signature moderated. ]

    Plugin Author Fida Al Hasan

    (@fida02)

    Hello INK9,

    Replace the following,

    <ul class="links">
    		<li><a href="<?php echo site_url('/wp-admin/'); ?>"><?php _e('Dashboard','ninety'); ?></a></li>
    		<li><a href="<?php echo site_url('/wp-admin/profile.php'); ?>"><?php _e('Edit Profile','ninety'); ?></a></li>
    		<li><a href="<?php echo wp_logout_url( nd_login_current_url() ); ?>"><?php _e('Log out','ninety'); ?></a></li>
    	</ul>

    with this:

    <ul class="links">
    		<li><a href="<?php echo site_url('/your-page'); ?>"><?php _e('Edit Profile','ninety'); ?></a></li>
    		<li><a href="<?php echo wp_logout_url( nd_login_current_url() ); ?>"><?php _e('Log out','ninety'); ?></a></li>
    	</ul>

    @redazione thanks for your helping.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change LInks’ is closed to new replies.