Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
The joys of topics that I let slip off the radar...

Totally untested code here, so this might not work perfectly the first time...

cp2_editprofile.pl. Find:

Code
	my @profile = @_;
Add UNDER:

Code
        my $pref_hash = &unflatten_hash($profile[42]);
Find:

Code
		@field_list,
$bday_bits,
Add ABOVE:

Code
	{
type => "text",
title => "Second Title",
value => $pref_hash->{"second_title"},
name => "second_title",
},
Now in cp2_membermanage.cgi, find:

Code
		next if $key eq "title";
next if $key eq "user_notes";
Add UNDER:

Code
		next if $key eq "second_title";
Find:

Code
	# User notes
$profile->[41] = &ConvertReturns($core->{user_notes});
Add UNDER:

Code
	my $prefs_hash = &unflatten_hash($profile->[42]);
$prefs_hash->{"second_title"} = $in{second_title};
$profile->[42] = &flatten_hash($prefs_hash);
Now, to make it show up. ubb_lib_posting.cgi, find:

Code
				$user_status = $user_profile[31];
} # end if
Add BELOW:

Code
			my $prefs_hash = &unflatten_hash($user_profile[42]);
if($prefs_hash->{"second_title"}) {
$user_status = qq~$prefs_hash->{"second_title"}
$user_status~;
} # end if
If you want the second status below the normal status instead of above the normal status, just switch them in the assignment above.

Again, this is totally untested code. Good luck.. smile

Now... having both a custom user title AND a user title based on post count isn't really too hard... just as long as you only really care about it when it's inside a topic... let me know if you really want that, Sue. smile


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
Entire Thread
Subject Posted By Posted
2nd custom member title field bryan868 02/19/2004 4:31 AM
Re: 2nd custom member title field bryan868 02/23/2004 1:35 AM
Re: 2nd custom member title field Charles Capps 02/23/2004 2:36 AM
Re: 2nd custom member title field bryan868 02/25/2004 9:53 AM
Re: 2nd custom member title field ADWOFF 03/10/2004 9:19 AM
Re: 2nd custom member title field bryan868 03/11/2004 1:13 AM
Re: 2nd custom member title field Charles Capps 03/11/2004 3:20 AM
Re: 2nd custom member title field bryan868 03/11/2004 6:46 AM
Re: 2nd custom member title field ADWOFF 03/11/2004 7:24 AM
Re: 2nd custom member title field Charles Capps 03/12/2004 8:54 PM
Re: 2nd custom member title field Charles Capps 03/12/2004 10:25 PM

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

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