Special and Normal Rank Images

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
JohnH
Registered User
Posts: 16
Joined: Wed Mar 18, 2009 5:19 am

Re: Special and Normal Rank Images

Post by JohnH »

Brilliant mod! Works a treat on the subsilver based style my forum uses.

Is there any way to get the special rank and the posting rank to apear in the Members list? (Posting rank directly below the special rank)

Thanks.
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: Special and Normal Rank Images

Post by IBBoard »

Curse phpBB and the times it doesn't notify me about new posts. Sorry for the delay.

The mod should be able to show both rank images on the memberlist without much effort as the changes have already been made to the code. Try the code in the dev thread to get it shown on the memberlist and for my explanation of why it doesn't do it normally. I haven't properly tested that code, though, so as always make sure you've got a backup of the file you change.
User avatar
Neuropass
Registered User
Posts: 1163
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: Special and Normal Rank Images

Post by Neuropass »

great mod. i have a problem though, just a minor thing but i would like to fix it.

Practically when you set the special rank, the name is not in the right position.. How do i fix it?? here the screen shot...

Image
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: Special and Normal Rank Images

Post by IBBoard »

Firstly, please don't PM me so soon after posting. I don't spend my entire day on the computer (in fact I'm normally on the computer every other evening) and I'll respond when I have a chance.

With regards your problem, based on the colouring and a guess at the position of where the user info appears to be it looks like you're not using one of the standard themes. If you're using a non-standard theme then the HTML that the instructions tell you to add may not be the correct HTML. Given the potentially huge number of templates, MODs only officially support Prosilver and SubSilver.

Generally, the HTML for the "extra rank" should be almost identical to the HTML for the standard rank, except for variable names. Try duplicating the HTML from your template for the normal ranks, but replacing the standard variables with the "EXTRA_..." variables.
User avatar
Neuropass
Registered User
Posts: 1163
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: Special and Normal Rank Images

Post by Neuropass »

i'm sorry about the PM, i didn't know it would have been such a big deal. otherwise i wouldn't have sent it. i think i've been polite with it. i sent it because it's not easy to get an answer in this forum with so many posts.

Sorry again if i bothered you.

If i'm asking support , means that i'm not a phpbb genius otherwise i wouldn't have asked it. I can't fully understand what you are talking about... I'm using BF_vista theme and it's a subsilver 2 based theme, so your mod should work with no problem at all i guess. but it isn't for me.

Could you please be more specific about what it could cause the problem?

thanks in advance for your time and sorry again.
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: Special and Normal Rank Images

Post by IBBoard »

The PM itself was polite enough, it was just the fact that you sent it so soon after posting that was a bit impolite.

I'll investigate the SubSilver theming, as I mainly work with ProSilver (or my own theme that uses a tidied up ProSilver base), but a link to your forums might help me see what is wrong and what the HTML should be.


[edit] It's a simple fix to the HTML (nothing much to do with phpBB). I just had a quick hunt for the theme you use and the HTML is slightly different to Subsilver.

The instructions in the MOD tell you to open styles/subsilver2/template/viewtopic_body.html and find:

Code: Select all

			<!-- IF postrow.RANK_IMG -->
				<tr>
					<td>{postrow.RANK_IMG}</td>
				</tr>
			<!-- ENDIF -->
but styles/BF_Vista_Static/template/viewtopic_body.html (the one I looked at) has:

Code: Select all

			<!-- IF postrow.RANK_IMG -->
				<tr>
					<td><center>{postrow.RANK_IMG}</center></td>
				</tr>
			<!-- ENDIF -->
That means you need to add <center> tags inside the new <td> tags (which is hellish ugly IMO and could be done better with CSS, but that's what the theme designer wanted to do). What you need to add ends up as:

Code: Select all

			<!-- IF postrow.EXTRA_RANK_TITLE -->
				<tr>
					<td class="postdetails"><center>{postrow.EXTRA_RANK_TITLE}</center></td>
				</tr>
			<!-- ENDIF -->
			<!-- IF postrow.EXTRA_RANK_IMG -->
				<tr>
					<td><center>{postrow.EXTRA_RANK_IMG}</center></td>
				</tr>
			<!-- ENDIF -->
User avatar
Neuropass
Registered User
Posts: 1163
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

Re: Special and Normal Rank Images

Post by Neuropass »

sorry again for the pm.. it's just because i needed to fix that thing quickly and i thought it was the only way to get an answer.. thanks it worked like a charm.. thanks a million again..
Bigbassfish
Registered User
Posts: 6
Joined: Mon Sep 24, 2007 8:21 am

Re: Special and Normal Rank Images

Post by Bigbassfish »

Hello there

I'm using version 3.0.4 of phbb3, and it isn't that much different than 3.0.x

I made the changes to the appropriate files as you say in the installation document (xml)
but I cannot see those changes when viewing in the Forum, and etc...

Where does the .xsl file go?

I think you need to add more information to your Mod. I think you need to add those extra codes or information to make this Mod work.

the website I'm working on is - http://www.wargamerguild.com/guild/

Ok, what did I miss for coding? or is it something else?
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: Special and Normal Rank Images

Post by IBBoard »

Bigbassfish: Have you cleared out your templates, as it says to do in the DIY instructions at the end? There are a couple of ways to do it (and ideally phpBB should be sensible enough to realise that its source file changed, but it isn't), but the easiest way is to go to the ACP, manage the template and tell it to clear the cache.

The MOD doesn't need any other code or changes beyond what is in the instructions. As long as you follow it as-is then it should work.

As for the .xsl file, you don't need to do anything with it. That file is there to convert the XML of the Install.xml file in to a readable page in a browser. All MODs will include the same file.
Bigbassfish
Registered User
Posts: 6
Joined: Mon Sep 24, 2007 8:21 am

Re: Special and Normal Rank Images

Post by Bigbassfish »

Well I cleared the cache, and then I also cleared the Template, and Theme, and Imagesets
and nothing still isn't working.

I added some rank images to the rank folder (directory), and it still didn't work.

I added these ranks in the manage ranks and it still doesn't work!

What am I missing? something in the code?

I left the website in the posting before your IBBoard...
in case you look at it.

thanks
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: Special and Normal Rank Images

Post by IBBoard »

Unfortunately I can't tell from the output of a forum whether there are any problems in your template or code that are stopping things showing.

For this MOD you should only need to clear the template cache (Styles > Templates and then click Refresh for the required template) as all it does is make two requests to get the user's rank instead of one (if they have a custom rank) and add an "extra rank" section to the template. Anyone such as Admins who then have their own special rank image should show both (their 'special' one and the one they get based on their post count).

Double-check your code to make sure you applied it correctly, refresh the template, make sure that you have ranks based on post count and if it still doesn't work then you'll have to post the relevant sections of your code here for me to check.
Bigbassfish
Registered User
Posts: 6
Joined: Mon Sep 24, 2007 8:21 am

Re: Special and Normal Rank Images

Post by Bigbassfish »

Hello there

I don't have ranks based on post counts!

It says on page 1 it doesn't say anything that you have to have this "mod" set for post counts.

I went through all of it again checking the code for this 'mod' and everything is correct.

It just isn't working at all!

So, how come you say you need a post count when it says on the 1st page nothing about it.

So, how do you make it work without it??

what code from what files do you need to see?

?

I decided to give multiple ranks mod a shot! thanks
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: Special and Normal Rank Images

Post by IBBoard »

"Normal" ranks are post count based ranks. "Special" ranks are specially assigned images for a group or individual, e.g. "Administrator" badges that are based on a special role.

If you don't have ranks based on post count (which is a core phpBB feature that you can remove all of the ranks from) but instead have a "members" group that has a "members" badge then I suspect the MOD is working exactly as expected. If that is your situation then even with this MOD you will only ever see one rank because the "Special" rank is the group rank and the "normal" rank doesn't exist.

The Multi-Race Rank Themes MOD isn't required to use this MOD, but that is the time that people are most likely to want to use it so that people with special ranks get to choose their theme as well. That's not to say that you need it or shouldn't use it without the other MOD, just that that's why I wrote it originally.
youngjediknight
Registered User
Posts: 385
Joined: Wed Apr 22, 2009 2:58 pm

Re: Special and Normal Rank Images

Post by youngjediknight »

When I try to use this with theRank Progress Bar Mod, the progress bar no longer shows up for regular users. Users with special ranks however do get the progress bar. Also, in the memberlist, only regular ranks show up for special ranked members while normal members don't get a rank at all.

Any help greatly appreciated.
User avatar
IBBoard
Registered User
Posts: 543
Joined: Wed May 25, 2005 9:02 pm
Location: Worcestershire, UK

Re: Special and Normal Rank Images

Post by IBBoard »

I can't guarantee that this mod will be compatible with other mods, but I've just had a quick look at the other mod for you.

The other mod doesn't alter the members list, so it sounds like your mod hasn't been applied properly. Either that or there is something else that is affecting the mod and stopping it working properly because it changes the same areas. I don't know what other mods you may have installed, though.

As for the progress bars not showing up, you'll need to make sure that you merge the two sets of template changes correctly. The most obvious cause of what you describe is that the additions from the other mod have been caught within a section of template from this mod that only shows up when someone has an extra rank.


[edit] I've just had a quick look, and basically the code from the other mod should be much further up the page where it is building a cache of the users. If it is up there then a) it'll make it more efficient when a user has multiple posts on a page and b) it'll work with my mod. I'll give it a quick tweak and post some suggestions for the author (it may only be in development, but it looks good now you've posted me to it! Not too difficult or complex, but still interesting)
Last edited by IBBoard on Wed Jun 03, 2009 6:51 pm, edited 1 time in total.

Return to “[3.0.x] MOD Database Releases”