PDA

View Full Version : $post[onlinestatus] to text


Winterworks
08-05-2009, 01:45 AM
I'd like it so when I write $post[onlinestatus] in postbit_legacy, it shows the text "Online", "Offline", "Invisible" instead of an image. So I can write: "Status: $post[onlinestatus]".

How can I do this?

ry215
08-05-2009, 01:54 AM
Edit template: postbit_onlinestatus, replace IMG code with text

Ex:
Find
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/user_offline.gif" alt="<phrase 1="$user[username]">$vbphrase[x_is_offline]</phrase>" border="0" />

Replace with:
Offline



Open template postbit(_legacy)
find:
$post[onlinestatus]

replace with:

Status: $post[onlinestatus]"