Remove rank name when having a rank image

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Remove rank name when having a rank image

Post by heredia21 »

How can I remove the rank name when I have an image for that rank?
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3558
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Remove rank name when having a rank image

Post by Stoker »

Which style are you using?
Board rules! No PM support
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Remove rank name when having a rank image

Post by heredia21 »

Glossy black
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Remove rank name when having a rank image

Post by heredia21 »

Heres the image how can I take off the text and just leave the image.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 863
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: Remove rank name when having a rank image

Post by Steve »

try, this ( Back up the viewtopic_body.html )

open styles/GlossyBlack/template/viewtpoic_body.html
find:

Code: Select all

<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
Replace with:

Code: Select all

<!-- IF postrow.RANK_IMG --><dd>{postrow.RANK_IMG}</dd><!-- ENDIF -->
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Remove rank name when having a rank image

Post by heredia21 »

Ok I did that, it did remove the name. What about If i do not have the image, how can I get it to have a rank name?
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Remove rank name when having a rank image

Post by heredia21 »

Is that possible? Have a rank image with no text. AND if there is no rank image to show the rank name as a text?
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Remove rank name when having a rank image

Post by cisco007 »

i am not to good at php but i was trying using statements and could not get it to work, but maybe Steve or Stoker know how, wait I am sure they will know!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Remove rank name when having a rank image

Post by heredia21 »

Pretty tricky huh
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

Re: Remove rank name when having a rank image

Post by Fire-Fox »

This here is from my viewtopic_body

Style: SE Pro

Code: Select all

<!-- IF postrow.RANK_IMG --><br /><dd>{postrow.RANK_IMG}</dd><!-- ENDIF -->
Locked