Jump to content

redirect to username


jweatherby1983

Recommended Posts

I don't know anything about php and I'm trying to fix these two links. 

 

One of which will bring the user to view's his/her profile to view it and the other will bring the user to his/her profile to edit.

 

I'm sure it's just a matter of deleting a space or adding some sort of variable but I just don't know.

 

<br><a href="http://mysailingconnection.com/using-this-website"><Font color="#000033"><b>Using This Website</b></font></a><br><br><a href="/members/<?php global $current_user; echo $current_user->user_login;?>/profile/">Click here to visit your profile.</a> </p><a href="/members/<?php echo $current_user->user_login;?>/profile/edit/">Click here to edit your personal profile.</a><br />

Link to comment
https://forums.phpfreaks.com/topic/222933-redirect-to-username/
Share on other sites

I'm not a big wordpress guy and you should have probably posted this in the CMS area where you'll probably get better answers but from what I can see there isn't really a built in functionality for editing profiles on the front-end but here is a plugin that allows for you to do so: http://wordpress.org/extend/plugins/frontend-edit-profile/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.