Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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.

Sponsored Links
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
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Are you sure?

Code
		$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,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
See, this is why you need to release things, so charles can yell at you :x...


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 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.
Sponsored Links
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 coming from charles; the one who helped code the stock code... I'm scared now...


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 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I have it at UGN and it seems to be running perfectly.


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 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
Offline
Joined: Mar 2004
Posts: 58
I get this error, I took the board name off for security reasons

Code
(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
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
redo the hack, it isn't that long

Sponsored Links
Joined: Mar 2004
Posts: 58
Member
Member
Offline
Joined: Mar 2004
Posts: 58
I have, 4 times, still get the same error frown

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
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
Offline
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


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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 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
Morgan 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)