Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2009, 10:57 AM
xtreme1 xtreme1 is offline
 
Join Date: Apr 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 04-26-2009, 11:36 AM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 04-27-2009, 05:11 AM
xtreme1 xtreme1 is offline
 
Join Date: Apr 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #4  
Old 04-27-2009, 02:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #5  
Old 08-02-2009, 02:36 AM
bluej bluej is offline
 
Join Date: Jan 2007
Location: U.S.A.
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 08-02-2009, 02:43 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 08-02-2009, 03:12 AM
bluej bluej is offline
 
Join Date: Jan 2007
Location: U.S.A.
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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...
Reply With Quote
  #8  
Old 08-02-2009, 03:36 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is from a modification, and questions regarding modifications should be asked in the modification thread.
Reply With Quote
  #9  
Old 08-02-2009, 03:40 AM
bluej bluej is offline
 
Join Date: Jan 2007
Location: U.S.A.
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:39 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.03964 seconds
  • Memory Usage 2,237KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete