PDA

View Full Version : How to change postbit_onlinestatus? (Solved!)


kNeeLy
09-05-2011, 07:04 PM
Hi all...

Well..I finally upgraded to 4.1.5. My question is, can anyone re-write this code from the 3.8 series for postbit_onlinestatus to work on 4.1.5?

I already have installed the mod that makes the postbit line up to look more like the 3 series...but I would like to get rid of the little green dot...lol..and have it like this..

https://vborg.vbsupport.ru/external/2011/09/74.jpg
^^Online
https://vborg.vbsupport.ru/external/2011/09/75.jpg
^^Offline

HMBeaty
09-05-2011, 07:21 PM
Replace the contents of your postbit_onlinestatus template with:
<vb:if condition="$onlinestatus==0">{vb:rawphrase x_is_offline, {vb:raw user.username}}</vb:if>
<vb:if condition="$onlinestatus==1">{vb:rawphrase x_is_online_now, {vb:raw user.username}}</vb:if>
<vb:if condition="$onlinestatus==2">{vb:rawphrase x_is_invisible, {vb:raw user.username}}</vb:if>

kNeeLy
09-05-2011, 11:11 PM
Replace the contents of your postbit_onlinestatus template with:
<vb:if condition="$onlinestatus==0">{vb:rawphrase x_is_offline, {vb:raw user.username}}</vb:if>
<vb:if condition="$onlinestatus==1">{vb:rawphrase x_is_online_now, {vb:raw user.username}}</vb:if>
<vb:if condition="$onlinestatus==2">{vb:rawphrase x_is_invisible, {vb:raw user.username}}</vb:if>

Worked like a charm..now...how can I add bold and color...?

HMBeaty
09-05-2011, 11:42 PM
Use something like:
<span style="font-weight: bold;color:blue">
</span>

kNeeLy
09-06-2011, 12:05 AM
Use something like:
<span style="font-weight: bold;color:blue">
</span>

Thank you..no dice tho....(of course, I tried it at the beginning and at the end of the code, would that be correct?)

If I show you the 3.8 code, will that help at all?

--------------- Added 1315275196 at 1315275196 ---------------

Here's the 3.8 series code..

<span class="smallfont">
<if condition="$onlinestatus==0">
<phrase 1="$user[username]">$vbphrase[x_is_offline]</phrase>
</if>

<if condition="$onlinestatus==1">
<font color="#FF0000"><strong><phrase 1="$user[username]">$vbphrase[x_is_online_now]</phrase></strong></font>
</if>

<if condition="$onlinestatus==2">
<phrase 1="$user[username]">$vbphrase[x_is_invisible]</phrase>
</if>
</span>

kNeeLy
09-07-2011, 12:05 PM
bu-ump.. :-)

HMBeaty
09-07-2011, 12:09 PM
You did it like this?
<vb:if condition="$onlinestatus==0"><span style="font-weight: bold;color:blue">{vb:rawphrase x_is_offline, {vb:raw user.username}}</span></vb:if>

kNeeLy
09-07-2011, 12:24 PM
You did it like this?
<vb:if condition="$onlinestatus==0"><span style="font-weight: bold;color:blue">{vb:rawphrase x_is_offline, {vb:raw user.username}}</span></vb:if>

No, I was trying to relate the 3 code to the 4. It only has to highlight the "online" status. The rest is regular text.

I'll give it a shot..

--------------- Added 1315408018 at 1315408018 ---------------

I ended with this...and it worked...

<vb:if condition="$onlinestatus==0">{vb:rawphrase x_is_offline, {vb:raw user.username}}</vb:if>

<vb:if condition="$onlinestatus==1"><span style="font-weight: bold;color:blue">{vb:rawphrase x_is_online_now, {vb:raw user.username}}</span></vb:if>
<vb:if condition="$onlinestatus==2">{vb:rawphrase x_is_invisible, {vb:raw user.username}}</vb:if>