Remove rank name when having a rank image

Support for PhpBB3.
Post here to get help with any phpBB3 related issue
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.
If not your topic may be ignored or locked!

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?

Re: Remove rank name when having a rank image

Post by Stoker »

Which style are you using?

Re: Remove rank name when having a rank image

Post by heredia21 »

Glossy black

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.

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 -->

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?

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?

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!

Re: Remove rank name when having a rank image

Post by heredia21 »

Pretty tricky huh

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 -->