Edit your profile link

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
Locked
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Edit your profile link

Post 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
NAPWR wrote: Nice, Stoker is Hot
oscarg
BBCoder II
BBCoder II
Posts: 6
Joined: 03 Sep 2010, 01:20

Re: Edit your profile link

Post by oscarg »

...Why not just edit the 'User Control Panel' link to say 'Edit your profile'?
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Edit your profile link

Post 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!
Locked