{L_RANK} - viewtopic_body

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
junks2001
Registered User
Posts: 16
Joined: Sun Sep 12, 2004 8:04 am

{L_RANK} - viewtopic_body

Post by junks2001 »

I'm tring to get the word Rank: next to the rank level.

:D <-- Avatar
User Name

:?: :?: :?: <-- Rank image

Rank: Admin
Posts: 100
Joined: 10-28-2008
Location: Arizona

This is the code I placed:

Code: Select all

<!-- IF postrow.RANK_TITLE --><dd><strong>{L_RANK}:</strong>{postrow.RANK_TITLE}</dd><!-- ENDIF -->
It displays as:
{RANK}: Admin
Posts: 100
Joined: 10-28-2008
Location: Arizona

What am I doing wrong?

TIA
Last edited by RMcGirr83 on Sun Jul 13, 2008 3:17 pm, edited 1 time in total.
Reason: Topic icon changed

GTunney
Registered User
Posts: 125
Joined: Thu May 17, 2007 4:53 pm

Re: {L_RANK} - viewtopic_body

Post by GTunney »

instead of adding rank into the language file just edit the viewtopic.html file and add the work Rank:

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51933
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: {L_RANK} - viewtopic_body

Post by Brf »

try

Code: Select all

{L_SORT_RANK}
or else you would need to add

Code: Select all

'RANK' => 'Rank',
to your language/en/common.php

junks2001
Registered User
Posts: 16
Joined: Sun Sep 12, 2004 8:04 am

Re: {L_RANK} - viewtopic_body

Post by junks2001 »

I'm sorry but could you explain a little bit more clearly please, I'm not that fluent in php.


Where would I put Rank into the viewtopic.php file?

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51933
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: {L_RANK} - viewtopic_body

Post by Brf »

Who said anything about viewtopic.php?

junks2001
Registered User
Posts: 16
Joined: Sun Sep 12, 2004 8:04 am

Re: {L_RANK} - viewtopic_body

Post by junks2001 »

Yeah ignor that other post.

BRF!! :D

Thanks you're awesome!!! Works great! :mrgreen:

d_beezy
Registered User
Posts: 2
Joined: Fri Feb 25, 2011 9:16 am

Re: {L_RANK} - viewtopic_body

Post by d_beezy »

Hi, I would like to change the word "Rank" to something else like "Stage" or "Class".

I understand from memberlist_body.html:
<a href="{U_SORT_RANK}">{L_RANK}</a></span>
L_RANK pulls the word "Rank" from somewhere else... but where?

Locked

Return to “[3.0.x] Support Forum”