Page 1 of 2

Extended Rank System IM 141

PostPosted: Wed Feb 14, 2007 4:31 pm
Author: Teelk
MOD Title: Extended Rank System

MOD Author: mosymuis

IM Porter: Teelk

MOD De.scription: This mod allows you to set up different rank sets, which you can use to attach different post count ranks to individual users, users who use a certain template or users who are either male or female. You can choose to allow your members to choose their own rank set, with the option to hide certain rank sets from them. You can also apply special ranks to banned users, users who celebrate their birthday, users with an admin or moderator status or people who are in one of the usergroups.

MOD Version: 1.0.2

NOTE:Turning off public ranksets will not remove the "Ranks Set" option on the registration page, but users will not be able to change their rank set. It is essential that the field stay in the registration page to allow the MOD to function correctly, do NOT remove it.

Be careful with some of the file edits. A few file edits replace large amounts of code, please take your time to make sure that you are replacing everything correctly.

Re: Extended Rank System IM 141

PostPosted: Thu Feb 15, 2007 1:08 pm
Author: Teelk
Hmmm... no downloads... and this one was requested by more then one user... usually everyone's jumping on new mods lol.

PostPosted: Fri Feb 16, 2007 6:23 am
Author: tekguru
Well I'm thinking of the forthcoming major patch that is comign out and wantg to reduce work so I'm holding off applying Mods <img>

Re: Extended Rank System IM 141

PostPosted: Sat Feb 17, 2007 6:41 pm
Author: Teelk
There will be a manual update for the patch, and premodded files as well. The patch isn't huge, right now it edits about 21 files and estimated install time is about 30 minutes. But, if you want to hold off then premodded will definitely be faster.

PostPosted: Thu Mar 01, 2007 9:32 am
Author: krillmeed
DidnÂÂÂ ´t know it was here, but downloaded it and am installing it <img> Thanks Teelk

Re: Extended Rank System IM 141

PostPosted: Fri Mar 02, 2007 5:52 am
Author: krillmeed
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>

PostPosted: Fri Mar 02, 2007 8:33 am
Author: krillmeed
Another major one, i have 2 test accounts in 2 different names, when i changed to one set of ranks in one profile it changed all the rest and visa versa

PostPosted: Fri Mar 02, 2007 9:46 am
Author: krillmeed
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?

Re: Extended Rank System IM 141

PostPosted: Sat Mar 03, 2007 12:06 pm
Author: Pogue Moran
I tried it out teelk. I just have one problem. It conflicts with the edits I made for the shop mod 3 with effects. Is there a way we can integrate this so it doesn't override my effects from Shop mod? I did the following:

I have it so the effects mod shows up in the profiles and in the viewtopic the only real problem now is the rank title isn't working. Effects mod for Shop mod 3 allows a user to create a custom title with coloring and what not this mod takes out the standard $rank = commands and replaces it with $ranks, etc.

Here is what the standard rank title function in def_userfuncs_std.php looks like:

Code: Select all
//-----------------------------------//// 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;}


How would I go about integrating that small line for the shop mod?

I currently have the shopmod doing the coloring in the topics and profile while the advanced color mod shows colors for the threads and other various functions on my site.

PostPosted: Sat Mar 03, 2007 2:49 pm
Author: krillmeed
Do you mean for you it is working including the ranks for normal users showing in the rank block and everyone can have there own rank on your board? And of course does your Admin user list work?

PostPosted: Sat Mar 03, 2007 2:52 pm
Author: krillmeed
i would be interested if someone else can say if these things work so i know it is something i have done wrong and can have another go at it :D

PostPosted: Sat Mar 03, 2007 8:09 pm
Author: Teelk
"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?
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.

For instance, if you create a rankset and attach it to a theme, then attaching the rankset to the theme would become useless. There would be no reason to attach ranksets to themes because anyone using a certain theme would only see what people have chosen for their own rankset and not the theme defined one. I hope that makes sense.

"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>
I'll look into this problem.

Pogue Moran, there should be three instances of the following code in profilcp/def/def_userfuncs_std.php...
Code: Select all
                    $rank_title = ( isset($ranks[$view_userdata['user_gender']]) && ($ranks[$view_userdata['user_gender']] != '') ) ? $ranks[$view_userdata['user_gender']] : $ranks[0];


Place the following after all three instances and test it, it should work.
Code: Select all
$rank_title = pcp_shop_build_title($view_userdata, $rank_title);


I haven't installed shopmod 3 yet though, so that's untested.

Re: Extended Rank System IM 141

PostPosted: Sat Mar 03, 2007 8:22 pm
Author: Pogue Moran
hmmm unfortunately that didn't fix it teelk. I tried fiddling around with it a bit before but it didn't help. Maybe a modification of the rank_title part? or the ranks area? Also when you get a chance can you give me an opinion on the referral mod plus file I linked to.

PostPosted: Sun Mar 04, 2007 3:17 am
Author: krillmeed
Oh well cannot have everything lol Just to make sure i installed it for the 3rd more slowly this time just to make sure i am not making more work for you for nothing and i am still getting the same 2 errors <img>

PostPosted: Sun Mar 11, 2007 1:18 am
Author: krillmeed
Anything new on this problem?