Changing on/off.gif to text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Static-xbox
    Senior Member
    • Dec 2001
    • 171
    • 3.8.x

    Changing on/off.gif to text

    Might be posting this in the wrong forum, and I apologize if I am!

    I feel kind of silly asking this, as I've done it several times with older versions (using 3.8 series currently), but I can't seem to figure out how to change the on/off.gif icons into text, as the template merely reads:

    Code:
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
    If someone could help me out, or at least give me a hint as to the required conditionals, it would be much appreciated!

    EDIT: To clarify, I'm looking to take the new post indicator images, and change them into one of two things:

    1.) Simple text that reads "New!" or stays blank.

    2.) I'm working on a new style, this style displays the data on the forumhome without the use of most of the columns, while introducing new boxes of data (CSS, not tables) underneath the forum name/description. I'm thinking of making the lastpostinfo box "light up" when a new post is made.

    This is the problem, though. I can't recall the conditionals required to make this happen. If someone can lend a hand there, it would be much appreciated!
    Last edited by Static-xbox; Sat 27 Jun '09, 11:37am.
    .
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74149

    #2
    Replace the image code above with:
    HTML Code:
    <if condition="$forum[statusicon] === 'new'">New!<else />&nbsp;</if>
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Static-xbox
      Senior Member
      • Dec 2001
      • 171
      • 3.8.x

      #3
      Excellent, thanks Wayne!
      .

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...