|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Modification Name: Edit Public Name in CP Author(s): Ian Spence Description: Allows you to edit a user's public name via the CP. Demo: CP MOD Requirements: UBB.classic 6.7 Download Link: https://www.ubbdev.com/ubb/upload/00020028/EditUserNameinCP.txt Credits: Gizzy for annoying me until I released it. Modify Files. Upload Files. Change your least favorite member's name to "Snuggle Bunny". That is required. This mod will stop working after 1 hour if there isn't a member named "Snuggle Bunny" on your boards.
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
You're forgetting to update the pdn index...
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Are you sure? $profile[15] = $in{pdn} || $profile[0]; . . . my $public_name = $profile[15] || $profile[0]; &AppendNameList($public_name); my $pdnlist = &GetPDNListAsHash; $pdnlist->{$u} = $public_name; #my @newlist = map { "$_|.|$pdnlist->{$_}" } sort keys %{$pdnlist}; &UpdatePDNList($pdnlist); or is the PDN list and the PDN index different?
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
See, this is why you need to release things, so charles can yell at you :x...
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Ah, sorry. I didn't realize that the stock code already did so.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
This coming from charles; the one who helped code the stock code... I'm scared now...
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
I have it at UGN and it seems to be running perfectly.
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
Heh... I've been working on a lot of non-Classic projects of late (including helping with the Eve migration and working with Rick on getting the Threads importer set up in 6.5)
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
I get this error, I took the board name off for security reasons (RequireCode) /home/www/www.board.com/cgi-bin/cp2_membermanage.cgi: syntax error at /home/www/www.board.com/cgi-bin/cp2_membermanage.cgi line 60, near ""$vars_config{CGIURL}/$CONTROLPANEL?page=editprofile&u=0`"w"syntax error at /home/www/www.board.com/cgi-bin/cp2_membermanage.cgi line 79, near "my $results = &OpenFileAsMultiHash(""Global symbol "$results" requires explicit package name at /home/www/www.board.com/cgi-bin/cp2_membermanage.cgi line 78.Compilation failed in require at /home/www/www.board.com/cgi-bin/ubb_lib.cgi line 931.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
redo the hack, it isn't that long
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
I have, 4 times, still get the same error 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
the part of cp2_membermanage.cgi my mod requires you to edit begings at line 667. Your errors is at line 60, 79 and 78.
This error has nothing to do with my mod
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
It's me again
I added it succesfully but in the Public Name line there's an empty text field, and if I update anything in the profile with out re entering the member nickname it shows the Login Name as the Public Name, and yes I did set a member name "Snuggle Bunny"
Any chance for any kind of help?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
try reinstalling it, as I don't know any reason that would happen. This is a simple mod
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|