Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Modification Name: Show Passwords From CP

Author(s): LK

Description: The new versions of UBB do not allow you to view users' passwords from CP. If you wish to view non-admin and non-mod users' passwords from CP -> Member Management, apply this hack.

Requirements: UBB.classic 6.7.0, might work on 6.6 too

Code
***************************
* Open cp2_editprofile.pl *
***************************

Find:
=====

my $password_field = $in{new} ? {
type => "text",
password => 1,
title => $vars_wordlets_cp2{editprofile_password},
name => "password",
value => $profile[1],
classright => "autobottom",
classleft => "bold autobottom",
} : undef;

Replace with:
=============

my $password_field = $in{new} ? {
type => "text",
password => 1,
title => $vars_wordlets_cp2{editprofile_password},
name => "password",
value => $profile[1],
classright => "autobottom",
classleft => "bold autobottom",
} : $profile[8] ne 'Administrator' && $profile[8] ne 'Moderator' ? {
type => "halfandhalf",
onehalf => $vars_wordlets_cp2{editprofile_password},
otherhalf => $profile[1],
classright => "autobottom",
classleft => "bold autobottom",
} : undef;

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
grazie! works great laugh

Joined: Mar 2002
Posts: 17
Newbie
Newbie
Offline
Joined: Mar 2002
Posts: 17
Thanks LK, works great.


MK
Joined: Aug 2004
Posts: 20
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 20
i dont think this will work on 6.6 that text isnt foudn anywhre... if anyone can get it to work tho let me know how!

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Quote
Originally posted by radrico:

i dont think this will work on 6.6 that text isnt foudn anywhre... if anyone can get it to work tho let me know how!
That's because it's a 6.7 mod wink ... You really should upgrade before the member renewal sale is over wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
It already is over, I think wink

Look for "my $password_field" in that file of 6.6, try to see what's the differences between the code I quoted and your code... (unfortunately I don't have 6.6 anymore)

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
LK, i have a 6.6 somewhere, message me on aim if you want to look it over.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Guys, remember, in 6.6 the code was already there, just commented out

Joined: Aug 2004
Posts: 20
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 20
Quote
Originally posted by LK:

It already is over, I think wink

Look for "my $password_field" in that file of 6.6, try to see what's the differences between the code I quoted and your code... (unfortunately I don't have 6.6 anymore)
Nope not there.. Anyone have a 6.6 version?

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
search for the word "meeting" in cp2_editprofile.pl, uncomment the code below it

Sponsored Links
Joined: Aug 2004
Posts: 20
Junior Member
Junior Member
Offline
Joined: Aug 2004
Posts: 20
when you say uncomment the code below it do you mean delete? (sorry im an idiot)

Edit: Nevermind Gizzy helped me with that part. Blah im an idiot i got it tho! smile

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
# This is a comment

wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
works well, thank you laugh


- Allen wavey
- What Drives You?
Joined: Dec 2004
Posts: 2
Junior Member
Junior Member
Offline
Joined: Dec 2004
Posts: 2
Hi - Thank you very much for posting this mod.

However, we're running 6.7.0, and I'm not finding the file to be edited anywhere.... The vast majority of our files are .cgi. Am I missing something very basic here? Excuse my ignorance if so - I'm new to UBB.classic.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
it's in the Templates folder

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
the templates folder is in the noncgi folder wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Dec 2004
Posts: 2
Junior Member
Junior Member
Offline
Joined: Dec 2004
Posts: 2
Apparently, I *was* missing something very simple. Thank you so much!!!


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)