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.
Could I have one?
here
._.
Once I asked him for it (in PM) it seems everybody notices this topic.
You're so special.
Offline
I can take one too. ign: doh
Offline
Offline
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
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
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
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
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
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
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
i want one
Offline
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
i want one
http://159.203.5.37/ee/shields/user.php?id=tpa2
Done!
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.
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
I want it for no justifiable reason
Username is Ninja, nothing else. On EE at least.
Offline
Offline
Offline
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
Offline
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
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
Shields appear completely broken now, it always says you first need to register for a shield.
Offline
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
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
Offline
[ Started around 1732304510.322 - Generated in 0.112 seconds, 12 queries executed - Memory usage: 1.81 MiB (Peak: 2.08 MiB) ]