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:
Add UNDER:
my $pref_hash = &unflatten_hash($profile[42]);
Find:
Add ABOVE:
{
type => "text",
title => "Second Title",
value => $pref_hash->{"second_title"},
name => "second_title",
},
Now in cp2_membermanage.cgi, find:
next if $key eq "title";
next if $key eq "user_notes";
Add UNDER:
next if $key eq "second_title";
Find:
# User notes
$profile->[41] = &ConvertReturns($core->{user_notes});
Add UNDER:
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:
$user_status = $user_profile[31];
} # end if
Add BELOW:
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..
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.
