Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 16 Jul 2009, 18:42
Freebord Freebord is offline
 
Join Date: Jul 2009
Hide Email and Password change

Hi all, I'm looking for a way to hide/ disable the change email and password button from just one user. I'd like to use this account as a kind of test account and I don't want the guests to be able to change the email and password of the account.

I've tried inserting a conditional in the USERCP_SHELL template here:
<if condition="$bbuserinfo['userid'] != bob">
<tr>
<td class="$navclass[password]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a></td>
</tr>
</if>

But that doesn't seem to work. When I login as userid Bob, I'm still able to change the email and password.

Any other ideas? Many thanks in advance...
Reply With Quote
  #2  
Old 16 Jul 2009, 19:38
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Try:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Where "1" is change the user ID to that who you do not want to see that code.

For multiple users try:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


When you add users make sure to add a comma after the number. Good luck.

--------------- Added 16 Jul 2009 at 09:48 ---------------

BUT...

I'd like to add that the user can still change the password by using password recovery or if they know the URL of the e-mail and password edit. Instead, I'd edit /forum/includes/config.php and find the codes:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Just as you do with conditionals, add the user ID who you do not want to be able to edit anything in the Control Panel. At the same time I'd also include any user who has access to the Admin CP.
__________________



Last edited by Freesteyelz; 16 Jul 2009 at 19:51. Reason: Auto-Merged DoublePost
Reply With Quote
  #3  
Old 16 Jul 2009, 21:48
Freebord Freebord is offline
 
Join Date: Jul 2009
It worked, thank you so much!
Reply With Quote
  #4  
Old 17 Jul 2009, 04:53
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Cool.
__________________


Reply With Quote
  #5  
Old 12 Dec 2011, 15:58
leoglobant leoglobant is offline
 
Join Date: Nov 2011
Hello.

I was wondering how to achieve the same but not allowing anyone to change their password and email except the admin.

Thanks!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 12:00.

Layout Options | Width: Wide Color: