D3m0n h311ra153
11-19-2014, 09:15 PM
Like the Title suggests.
I have added it so far into the memberlist template like so:-
<vb:if condition="$onlinestatus==0">
<img class="inlineimg onlinestatus" src="{vb:stylevar imgdir_statusicon}/user-offline_memberlist.png" alt="{vb:rawphrase x_is_offline, {vb:raw userinfo.username}}" border="0" />
<vb:elseif condition="$onlinestatus==1" />
<img class="inlineimg onlinestatus" src="{vb:stylevar imgdir_statusicon}/user-online_memberlist.png" alt="{vb:rawphrase x_is_online_now, {vb:raw userinfo.username}}" border="0" />
<vb:elseif condition="$onlinestatus==2" />
<img class="inlineimg onlinestatus" src="{vb:stylevar imgdir_statusicon}/user-invisible_memberlist.png" alt="{vb:rawphrase x_is_invisible, {vb:raw userinfo.username}}" border="0" />
</vb:if>
The "user-offline/online/invisible_memberlist.png" is a custom image to fit the size of the username height, so ignore the name change from the original.
Now, no matter what I do, the code only outputs the very first vb:if, and from what I have so far gathered, the $onlinestatus variable is not global and cannot be used in the memberlist template.
Is there a way of making this available, or a hook to pull the correct info, I am at my wits end to get this to work.
Remember, I am not a coder ;)
I have added it so far into the memberlist template like so:-
<vb:if condition="$onlinestatus==0">
<img class="inlineimg onlinestatus" src="{vb:stylevar imgdir_statusicon}/user-offline_memberlist.png" alt="{vb:rawphrase x_is_offline, {vb:raw userinfo.username}}" border="0" />
<vb:elseif condition="$onlinestatus==1" />
<img class="inlineimg onlinestatus" src="{vb:stylevar imgdir_statusicon}/user-online_memberlist.png" alt="{vb:rawphrase x_is_online_now, {vb:raw userinfo.username}}" border="0" />
<vb:elseif condition="$onlinestatus==2" />
<img class="inlineimg onlinestatus" src="{vb:stylevar imgdir_statusicon}/user-invisible_memberlist.png" alt="{vb:rawphrase x_is_invisible, {vb:raw userinfo.username}}" border="0" />
</vb:if>
The "user-offline/online/invisible_memberlist.png" is a custom image to fit the size of the username height, so ignore the name change from the original.
Now, no matter what I do, the code only outputs the very first vb:if, and from what I have so far gathered, the $onlinestatus variable is not global and cannot be used in the memberlist template.
Is there a way of making this available, or a hook to pull the correct info, I am at my wits end to get this to work.
Remember, I am not a coder ;)