Moderator: Integra Moderator
//-----------------------------------//// user_rank_title output function////-----------------------------------function pcp_output_rank_title($field_name, $view_userdata, $map_name=''){ global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; if ( $view_userdata['user_id'] != ANONYMOUS ) { $rank = get_user_rank($view_userdata); //----------------------------------------------------------------------// Shop 3 Compatibility for Profile Control Panel - Begin Code Alteration// $rank = pcp_shop_build_title($view_userdata, $rank);//// Shop 3 Compatibility for Profile Control Panel - End Code Alteration//---------------------------------------------------------------------- $txt = $rank['rank_title']; $img = $rank['rank_image']; // result $res = pcp_output_format($field_name, $txt, $img, $map_name); } return $res;}
That is how it should work. If you have two ranksets, say starfleet and klingon, and you choose klingon then all non-special ranks should now be klingon for you. If someone else chooses starfleet then all non-special ranks will be starfleet for them. For a while there I thought it was supposed to work the other way as well, but reflecting on the functionality of the MOD I discovered it should be as it is now."krillmeed";p="22512" wrote:Maybe i should explain the last one better, say i am using the Starfleet ranks in my profile, everyone except with special ranks will be shown as starfleet rank, even if they have Romulan or Klingon ranks set in there profile, same things happens when i change to one of the other ones. It does not matter if i have them on hidden on not. By the way CT tracker pops up everywere on this, i have solved all those i think. Still i think that it is not supposed to work just like this is it?
I'll look into this problem."krillmeed";p="22506" wrote:Something is not right. In Admin/Userlist this is what i now get:
Fatal error: Call to undefined function: init_ranks() in /hsphere/local/home/krillmee/krillmeed.com/forum/admin/admin_userlist.php on line 856
And in the Rank block only the special ranks block is showing not the normal block one for members. <img>
$rank_title = ( isset($ranks[$view_userdata['user_gender']]) && ($ranks[$view_userdata['user_gender']] != '') ) ? $ranks[$view_userdata['user_gender']] : $ranks[0];
$rank_title = pcp_shop_build_title($view_userdata, $rank_title);
"krillmeed";p="22506" wrote:And in the Rank block only the special ranks block is showing not the normal block one for members. <img>
Registered users: App360MonitorBot, Bing [Bot], Google [Bot]