[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!
Suggested Hosts
N3xtgen
Registered User
Posts: 65
Joined: Thu Jan 31, 2008 8:01 pm

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

Post by N3xtgen »

How do i enable it?

Thanks
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.1b5

Post by IBBoard »

There shouldn't be any enabling. Just install it and give someone a special rank and they'll display their special rank and their post count rank.
Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

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

Post by Richazey »

hi works fine on my board, great mod
will you be able to design it so both sets of ranks display on the members list?
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.1b5

Post by IBBoard »

Thanks, glad it's working okay.

In terms of the members list, it should just be a case of doing the same thing as the topic page (make two function calls, one for "default" and one for "extra" and then put them in the template).
Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

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

Post by Richazey »

I still a newbie at mods but if you did it, it would be one cool mod, don't know why more people not tried it, ive not had any problems on my live boards so when will it get official release?
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.1b5

Post by IBBoard »

The main reason there's not been an official release because people haven't said it works okay and the instructions are correct. I know the code works fine, but it's normally the instructions that are the problem (making sure they're readable, understandable, and that I've not missed something!)

I'll see if I can get a final release submitted this weekend. Then it'll only be two or three or more weeks until it's approved as v1.0!
Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

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

Post by Richazey »

Well the installation was one of the easiest ive done, hope you get the release.

Any chance of you helpping me add the extra column then it would be mind blowing :D
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.1b5

Post by IBBoard »

The only reason I didn't put it in there at first is that I thought it might be a bit much in most themes to have two rank images.

In terms of how to do it, it looks like it's already possible as the function that provides the template data has already been modified by the existing instructions. All you should need to do is find the following in memberlist_body.html:

Code: Select all

<!-- IF memberrow.RANK_IMG --><span class="rank-img">{memberrow.RANK_IMG}</span><!-- ELSE --><span class="rank-img">{memberrow.RANK_TITLE}</span><!-- ENDIF -->
and add after it:

Code: Select all

<!-- IF memberrow.EXTRA_RANK_IMG or memberrow.EXTRA_RANK_TITLE --><br /><!-- IF memberrow.EXTRA_RANK_IMG --><span class="rank-img">{memberrow.EXTRA_RANK_IMG}</span><!-- ELSE --><span class="rank-img">{memberrow.EXTRA_RANK_TITLE}</span><!-- ENDIF --><!-- ENDIF -->
Now, if only I could find an easy way to have that functionality there but disabled by default...
Last edited by IBBoard on Sun Nov 09, 2008 10:34 am, edited 1 time in total.
Richazey
Registered User
Posts: 823
Joined: Mon Oct 27, 2008 9:03 pm

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

Post by Richazey »

added the code and got

Code: Select all

Parse error: syntax error, unexpected T_VARIABLE in /home/parkstee/public_html/forum/includes/template.php(175) : eval()'d code on line 109
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.1b5

Post by IBBoard »

A nice informative error message then!

Try it with a lower-case "or" instead of "OR" in the "IF" tag. From the looks of some other template code it might have interpreted "OR" as "$or" and tried doing "if ($extra_rank_image $or $extra_rank_text)" instead of "if ($extra_rank_image || $extra_rank_text)"
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.1b5

Post by IBBoard »

The mod has now been released as Special and Normal Rank Images v1.0.1, in case anyone was following this thread and didn't want to install until it was final.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

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

Post by darkonia »

it runs perfect by me, thx for this mod
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
farazhamzaa
Registered User
Posts: 128
Joined: Tue Mar 24, 2009 7:37 pm

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

Post by farazhamzaa »

i have instaled this mod

but i didnt found any change in admin panel

can som1 tell me from where i can chose normal rank and special rank option in admincpenl??

or how can i assignt rank to otheres?
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.1b5

Post by IBBoard »

As I alluded to in this post, there is nothing in the ACP because there is nothing to admin (hence why the mod doesn't include any changes to the ACP code). All this mod does is shows the normal rank image and the "special" (e.g. administrator) rank image for anyone who has a special rank.

Also, I'd recommend actually using the approved 1.0.1 release that I linked to two posts earlier.
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.1b5

Post by IBBoard »

Version 1.1.0 has now been released. This version is the first of what will go on to be v1.2.0 once officially released to the MOD DB.

Changes in this version compared to the latest stable version:
  • Added an extra config value to determine whether to show only normal ranks (not special ranks) on members list. Also fixes a previous bug of normal members not getting ranks on the members list with some configurations
  • Added both ranks to viewing PMs (which was missed from the first release, but no-one noticed or complained)
  • Altered the documentation for the new method that is created to make User Rank Progression Bar integration easier

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