Page 1 of 1

Edit your profile link

Posted: 02 Sep 2010, 20:20
by Steve
Displays a profile link to take your members straight to edit there profile in line with user control panel.

Open includes/functions.php
find:

Code: Select all

		'U_PROFILE'				=> append_sid("{$phpbb_root_path}ucp.$phpEx"),
add after:

Code: Select all

		'U_EDIT_PROFILE'		=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=172'),	
Open language/en/common.php
find:

Code: Select all

	'PROFILE'				=> 'User Control Panel',
add after:

Code: Select all

	'EDIT_PROFILE'          => 'Edit Your Profile',
Open styles/prosilver/template/overall_header.html
find:

Code: Select all

				<li class="icon-ucp">
add after:

Code: Select all

				    <a href="{U_EDIT_PROFILE}" title="{L_PROFILE}" accesskey="e">{L_EDIT_PROFILE}</a> &bull; 
Refresh template for prosilver.
pic:
pro.PNG
Open styles/subsilver2/template/overall_header.html
find:

Code: Select all

					<!-- IF S_USER_LOGGED_IN -->&nbsp; &nbsp;<a href="{U_PROFILE}"><img src="{T_THEME_PATH}/images/icon_mini_profile.gif" width="12" height="13" alt="*" /> {L_PROFILE}</a><!-- ENDIF -->
replace with:

Code: Select all

					<!-- IF S_USER_LOGGED_IN --> &nbsp; &nbsp;<a href="{U_EDIT_PROFILE}" title="{L_PROFILE}" accesskey="e"><img src="{T_THEME_PATH}/images/icon_mini_profile.gif" width="12" height="13" alt="*" /> {L_EDIT_PROFILE}</a> &bull; <a href="{U_PROFILE}"> {L_PROFILE}</a><!-- ENDIF -->
Refresh template for subsilver2
pic:
sub.PNG

Re: Edit your profile link

Posted: 03 Sep 2010, 01:30
by oscarg
...Why not just edit the 'User Control Panel' link to say 'Edit your profile'?

Re: Edit your profile link

Posted: 03 Sep 2010, 17:47
by cisco007
because if you look at the description of the edit, if you do that it will take you to the general area of the UCP, not to the edit your profile as described by this edit!