[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
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

[RC] Special and Normal Rank Images 1.1.0

Post by IBBoard »

MOD Title: Special and Normal Rank Images
MOD Description: This MOD will allow users with special ranks (e.g. Administrators) to have a normal rank image in addition to their special rank image in topics and on their profile page.
MOD Version: 1.1.1

MOD Download: http://www.ibboard.co.uk/mods/Special_A ... _1.1.1.zip
Last Stable version: v1.0.1

Demo Forum: http://forums.hiveworldterra.co.uk/
Demo Username: ModTester
Demo Password: modtester
The main user with a special rank is me, IBBoard.

The MOD download also includes an additional set of instructions that make it compatible with my Multi-Race Rank Themes MOD, so people with special ranks not only get both images but get to choose the theme of their normal image as well.

Any constructive feedback or other examples of sites using it would be great.


[edit] Update (8:30pm GMT+1) : 0.1b2 released. It includes a minor change to the instructions that fixes "undeclared index" warnings thrown by guest posts.
Last edited by IBBoard on Sat Mar 20, 2010 8:46 pm, edited 7 times in total.
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [Beta] Special and Normal Rank Images 0.1b2

Post by IBBoard »

The MOD has been out about a week now and there appear to have been ten downloads. Has anyone got any feedback on the instructions or its integration with the Multi-Race Rank Themes mod?
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [Beta] Special and Normal Rank Images 0.1b2

Post by Anyasha »

You say to find

Code: Select all

'RANK_IMG_SRC'		=> $rank_img_src,
in styles/prosilver/template/viewtopic_body.html however it doesn't exist, it should be in a php file not a template file. But the problem is, which one?
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [Beta] Special and Normal Rank Images 0.1b2

Post by IBBoard »

It looks like the instructions got slightly split. I've fixed it, made the find more unique and separated out the Subsilver2 instructions. Thanks for catching it.

Special and Normal Rank Images v0.1b3
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [Beta] Special and Normal Rank Images 0.1b3

Post by Anyasha »

Thanks. :) Also, is there a way to decide which rank takes precedence over the other? For example, when a user has a special rank, like Administrator, that becomes their normal rank and their EXTRA rank is then the posting rank. I would like it reversed. Is this possible?
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [Beta] Special and Normal Rank Images 0.1b3

Post by IBBoard »

It depends how you mean with "reversed". If you want to show the posting rank before the Admin rank in topics then that's just a HTML change. If you want to show the posting rank for admins even in places like the members list then it would be possible but it would be a more awkward change that would probably require more instructions than the whole of the current mod and would seem wrong to me (why have an Admin rank when you're not going to show it?)
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [Beta] Special and Normal Rank Images 0.1b3

Post by Anyasha »

I fear the solution is the last one. :( I'll fiddle around with it for a bit. The reason I asked is because I want the admins to have a rank that I can put BEFORE their username (a little image). Same for the mods, but a different small image. If I do it via HTML, then it is in the right place for the admins and mods but then the members have their posting rank next to their name instead of under it, which I don't want.

But I'll have a look mylself sometime this weekend. Thanks for making the mod, it's wonderful. :)
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [Beta] Special and Normal Rank Images 0.1b3

Post by IBBoard »

I've thought of an easy way to do it and I'm part way through the instructions now, but I've got to go shortly. It won't have an admin option to swap it, it'll be configured through a constant, but it'll let people have it whichever way they wish :)
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [Beta] Special and Normal Rank Images 0.1b3

Post by Anyasha »

Aw, all that extra work for you! :(
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [Beta] Special and Normal Rank Images 0.1b3

Post by IBBoard »

Okay, a new version is now available.

This version reworks things so it has a defined constant that determines which of the two variations to use on the user's profile and in topics:

1) the special rank (e.g. the Administrator rank) should be shown in the same place as the normal posting rank (so any theme that doesn't add the 'extra' rank still shows the Admin badge) and so the posting rank becomes the extra rank on forum themes that add it
2) the posting rank should remain as normal and any special rank (e.g. the Administrator rank) should be shown in the 'extra rank' location, meaning that any forum themes that don't include the extra rank will only show posting ranks.

Even after these changes the memberlist should still just show the special rank, if one applies.
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [Beta] Special and Normal Rank Images 0.1b4

Post by Anyasha »

404 error on download link. :(
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [Beta] Special and Normal Rank Images 0.1b4

Post by IBBoard »

Sorry, fixed it now. Looks like I ran up my FTP client but didn't actually upload the file!
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [Beta] Special and Normal Rank Images 0.1b4

Post by Anyasha »

If I set the constant to "true", posting ranks show up twice in viewtopic for users who do not have a second rank.
Kiss me, I'm Polish!
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: [Beta] Special and Normal Rank Images 0.1b4

Post by IBBoard »

Bugger - didn't think of that as it normally wiped the values with the new ones, but in the case of the normal rank it doesn't change anything! I'll fix that now and release a new version shortly :)

[edit] Fix now available - see first post.
Anyasha
Registered User
Posts: 704
Joined: Mon Aug 07, 2006 4:02 am
Name: Anyasha

Re: [Beta] Special and Normal Rank Images 0.1b5

Post by Anyasha »

Brilliant, thanks so much. :) This is one of my favorite mods!
Kiss me, I'm Polish!

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