Author Topic: PS status script [LEGACY]  (Read 4727 times)

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #15 on: July 17, 2010, 12:51:22 pm »
Updated script to use new server.

Edit: Fixed bug in PHP example on the website ^^'

Edit2: I have added a more complex example.
« Last Edit: September 04, 2010, 10:02:48 am by derula »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #16 on: June 13, 2011, 01:16:03 pm »
Just added another feature to the script.

You can now use an URL like,

Code: [Select]
http://psstatus.uglyhorst.de/MyForumName:These,Are,My,Characters.png
and it will show only "MyForumName is currently online." if one of your characters is, or "~ offline" if all are offline.

For example,

Code: [Select]
http://psstatus.uglyhorst.de/derula:Jamona,Togh,Aburan,Jana.png
will only show my nickname, displaying it as online, if either of the specified characters is logged in, or offline otherwise:



If you only specify an alias and a single character name, it works as well.

I also fixed a few bugs that would occur when the script fails to determine the online status of people.

(Btw., my offer to replace anyone's text online description with an image is still there, and extended to multiple characters. That was also the point of this update)
« Last Edit: June 15, 2011, 02:44:29 pm by derula »

BoevenF

  • Hydlaa Notable
  • *
  • Posts: 543
  • Amdeneir citizen, mostly travelling
    • View Profile
    • The Doømed Ones SVG
Re: PS status script
« Reply #17 on: June 13, 2011, 04:52:45 pm »
 :thumbup:

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: PS status script
« Reply #18 on: June 14, 2011, 02:03:06 am »
Regarding your example: I suppose it is recommendable to omit any spaces?

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #19 on: June 15, 2011, 02:29:35 pm »
Regarding your example: I suppose it is recommendable to omit any spaces?

Depends on your software I guess. Works with spaces for me; the code for the example contained spaces, I guess SMF auto-escapes them. Firefox also auto-escapes spaces.

Main reason for me to use spaces was to make it more readable. So yeah, if unsure, remove the spaces.

Edit: Just saw that apparently SMF doesn't auto-escape them. Works for me nonetheless, but I guess you're right. *edits post*
« Last Edit: June 15, 2011, 02:44:02 pm by derula »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #20 on: November 22, 2011, 01:52:21 pm »
The script had a small outage today and maybe parts of yesterday because I was changing hosts. It's fixed now... hopefully. It should work correctly again in about 10 minutes. Please tell me if there's still problems after that!

BoevenF

  • Hydlaa Notable
  • *
  • Posts: 543
  • Amdeneir citizen, mostly travelling
    • View Profile
    • The Doømed Ones SVG
Re: PS status script
« Reply #21 on: November 22, 2011, 06:41:18 pm »
Thanks Derula, it's ok so far :P

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #22 on: December 08, 2013, 10:59:38 am »
Update: 'cause my webhost apparently decided to block outgoing UDP traffic now without informing me, my status script stopped working like a month ago (possibly longer). I disabled the enhanced server check features now (nobody was using them anyway) and the script should work again.

Sorry for the inconvenience. Feel free to contact me if things break again.

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #23 on: November 02, 2014, 10:36:29 am »
Update: A little over a week ago, my webspace went through a migration, and the status script broke as a consequence. I didn't have much time to deal with it, but it is fixed now.

bilbous

  • Guest
Re: PS status script
« Reply #24 on: November 02, 2014, 11:44:19 am »
Thank you for your efforts, now and in the past.

Illysia

  • Forum Addict
  • *
  • Posts: 2774
    • View Profile
Re: PS status script
« Reply #25 on: November 02, 2014, 03:25:38 pm »
Thank you derula. \\o//

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #26 on: November 26, 2014, 03:57:39 pm »
You're welcome :)

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #27 on: November 29, 2014, 12:41:34 pm »
Added an improved JSON API, adopting a proposal by Neeno. Added short descriptions for the functions I've implemented to far, see the new section "Advanced JSON API" at http://stuff.incertitu.de/planeshift/status%20script. New functions can be implemented easily, so if someone has a suggestion, just say a word, and maybe I'll do that!

Illysia

  • Forum Addict
  • *
  • Posts: 2774
    • View Profile
Re: PS status script
« Reply #28 on: April 15, 2017, 01:45:06 am »
Hi Derula o/. If you happen to see this, the status script says it can't connect to the database now.

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #29 on: April 15, 2017, 05:34:10 pm »
Illy o/

That's strange... well, there was a server migration a few weeks ago, but it worked fine after that... I'll have a look, thanks for letting me know.

Edit: I see the problem. There's actually two different versions live right now... one works and one doesn't. I wanted to make the old version redirect to the new version at some point, but never got around to doing it.

This is broken:
Code: [Select]
http://psstatus.uglyhorst.de/Illysia:Illysia,Danao,Zandral.png

This works:
Code: [Select]
http://ps.incertitu.de/Illysia:Illysia,Danao,Zandral.png

I'll fix the old version when I get around to it... maybe today / tomorrow, or on Monday... in the meantime, you can use the new link.

Sorry for the inconvenience - I checked the new link after the server change but didn't think the old one could be broken if the new one isn't.

Edit 2: Fixed already :P that was faster than I thought it would be.
« Last Edit: April 15, 2017, 05:47:05 pm by derula »