Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2001
Posts: 74
Member
Member
Offline
Joined: Feb 2001
Posts: 74
I'm not really a Perl modder, but I was wanting to modify my CP so only a fellow admin and I could see the other Admin/Moderator's passwords. So far, it seems to work on our 6.3.1 system.
Quote
code:
Code
FIND:

if (($user_profile[8] eq 'Administrator') || ($user_profile[8] eq 'Moderator')) {
$user_profile[1] = $vars_wordlets_cp{memsearch_edit_passwd_noview};
}


REPLACE:
# Stop the other Admins from seeing Passwords
if (($ubbadmin[4] ne '00000000') && ($ubbadmin[4] ne '00000000')) {
if (($user_profile[8] eq 'Administrator') || ($user_profile[8] eq 'Moderator')) {
$user_profile[1] = $vars_wordlets_cp{memsearch_edit_passwd_noview};
}
}

Replace 00000000 with your UBB ID, and there you go. If you wish to be the only admin, remove
code:
[qb]
Code
&& ($ubbadmin[4] ne '00000000')
[/qb]
And if you wish to add more, simply add another && ($ubbadmin[4] ne '00000000') after it.

Special thanks to my Friend CmptrWz for helping me out.


{SFP} Sonic
Expecting the Unexpected!
Sponsored Links
Entire Thread
Subject Posted By Posted
[6.3.1] [beta] Only some Admins can see other Admin/mod Passwords Sonic 08/01/2002 7:14 AM
Re: [6.3.1] [beta] Only some Admins can see other Admin/mod Passwords AllenAyres 08/01/2002 7:45 AM
Re: [6.3.1] [beta] Only some Admins can see other Admin/mod Passwords Lord Dexter 08/01/2002 8:51 AM
Re: [6.3.1] [beta] Only some Admins can see other Admin/mod Passwords Galactus 09/29/2002 7:00 PM
Re: [6.3.1] [beta] Only some Admins can see other Admin/mod Passwords RandyM 09/30/2002 1:36 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,835
Joined: January 2000
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)