Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#26 2015-10-17 14:40:04

Nebula
Guest

Re: [Works] Auto online/offline world and player sigs for everyone

ZeldaXD wrote:

Could I have one?

here
user.php?id=zeldaxd

#27 2015-10-17 18:32:28

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Works] Auto online/offline world and player sigs for everyone

Xfrogman43 wrote:

._.
Once I asked him for it (in PM) it seems everybody notices this topic.

You're so special.

Offline

#28 2015-10-17 19:24:14

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Works] Auto online/offline world and player sigs for everyone

I can take one too. ign: doh

Offline

#29 2015-10-17 20:06:18

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: [Works] Auto online/offline world and player sigs for everyone

Hey, me too.
ign: benjaminsen

can I get one for my alt?
mrshoe

Offline

#30 2015-10-18 01:26:02

Onjit
Member
Joined: 2015-02-15
Posts: 9,707
Website

Re: [Works] Auto online/offline world and player sigs for everyone

Can I have one also?


:.|:;

Offline

#31 2015-10-18 01:36:52, last edited by !nb4 (2015-10-18 01:37:08)

!nb4
Formerly AYB
From: New In Package (NIP) Pole
Joined: 2015-07-18
Posts: 767

Re: [Works] Auto online/offline world and player sigs for everyone

Me too (AIDENYBAI)


ZCK0zcQ.gif

Offline

#32 2015-10-18 01:55:04

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Works] Auto online/offline world and player sigs for everyone

den3107 wrote:
Xfrogman43 wrote:

._.
Once I asked him for it (in PM) it seems everybody notices this topic.

You're so special.

Thanks. my mom tells me every day //forums.everybodyedits.com/img/smilies/smile


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by: (2)

#33 2015-10-18 17:15:45

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Works] Auto online/offline world and player sigs for everyone

Everyone who has replied so far I have made you a status indicator. To use it, simply enter in this url in img tags:

http://159.203.5.37/ee/shields/user.php?id=USERNAME

Replace USERNAME with the username that you've asked to have.

Offline

Wooted by: (2)

#34 2015-10-18 22:35:43

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Works] Auto online/offline world and player sigs for everyone

I assume it's not an option to automate the process?
Get a list of all EE players and just create one for everybody, leave it upto them to find this banned and use it?

Offline

#35 2015-10-18 23:09:54

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Works] Auto online/offline world and player sigs for everyone

den3107 wrote:

I assume it's not an option to automate the process?

It's fully automated on the backend (I just type one command), however making it non-automated and having users reply to this topic makes the service more well known as it organically bumps the topic.

Sometimes users who make their profiles private do not wish for others to find out if they are online or not. Unfortunately my naive method ignores that, and to get a user's profile programmically to determine whether or not it is invisible or not is somewhat complicated.

If however an admin/administrator says it's okay (as in to have statuses for all players on EE, regardless of their profile visibility), I'll definitely consider it.

Offline

#36 2015-10-19 13:53:59

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Works] Auto online/offline world and player sigs for everyone

Hexagon wrote:
den3107 wrote:

I assume it's not an option to automate the process?

It's fully automated on the backend (I just type one command), however making it non-automated and having users reply to this topic makes the service more well known as it organically bumps the topic.

Sometimes users who make their profiles private do not wish for others to find out if they are online or not. Unfortunately my naive method ignores that, and to get a user's profile programmically to determine whether or not it is invisible or not is somewhat complicated.

If however an admin/administrator says it's okay (as in to have statuses for all players on EE, regardless of their profile visibility), I'll definitely consider it.

Technically profile visibility has nothing to do with your online status.
I can still see them in rooms, so I still see they're online.
When you'd actually share the items they have and the worlds they make it's kinda against the idea of having your profile hidden.

but that's my interpretation, can be wrong.

In the meantime, I'm helping you bump a bit c:

Offline

#37 2015-10-20 01:30:55

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Works] Auto online/offline world and player sigs for everyone

den3107 wrote:

Technically profile visibility has nothing to do with your online status.
I can still see them in rooms, so I still see they're online.
When you'd actually share the items they have and the worlds they make it's kinda against the idea of having your profile hidden.

I agree, considering that anyone with a computer and an internet connection is able to query the online status of any user (it's public data.) I'll definitely reconsider. However, making a status image for every user in EE would be about 96GB so I'll see if I can make that more efficient.

Offline

#38 2015-10-20 01:47:45

The Party Animal
Formerly TPA2
Joined: 2015-07-10
Posts: 484

Re: [Works] Auto online/offline world and player sigs for everyone

i want one

Offline

#39 2015-10-20 02:19:46

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: [Works] Auto online/offline world and player sigs for everyone

I'm curious as to how you're handling these requests, hexagon.

Personally (with little experience as to the PlayerIO part) I'd just make a PHP script to take an input username and spit out the status image. No need to save a whole lot, but a cache would probably pay for itself. A simple array determines if the user consents to a status image.

But since I know you to be a capable programmer, what method are you using and what is/are the benefit(s)?

Offline

#40 2015-10-20 02:47:59

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Works] Auto online/offline world and player sigs for everyone

TPA2 wrote:

i want one

http://159.203.5.37/ee/shields/user.php?id=tpa2

Done!

hummerz5 wrote:

I'm curious as to how you're handling these requests, hexagon.

I have a bash script running a mono app in a tmux session which outputs the list of user ids who are online to a text file every 30 seconds. Then, everytime a status image is requested a php script runs a bash script which reads the user list which determines whether or not that username is in the user ids file (by converting the user name to a user id in the consent array.) If it isn't, it spits out a pre-cached offline image, and if they are online, it returns an online image. It's very hacked together and really needs some help.

Dynamically creating the user shield would be a great idea because I wouldn't have to use any disk space to cache them (assuming that they could be generated fast enough every time.) However, the shields that I am using are from http://shields.io and so installing the shield generator on my server requires a slightly complicated installation process https://github.com/badges/shields/blob/ … INSTALL.md . I'll look into that tomorrow, as it'll save a lot of work creating a new user every time someone wants a status.

hummerz5 wrote:

what method are you using and what is/are the benefit(s)?

Benefits is that it was fast to develop, and it works most of the time.

Offline

Wooted by:

#41 2015-10-20 03:28:38

Schlog
Member
Joined: 2015-07-21
Posts: 1,957

Re: [Works] Auto online/offline world and player sigs for everyone

I want it for no justifiable reason
Username is Ninja, nothing else. On EE at least.

Offline

#42 2015-10-20 04:20:37

!nb4
Formerly AYB
From: New In Package (NIP) Pole
Joined: 2015-07-18
Posts: 767

Re: [Works] Auto online/offline world and player sigs for everyone

can someone get me a picture of mine? (look for aidenybai)


ZCK0zcQ.gif

Offline

#43 2015-10-20 10:34:28

Br0k3n
Member
From: Serbia
Joined: 2015-04-04
Posts: 1,451

Re: [Works] Auto online/offline world and player sigs for everyone

AYB wrote:

can someone get me a picture of mine? (look for aidenybai)

user.php?id=aidenybai

[img]http://159.203.5.37/ee/shields/user.php?id=aidenybai[/img]

?type=online&name=br0k3n ?type=lastlogin&name=br0k3n ?type=loginstreak&name=br0k3n

76561198080960604.png

Offline

#44 2015-10-20 11:52:49, last edited by Hexagon (2015-10-20 11:53:04)

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Works] Auto online/offline world and player sigs for everyone

MLGNinja wrote:

I want it for no justifiable reason

[img]http://159.203.5.37/ee/shields/user.php?id=ninja[/img]

Offline

#45 2015-10-20 11:55:21, last edited by AlphaJon (2015-10-20 11:56:55)

AlphaJon
Member
From: Who knows
Joined: 2015-07-21
Posts: 1,297

Re: [Works] Auto online/offline world and player sigs for everyone

Hexagon wrote:

Dynamically creating the user shield would be a great idea because I wouldn't have to use any disk space to cache them

You may want to have a look at the Image processing and GD documentation for PHP.
This example should be able to meet your needs, you would need to have only 2 images (offline and online), and the script will put in the text. (maybe also make a check on username length so if someone has a 20-character long name you can have a template for him too without making the buttons for other people larger than needed)

EDIT: Do you plan on releasing the source for it? I'd be interested on getting a look at it //forums.everybodyedits.com/img/smilies/smile

Offline

Wooted by:

#46 2015-10-20 12:22:39, last edited by Hexagon (2015-10-20 12:23:23)

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Works] Auto online/offline world and player sigs for everyone

Jonathan1003 wrote:
Hexagon wrote:

Dynamically creating the user shield would be a great idea because I wouldn't have to use any disk space to cache them

You may want to have a look at the Image processing and GD documentation for PHP.
This example should be able to meet your needs, you would need to have only 2 images (offline and online), and the script will put in the text. (maybe also make a check on username length so if someone has a 20-character long name you can have a template for him too without making the buttons for other people larger than needed)

EDIT: Do you plan on releasing the source for it? I'd be interested on getting a look at it //forums.everybodyedits.com/img/smilies/smile

Just finished it up now : try at http://159.203.5.37/ee/shields/user_dev.php?id=USERNAME (dynamically generated authenticated users.) I cheated and just used the shields docker container https://github.com/badges/shields/blob/ … INSTALL.md

Offline

#47 2015-10-20 13:57:22

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Works] Auto online/offline world and player sigs for everyone

Shields appear completely broken now, it always says you first need to register for a shield.

Offline

#48 2015-10-20 14:18:11

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Works] Auto online/offline world and player sigs for everyone

den3107 wrote:

Shields appear completely broken now, it always says you first need to register for a shield.

Oops. Should be fixed now.

---

I just made it so that all shields are generated dynamically, and anyone can enter in their user name and get a shield instantly. You'll have to refresh the page once after it tells you to (by going to the shield irk and entering in your we username.) should be completely seamless.

Offline

Wooted by:

#49 2015-10-20 22:25:40, last edited by den3107 (2015-10-20 22:31:23)

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [Works] Auto online/offline world and player sigs for everyone

Bugreport:

Taking format http://159.203.5.37/ee/shields/user.php?id=[username], where obviously [username] is a placeholder.
Mind the capitals when I fill in the placeholder.

So when I fill in DEN3107, it tells me to refresh. so I did. A thousand times. God your script is greedy for refreshing.
So I decided to fill in den3107, shield appeared.
Hmmm... Let's try capitals again.
Nup, gotta refresh again.

Conclusion: it doesn't handle capitals correctly. It does create a shield, but for non-capitals, and it doesn't redirect me to the non-capital link or force the placeholder into lowercase.
(Filling in Den3107 also bugs the script).


Don't get me wrong, I love the script. Just helping you fix bugs that MIGHT sometime occur (better know them sooner or later).

As I said: possible fix: force the placeholder into lower case internally, so you don't have to redirect or anything.


P.S.: Suggestion (if possible). A shield that either shows the amount of players inside a specific room, or (preferably for me), shows whether or not SOMEBODY is in the room AT ALL. (something like "playing" vs. "empty")

Offline

#50 2015-10-20 22:33:14

Br0k3n
Member
From: Serbia
Joined: 2015-04-04
Posts: 1,451

Re: [Works] Auto online/offline world and player sigs for everyone

user.php?id=

I really wonder what ALT+0157 is doing!


?type=online&name=br0k3n ?type=lastlogin&name=br0k3n ?type=loginstreak&name=br0k3n

76561198080960604.png

Offline

Wooted by:
Nikitaw991459152694591939

Board footer

Powered by FluxBB

[ Started around 1713496509.6247 - Generated in 0.116 seconds, 10 queries executed - Memory usage: 1.81 MiB (Peak: 2.07 MiB) ]