Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Support/Help => Topic started by: mccabedd on 13 10 2017, 14:04:13

Title: Online Status Tipper Variables
Post by: mccabedd on 13 10 2017, 14:04:13
Hi all,

I have the LastSeen, Tipper and Variables plugins installed, and have set up tipper to show:
Last Online: %lastseen_date% @ %lastseen_time%
Last Active: %lastseen_ago% ago

Now, If a user is online, it does not make sense to show Last Online or Last Active. As such, I am trying to create two variables where:
If Status = Online, dont show Last Online or Last Active
If Status = Away, dont show Last Online, but show Last Active

Have been playing around with !if(x,y,z) and other variables, but cannot get my head around it all.

Can anyone help..?
Title: Re: Online Status Tipper Variables
Post by: Robyer on 13 10 2017, 15:00:14
Try starting with this in Tipper's item:

?if(?strcmp(%Status%,Offline),YES,NO)

It will show YES or NO if user is Offline. (Note "Offline" is translated string, so it must fit with your langpack).
Also you have to check "Process Tipper variables first" (or something like that, I don't know real translation of that checkbox).

Then you can write something like:

Code: [Select]
?if(?strcmp(%Status%,Offline),Last Online: %lastseen_date% @ %lastseen_time%
Last Active: %lastseen_ago% ago,)
Title: Re: Online Status Tipper Variables [Solved]
Post by: mccabedd on 13 10 2017, 18:24:44
Thank you ever so much! :)

Took a little bit of trial and error, but managed to sort it all out.

Thanks again.