Site_Feedback

Topic   Auto-Populate Usernames?

Scots
GameTZ Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally
19-May-2017(#1)
I did a search to see if this has been asked before, but couldn't find anything - let me know if I missed it...

The tagging/mentions system is fantastic. My question is - is there any doable way to implement a system like many sites have, where when you type @ and start a username, it auto-fills the username, or if there are multiple, it gives you them to choose from?

A ton of usernames have numbers, personalized spellings, and other stuff that's hard to remember - so to mention somebody I find myself opening a new tab, searching users, and copy/pasting.

Not an absolutely critical feature, but one that would be super slick to have if it's doable. Just a Friday thought. yes
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
20-May-2017(#2)
This seems hard, but I searched and found some stuff I might be able to just plug in and get this working. I will look into it this week and see...
Scots
GameTZ Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally
20-May-2017(#3)
yes

Cool, thanks. Again not an absolutely vital feature, but one I think would go a long way in terms of the social/community feel.
SirConnery
GameTZ Subscriber 1000 Trade Quintuple Gold Good Trader Secret Santa
20-May-2017(#4)
I wonder if this is doable in a browser plugin that has script that pulls names from your database? Might be able to do the same for items or similar.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
20-May-2017(#5)
Here are 3 that I think I could plugin here fairly easily (I use jQuery).

https://github.com/ichord/At.js demo: http://ichord.github.io/At.js/ (also has a :emoticon thing)
https://github.com/yuku-t/jquery-textcomplete
http://podio.github.io/jquery-mentions-input/
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
* 23-May-2017(#6)
@Scots OK, it's added now. Enjoy! And, thanks for the suggestion. I think people will like this.

It was alarmingly easy to do, so I assume something is wrong with it.

I'm going to see if I can add emoticons now too...
Scots
GameTZ Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally
23-May-2017(#7)
@bill That's fantastic!!! Thanks for doing it. I think people will love it too.

I'll use it today and let you know if I find any bugs.
Scots
GameTZ Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally
23-May-2017(#8)
And emoticons would be cool too. How would that work? Is there like a trigger key, similar to the @ for usernames, where you hit it and the emoticons pop up and you can click on them?
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
23-May-2017(#9)
I just added the emoticon completion thing. It's imperfect, but most of the newer (done by ENIX) ones start with * so, when you type * it goes into completion like usernames.

There are older icons that don't fit or work. I think I can convert some over to the new style, but probably not all of them. E.g. smiles lik e:-) don't start with *, so... but, better than nothing, I think.
Scott
GameTZ Subscriber Quadruple Gold Good Trader Global Trader - willing to trade internationally Has Written 1 Review
23-May-2017(#10)
This is great! I've wanted this but I thought it had already been requested and wasn't easily do-able. Thanks Bill!

Scots
GameTZ Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally
23-May-2017(#11)
Fantastic.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
23-May-2017(#12)
I really didn't think it was doable either, but then I found something I could just plugin.
tonymack21
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally Has Written 3 Reviews Secret Santa
23-May-2017(#13)
oh wow this a truly awesome feature, I think this will be infinitely useful, I just did it a minute ago and I was like what is happening, this is awesome. I said there is probably a topic in site feedback about this, and so there was. its also amazing for the icons.

bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
23-May-2017(#14)
lol


@Dashey - I turned it on for mobile website too, seems to work fine.
Dashey
GameTZ Subscriber 350 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally Has Written 1 Review Secret Santa
23-May-2017(#15)
@bill test computer

Dashey
GameTZ Subscriber 350 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally Has Written 1 Review Secret Santa
23-May-2017(#16)
@bill mobile

Works great

Jeff
GameTZ Subscriber 450 Trade Quintuple Gold Good Trader Gold Global Trader (7) Secret Santa
23-May-2017(#17)
@jeff

Jeff
GameTZ Subscriber 450 Trade Quintuple Gold Good Trader Gold Global Trader (7) Secret Santa
23-May-2017(#18)
Is there a way to add this to the User Search bar on top?

John
GameTZ Gold Subscriber GameTZ Full Moderator 400 Trade Quintuple Gold Good Trader Gold Global Trader (13) Secret Santa
* 23-May-2017(#19)
So, not a huge thing -- but when I go to do a thumbsup, I type *yes* , but it doesn't auto-fill. Can we get the thumbs added too?
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
23-May-2017(#20)
Most of the older icons aren't in this yet. I'm working on bringing them in... it's kind of tricky.
Scots
GameTZ Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally
23-May-2017(#21)
I hadn't even thought of icons and emoticons when I made the original post, but those will be cool as well.

I think the usernames portion alone encourages mentioning and interaction, and everyone likes more engagement among users. yes
Scots
GameTZ Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally
23-May-2017(#22)
Side note, you could even do it for concepts as well! Like, if I type "What do you guys...", it could auto-complete with "think about tipping?"
Scott
GameTZ Subscriber Quadruple Gold Good Trader Global Trader - willing to trade internationally Has Written 1 Review
23-May-2017(#23)
laughing out loud

SirConnery
GameTZ Subscriber 1000 Trade Quintuple Gold Good Trader Secret Santa
23-May-2017(#24)
Daym that's nifty. Sean Connery
Foxhack
GameTZ Subscriber 300 Trade Quintuple Gold Good Trader Gold Global Trader (7) This user is on the site NOW (4 minutes ago)
23-May-2017(#25)
I'm having some issues with this new emoticon thingy. I use the asterisks to bold stuff, so I'm in the middle of typing and the box with the icons pops up. It's a bit irritiating. Other than that this is working pretty well.
Scots
GameTZ Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally
23-May-2017(#26)
Foxhack wrote:
> I'm having some issues with this new emoticon thingy. I use the asterisks to bold
> stuff, so I'm in the middle of typing and the box with the icons pops up. It's a
> bit irritiating. Other than that this is working pretty well.

Since bolding something is 2 asterisks, it goes away when you hit the second one at least, right?
Foxhack
GameTZ Subscriber 300 Trade Quintuple Gold Good Trader Gold Global Trader (7) This user is on the site NOW (4 minutes ago)
23-May-2017(#27)
Scots wrote:
> Foxhack wrote:
>> I'm having some issues with this new emoticon thingy. I use the asterisks to bold
>> stuff, so I'm in the middle of typing and the box with the icons pops up. It's
> a
>> bit irritiating. Other than that this is working pretty well.
>
> Since bolding something is 2 asterisks, it goes away when you hit the second
> one at least, right?

Yep, seems so. But it's just a bit... distracting, you know?

bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
* 23-May-2017(#28)
You could switch to BBCode style bolding as a workaround perhaps...

[b]bold[/b] = bold
Shadowrunner
GameTZ Subscriber 350 Trade Quintuple Gold Good Trader Secret Santa
23-May-2017(#29)
@Bill Thanks for all you do Beer
DiamondDave
GameTZ Subscriber 350 Trade Quintuple Gold Good Trader Has Written 4 Reviews
23-May-2017(#30)
I like the icon integration, hot touch. Bandai Super Vision 8000 I'M FINDING THINGS I DIDN'T KNOW EXISTED~
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
* 24-May-2017(#31)
OK, I think I have all the emoticons in the new * autocomplete now too. So, yes is in there as well as frown etc. Note that for most of the smileys I have they keyed to a work like *grin* vs. the punctuation like :-) I had to kind of standardize them as starting with a * to make them work with this autocomplete system. The old punctuation-based icons should still work too.

I did the conversion of about 90 icons to the new system by-hand, so let me know if any of them seem wrong.
Grenadier
GameTZ Subscriber GameTZ Full Moderator Triple Gold Good Trader Has Written 3 Reviews
24-May-2017(#32)
Is there a way to get it scrolling, so it can show more than 5 emoticons when you first hit "*"? I'm thinking in terms of being able to scroll through a long list and find one when you don't know what you're looking for.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
24-May-2017(#33)
Here are the docs for the add-on: https://github.com/ichord/At.js/wiki
I can bump the number shown (currently 5), but I assume increasing that can cause issues and it's still not scrolling.
Jeff
GameTZ Subscriber 450 Trade Quintuple Gold Good Trader Gold Global Trader (7) Secret Santa
24-May-2017(#34)
@bill is there anyway to implement the same username list to work with the search bar for Users on the top right of the page?

bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
* 24-May-2017(#35)
Oh, sorry for not responding to you before.

The New Layout already does that and will also do it for item searches. I've been hesitant to bring that sort of thing into the old layout since I would tend to assume the people using the old layout don't like change. But, it is possible... and clearly, I added this @ * autocomplete stuff to the old layout too.

I could give it a try and see how it goes.

Generally speaking, I'd be willing to do some upgrades for the old layout, give it some love, etc. Since about half the site still uses it. But, like I said, maybe those are the people that would prefer nothing be changed.
Jeff
GameTZ Subscriber 450 Trade Quintuple Gold Good Trader Gold Global Trader (7) Secret Santa
24-May-2017(#36)
I think it just is convenience... being able to type someones name and itll show the correct one... I love that. Sometimes I forget a username with numbers in it, etc.

tonymack21
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally Has Written 3 Reviews Secret Santa
24-May-2017(#37)
Jeff wrote:
> I think it just is convenience... being able to type someones name and itll show
> the correct one... I love that. Sometimes I forget a username with numbers in it,
> etc.
>
>

ya def.



tonymack21
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally Has Written 3 Reviews Secret Santa
24-May-2017(#38)
ya the @ * stuff is working great in the old layout (old layout is love) and while ill admit I love that it hasn't changed too much except for the implementation of great features while its core look and function stay the same, the auto for the user field and search I don't think would be a bad thing and could be pretty cool.

perhaps other old layout lovers can chime in as well. I usually know what im searching for so if others wouldn't like the change im good.

bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
24-May-2017(#39)
I can turn it off for people that don't like it too, so I'll look into it. I can't just copy/paste the code from the new layout as it's using something from the framework it uses. But, I think there are other similar options out there too.
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
25-May-2017(#40)
OK, I put something in for the old layout's user search box that should fill in known usernames just like @ .

I'm going to look into doing something similar for item searches (like new layout).
tonymack21
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally Has Written 3 Reviews Secret Santa
25-May-2017(#41)
bill wrote:
> OK, I put something in for the old layout's user search box that should fill in known
> usernames just like @ .
>
> I'm going to look into doing something similar for item searches (like new layout).

nice looks like its working great


bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
25-May-2017(#42)
I just implemented it for item searches too. ...seems to work.
tonymack21
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally Has Written 3 Reviews Secret Santa
25-May-2017(#43)
ya seems to be working great.

Jeff
GameTZ Subscriber 450 Trade Quintuple Gold Good Trader Gold Global Trader (7) Secret Santa
25-May-2017(#44)
bill wrote:
> OK, I put something in for the old layout's user search box that should fill in known
> usernames just like @ .
>
> I'm going to look into doing something similar for item searches (like new layout).

This is amazing. Thank you.

John
GameTZ Gold Subscriber GameTZ Full Moderator 400 Trade Quintuple Gold Good Trader Gold Global Trader (13) Secret Santa
30-May-2017(#45)
bill wrote:
> OK, I think I have all the emoticons in the new * autocomplete now too. So, yes
> is in there as well as frown etc.

So, I noticed that this appears to work fine on desktop, but not on mobile for me? (The matching works for other things, just not the "yes" ones that you had to add later.)

Maybe this was just missed on mobile and easy to implement? Or is it a problem? (If so, no biggie -- just wanted to mention it in case it was just an oversight and is easy to correct.)

Thanks!
bill
GameTZ Gold Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
30-May-2017(#46)
I tried the mobile site (on a pc) and it seemed to be OK:

image

It's possible some file is being cached... can you force it to reload or clear the cache?

I forget what intermediate states may have been left in place, but the current implementation puts the username and emote lists in a separate, static JavaScript file which get regenerated hourly. Maybe, you have an out-of-day copy (shouldn't be possible, but maybe).
DiamondDave
GameTZ Subscriber 350 Trade Quintuple Gold Good Trader Has Written 4 Reviews
30-May-2017(#47)
@1Lemonhead yep, works good on mobile
John
GameTZ Gold Subscriber GameTZ Full Moderator 400 Trade Quintuple Gold Good Trader Gold Global Trader (13) Secret Santa
30-May-2017(#48)
I'll do more testing and let you know. Thanks. yes
tonymack21
GameTZ Gold Subscriber 400 Trade Quintuple Gold Good Trader Global Trader - willing to trade internationally Has Written 3 Reviews Secret Santa
30-May-2017(#49)
DiamondDave wrote:
> @1Lemonhead yep, works good on mobile


*Dave tags random user to test.*

*thug life caption and glasses come in as Dr dre music plays*



willyum
GameTZ Gold Subscriber 300 Trade Quintuple Gold Good Trader Gold Global Trader (17) Secret Santa
31-May-2017(#50)
yes

Very, very, very cool!

Antipop
GameTZ Gold Subscriber Triple Gold Good Trader Global Trader - willing to trade internationally Has Written 11 Reviews
10-Jun-2017(#51)
Thank you Bill, you're the best.

Topic   Auto-Populate Usernames?