vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Remove Edit Profile link from the User CP (https://vborg.vbsupport.ru/showthread.php?t=212203)

xtreme1 04-26-2009 10:57 AM

Remove Edit Profile link from the User CP
 
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:

Code:

<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

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

Quote:

Originally Posted by Lynne (Post 1859902)
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...

Code:

</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&amp;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

Quote:

Originally Posted by Lynne (Post 1859930)
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::)


All times are GMT. The time now is 12:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01049 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete