Page 1 of 2

Remove rank name when having a rank image

Posted: 14 Apr 2010, 23:49
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

Posted: 14 Apr 2010, 23:52
by Stoker
Which style are you using?

Re: Remove rank name when having a rank image

Posted: 14 Apr 2010, 23:59
by heredia21
Glossy black

Re: Remove rank name when having a rank image

Posted: 15 Apr 2010, 00:01
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

Posted: 15 Apr 2010, 00:20
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

Posted: 15 Apr 2010, 00:27
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

Posted: 15 Apr 2010, 01:52
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

Posted: 15 Apr 2010, 02:27
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

Posted: 15 Apr 2010, 04:12
by heredia21
Pretty tricky huh

Re: Remove rank name when having a rank image

Posted: 15 Apr 2010, 10:37
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 -->