[RC] Special and Normal Rank Images 1.1.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
f1_schu
Registered User
Posts: 29
Joined: Mon Nov 23, 2009 8:55 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by f1_schu »

Hi great mod, i installed it and everything worked fine, the problem i have is this, i dont want to show the post rank for admin as well as the admin special rank, i want it to work like it does for all other members/groups but for admin just show the special rank, is there anyway to do that?
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

It should be possible with a bit of a custom hack, but I don't know what it would be at the moment. What you'd basically need to do is change all of the "if user has custom rank" checks to "if user has custom rank and user isn't admin".
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [RC] Special and Normal Rank Images 1.1.0

Post by Anyasha »

With debug on:
[phpBB Debug] PHP Notice: in file /memberlist.php on line 297: Undefined index: user_rank_theme
line 297:

Code: Select all

			get_user_rank($row['user_rank'], (($row['user_id'] == ANONYMOUS) ? false : $row['user_posts']), $rank_title, $rank_img, $rank_img_src, $row['user_rank_theme']);
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

I'll double check, but that should be a column that is added to the database by the SQL query. Perhaps the members list does it differently to other pages, but it seems to work fine and show themes on my site.

Also, damn the phpBB people. Looks like I'll need to see if anything changed and possibly release another RC now that 3.0.7 is out.


[edit] Hang on, this is the Special and Normal Rank Images mod. It doesn't even use the "user_rank_theme" column by default. The only time you should be using that should be when you're installing it alongside the Multi-Race Rank Themes mod. Do you have that mod installed as well? If not then you don't need to follow the "contrib" instructions.
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [RC] Special and Normal Rank Images 1.1.0

Post by Anyasha »

I posted here because I used the patch from this mod to make it compatible with the Multi-Race ranks mod. The patch added that part. This error only shows when viewing "the team" link, it doesn't show anywhere else and the patch works everywhere else.
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

Okay, I'll check it out. Didn't realise you were using the combiner patch as you didn't mention it.

[edit] The fix is one small change in a memberlist.php query:

Code: Select all

			<edit>
				<find><![CDATA[			'SELECT'	=> 'u.user_id, u.group_id as default_group, u.username, u.username_clean, u.user_colour, u.user_rank, u.user_posts, u.user_allow_pm, g.group_id, g.group_name, g.group_colour, g.group_type, ug.user_id as ug_user_id',]]></find>
				<inline-edit>
					<inline-find>u.user_rank,</inline-find>
					<inline-action type="after-add"><![CDATA[ u.user_rank_theme,]]></inline-action>
				</inline-edit>
			</edit>
The changes were actually in the other MOD instructions (so it was always there) and it will be updated soon.
JC4912
Registered User
Posts: 43
Joined: Wed Feb 03, 2010 10:45 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by JC4912 »

Where do I go to set the group the other image? at the moment i've got the post rank set up, the mod is installed but cannot find anywhere where I set the special ranks too.
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am

Re: [RC] Special and Normal Rank Images 1.1.0

Post by MasterZ »

JC4912 wrote:Where do I go to set the group the other image? at the moment i've got the post rank set up, the mod is installed but cannot find anywhere where I set the special ranks too.
Give the group an image and set that group as the users default.
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK

Re: [RC] Special and Normal Rank Images 1.1.0

Post by alecrust »

Do you have any idea when you'll be submitting this to the MOD Database?
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am

Re: [RC] Special and Normal Rank Images 1.1.0

Post by MasterZ »

alecrust wrote:Do you have any idea when you'll be submitting this to the MOD Database?
I believe it already is...
JC4912
Registered User
Posts: 43
Joined: Wed Feb 03, 2010 10:45 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by JC4912 »

MasterZ wrote:
JC4912 wrote:Where do I go to set the group the other image? at the moment i've got the post rank set up, the mod is installed but cannot find anywhere where I set the special ranks too.
Give the group an image and set that group as the users default.
I've got my rank images set up in Users & Groups -> Users -> Manage Ranks

And say for Administrator under Users & Groups -> Groups -> Manage Groups -> Administrator Settings I have it set to user default.

I've also added in Manage Ranks the images for Administrator etc.. and put it as 'Special Rank' I still don't know how I make it so that image is assigned to the group.

- Edit: Do I have to set the special rank separately for all users?!?!
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am

Re: [RC] Special and Normal Rank Images 1.1.0

Post by MasterZ »

JC4912 wrote: I've got my rank images set up in Users & Groups -> Users -> Manage Ranks

And say for Administrator under Users & Groups -> Groups -> Manage Groups -> Administrator Settings I have it set to user default.

I've also added in Manage Ranks the images for Administrator etc.. and put it as 'Special Rank' I still don't know how I make it so that image is assigned to the group.

- Edit: Do I have to set the special rank separately for all users?!?!
Edit a group's settings and select the "Group Rank" to be whatever special rank you want assigned to that group.

Then anybody that has that group setup as their default group should have that rank assigned.
JC4912
Registered User
Posts: 43
Joined: Wed Feb 03, 2010 10:45 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by JC4912 »

MasterZ wrote:
JC4912 wrote: I've got my rank images set up in Users & Groups -> Users -> Manage Ranks

And say for Administrator under Users & Groups -> Groups -> Manage Groups -> Administrator Settings I have it set to user default.

I've also added in Manage Ranks the images for Administrator etc.. and put it as 'Special Rank' I still don't know how I make it so that image is assigned to the group.

- Edit: Do I have to set the special rank separately for all users?!?!
Edit a group's settings and select the "Group Rank" to be whatever special rank you want assigned to that group.

Then anybody that has that group setup as their default group should have that rank assigned.
I'm sorry but I still don't understand how to have BOTH display at the same time.
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am

Re: [RC] Special and Normal Rank Images 1.1.0

Post by MasterZ »

JC4912 wrote:I'm sorry but I still don't understand how to have BOTH display at the same time.
This MOD allows for the user to have one special rank show as well as the normal rank image. You do not need to do anything other than properly install this MOD to get both of those to display. This MOD does not display multiple special ranks or any other combination, just the users default group special rank and the normal rank.
JC4912
Registered User
Posts: 43
Joined: Wed Feb 03, 2010 10:45 pm

Re: [RC] Special and Normal Rank Images 1.1.0

Post by JC4912 »

MasterZ wrote:
JC4912 wrote:I'm sorry but I still don't understand how to have BOTH display at the same time.
This MOD allows for the user to have one special rank show as well as the normal rank image. You do not need to do anything other than properly install this MOD to get both of those to display. This MOD does not display multiple special ranks or any other combination, just the users default group special rank and the normal rank.
I know that, i've got the mod installed and I want a special rank and a default (post rank) to be displayed.

At the moment i've got it so the post rank is displayed, i've looked for quite a while to turn the special rank on also but only 1 is displaying not both.

Return to “[3.0.x] MODs in Development”