Author Topic: Online Status Tipper Variables  (Read 1952 times)

0 Members and 1 Guest are viewing this topic.

Offline mccabedd

  • Newbie
  • *
  • Posts: 2
Online Status Tipper Variables
« 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..?
 

Offline Robyer

Re: Online Status Tipper Variables
« Reply #1 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,)
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 
The following users thanked this post: mccabedd

Offline mccabedd

  • Newbie
  • *
  • Posts: 2
Re: Online Status Tipper Variables [Solved]
« Reply #2 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.