View Full Version : Remove Edit Profile link from the User CP
xtreme1
04-26-2009, 10:57 AM
Hi. I'm using version 3.6.7 PL1 and would like to remove the link called Edit Profile in the UserCP. In the General Permissions for the Registered Users usergroup I have set Can Edit Own Profile to No but this does not remove the Edit Profile link and if a user should click on that he/she will be met with a non-permission message. I would prefer to avoid this approach. Is there code that needs deleting to remove this link?
Also, under Miscellaneous in the UserCP I would like to remove the link to Event Reminders and Attachments.
Can someone help with this?
Sweeks
04-26-2009, 11:36 AM
It should be in USERCP shell and search for attachment and you will find it looking something like this:
<if condition="$show['attachments']">
<tr><td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td></tr>
</if>
Just remove it and save and it should be fine.
The rest of the edits you need to do will be in that template.
________
FREE XXX MOVIES ONLINE (http://www.++++tube.com/)
xtreme1
04-27-2009, 05:11 AM
Hi Sweeks
I see the code you have exampled is an if condition. (I know nothing of PHP).
In looking through the USERCP shell I see reference to Edit Profile as below surrounded by <tr> tags. There doesn't appear to be an 'if condition' relating to the Edit Profile link.
<tr>
<td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td>
</tr>
<tr>
Lynne
04-27-2009, 02:52 PM
You can try removing that row (from <tr> to </tr>). However, if they know vbulletin, they can figure out the link to get to edit their profile (add do=editprofile to the end of the profile.php url).
bluej
08-02-2009, 02:36 AM
would like to do this for the 'social group messages' as i do not want to use them
removed the line of code in USERCP_SHELL but the link is still there...
what else do i need to do to remove this link from the UCP?
thanks for any help :)
Lynne
08-02-2009, 02:43 AM
If the link is still there, then you either didn't remove the correct line in the template, or you removed the line in the wrong style.
bluej
08-02-2009, 03:12 AM
If the link is still there, then you either didn't remove the correct line in the template, or you removed the line in the wrong style.
i think it is that i need to remove the link from UCP icons that i added USERCP_SHELL_ICONS, i can remove it there but i am having the next lines on the table stretch all out...
</table>
</td></tr>
<tr><td class="$navclass[deletedgms]" nowrap="nowrap">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20">
<img border="0" src="$stylevar[imgdir_misc]/usercp_icons/report_add.gif" width="16" height="16"></td>
<td><a class="smallfont" href="moderation.php?$session[sessionurl]do=viewgms&type=deleted">$vbphrase[social_group_messages]</a></td>
</tr>
</table>
this is the code area, where do i start and stop so that the table stays the same width? have tried a couple of different things and still get the stretched table following the link removed...:confused:
Lynne
08-02-2009, 03:36 AM
That is from a modification, and questions regarding modifications should be asked in the modification thread.
bluej
08-02-2009, 03:40 AM
That is from a modification, and questions regarding modifications should be asked in the modification thread.
oh ok, thanks so much, you have been very helpful :up::)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.