|
Joined: Oct 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 12 |
I installed the title and rank hack in 6.1 and it's working great, but when you click on the profile pages for the individual members, the custom ranks don't show up...it just shows the rank that is set in the control panel. How do I make it overwrite that?
|
|
|
|
Joined: Oct 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 12 |
|
|
|
|
Joined: Oct 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 29 |
Did you use his installation or did you do it yourself?
The reason I ask, is because 2 files were missing from the ones that needed to be changed.
I am trying to email the new installation to him to see if he will change the zip file.
|
|
|
|
Joined: Oct 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 12 |
Aaaaaaah! Yes, I did do the install myself. So there are files missing?? What is there to do?
|
|
|
|
Joined: Oct 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 29 |
Just a sec, I am going to create a .txt which lists what you have to.
I already email the complete installation cgi (with all the previous mods and the new ones) to him.
No matter which way you did it, it would not work. But since you did the mods yourself, I feel comfortable telling you the changes.
I will post them in about 1/2 hour.
|
|
|
|
Joined: Oct 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 29 |
OK, do these 2 things;
1) make the same changes to UBB_PROFILE.CGI that you made to UBB_LIB_POSTING.CGI
2) make the same changes to PUBLIC_DISPLAY_PROFILE.PL that you made to PUBLIC_TOPIC_PAGE.PL
That will fix you up. One different is that in UBB_PROFILE there is no Admin section, I have not setup the code for the Admin override stuff.
Hope to have it finished by end of Sunday.
[ 10-27-2001: Message edited by: John A. MacDonald ]
|
|
|
|
Joined: Oct 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 12 |
Great, thanks! I'll try it out tomorrow.
|
|
|
|
Joined: Oct 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 29 |
Did you get it to work?
If not let me know, I created a .cgi to install what was missing.
Seems to work good.
|
|
|
|
Joined: Oct 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 12 |
I'm trying it right now but can't find a place to start...I can't find the same files in ubb_profile.cgi as in ubb_lib_posting.cgi, so don't know what or where to add the new info. What's the new cgi that you have?
|
|
|
|
Joined: Oct 2000
Posts: 505
Member
|
Member
Joined: Oct 2000
Posts: 505 |
John that won't work because there aren't the identical lines to change in those two files. Please post instructions right here. Thanks
|
|
|
|
Joined: Oct 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 29 |
Here is the code:
ubb_profile.pl
Find sub get_profile { local (@user_profile, $user_public_name, $user_status, $count, $chompee, $date_registered, $reg_month, $reg_day, $reg_year, @themonths, @viewer_profile, $is_admin_mod, $u, $rating_line, $overall_rating, $admin_view_rating, %user, $personal_line, $personal_rating, $user_ratings_off, %votes, %totals, %avg, %weighted_avg, $pm_line, %pm_ignore, %pm_buddy, $total_votes, $add_2_list);
Add Below
use vars qw($custom_status); local($custom_status);
Find # custom status unless ($user_profile[31] ne '') { $user_status = &CustomTitle($user_profile[8]); } else { $user_status = $user_profile[31]; }
Replace with # get custom title &RequireCode("$vars_config{CGIPath}/ubb_custom_status.cgi"); $user_status = &GetCustomRank($user_profile[7], $user_profile[8]); $custom_status = &GetCustomTitle($this_user_number); # if moderator- only list as mod if actually a mod in this forum if (($user_profile[8] eq "Moderator") && $Moderator) { if ($Moderator =~ /$this_user_number/) { #$user_status = "$vars_misc{ModeratorTitle}"; } else { $user_status = &GetStandardRank($user_profile[7], $user_profile[8]); } } elsif(($user_profile[8] eq "Moderator") && !$Moderator) { $user_status = &GetStandardRank($user_profile[7], $user_profile[8]); } # end mod check
# check to see if custom rank is overriden $user_status = &GetOverrideRank($user_status, $u, $user_profile[7]);
in public_display_profile.pl
Find
$user_status
Add Below it
$custom_status
|
|
|
|
Joined: Oct 2001
Posts: 12
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 12 |
Thanks! I'll give this a try. But I was wondering...is that part supposed to be like that up there or should it be ?
|
|
|
|
Joined: Oct 2001
Posts: 29
Junior Member
|
Junior Member
Joined: Oct 2001
Posts: 29 |
Unsure, but in my code it is
|
|
|
|
Joined: Oct 2000
Posts: 505
Member
|
Member
Joined: Oct 2000
Posts: 505 |
it's
, because you don't want it to appear within the same line as the custom title. thanks for sharin John 
|
|
|
|
Joined: Oct 2000
Posts: 505
Member
|
Member
Joined: Oct 2000
Posts: 505 |
first of all, I don't think you'll ever find a ubb_profile.pl in your directories it's ubb_profile.cgi, just in case somebody's wondering... second: I don't get this workin, it won't show up. maybe some code missin ?
|
|
|
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: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|