May 22, 2013 16:23:19 GMT -5
This plugin will cache (with localStorage) everyone's username and display-name (it will update the display-name). Using the cached information it will replace @display name with @(username). This will prevent having to go find a certain users link and hover over it to find there username.
Directions: Just download and install
Download:
Here Future Development: WYSIWYG support. (The plugin doesn't currently work in the visual/bbcode editor)
_____________
If you use this please like the post.
Enjoy
May 22, 2013 19:13:53 GMT -5
I get this when i try to download. "Error (404)
We can't find the page you're looking for. Check out our Help Center and forums for help, or head back to home. "
May 23, 2013 1:58:51 GMT -5
If this works it's awesome.
Smangii @stinky666
May 23, 2013 2:05:34 GMT -5
If this works it's awesome.
Smangii @stinky666
I was going to test this on SI for you, however I am having the same issue as
CåñåÐå™:
"Error (404)
We can't find the page you're looking for. Check out our Help Center and forums for help, or head back to home."
May 23, 2013 8:00:36 GMT -5
Texas, just tried it in FF too and error still.
Re-up for us?
May 23, 2013 14:42:04 GMT -5
@stinky666,
CåñåÐå™ Sorry,
I cut off half of the url. I'll update the page in a sec.
Actually I used v4 BBCode instead of v5
May 23, 2013 15:16:29 GMT -5
It appears to be working fine.....I'll go view the members page to cache a whole bunch of names and see how it works then.
May 23, 2013 15:17:34 GMT -5
Oops, made the text area search case sensitive. I'll update in a minute.
May 23, 2013 15:40:27 GMT -5
The code can't handle all the special characters and it's.............malfunctioning. You may want to uninstall it.
If you want to type you may want to put "javascript: localStorage.atperson=undefined;" in your url bar and then press enter first. After the plugin is removed you shouldn't have to though.
@stinky666
Smangii
May 23, 2013 18:41:32 GMT -5
The code can't handle all the special characters and it's.............malfunctioning. You may want to uninstall it.
If you want to type you may want to put "javascript: localStorage.atperson=undefined;" in your url bar and then press enter first. After the plugin is removed you shouldn't have to though.
@stinky666
SmangiiOk When its ready tag me please.
May 24, 2013 15:23:31 GMT -5
Texas, edited your post.
Reason being, you had accidentally removed the
= from the url, so it was just [a href" instead of [a href=" causing the link to not be a link and clicking it did nothing
ninja
May 24, 2013 15:26:17 GMT -5
Yea, I've been having trouble with that for some reason. By the way, if you downloaded it you may want to download it again cause I just changed realized the one I had released had problems so I updated it again.
May 24, 2013 15:29:23 GMT -5
Yea, I've been having trouble with that for some reason. By the way, if you downloaded it you may want to download it again cause I just changed realized the one I had released had problems so I updated it again.
Ok done
So, if I now do @
NinjaAssassin001 (my display name), it should change to be my @
stinky666 tag (stinky666 being my username).. right?
@ninjaassassin001
Edit:
What about if it had a gap in between the words, like
ninja assassin, would that still register, or should it?
May 24, 2013 15:32:54 GMT -5
Yes it would, but for some reason its pulling up a type error. It's not happening on my forum. So I'm not sure what the problem is.
May 24, 2013 15:36:54 GMT -5
Okay figured it out. You'll need to put "javascript: localStorage.atperson=undefined;" in your url bar and then hit enter for the code to work properly again. The problem occurs because I changed the way the code stores data so the localStorage variable needs cleared before it will work again.
(clearing your cache will also fix it if the other thing doesn't.)
May 24, 2013 15:45:09 GMT -5
Dangit!!! It still doesn't work correctly. This time I have no idea why. I thought it was special characters the first time but it removing them seems to have no effect.
I'll have to post on the support board for help.
May 24, 2013 20:25:14 GMT -5
I downloaded the plugin and tested it . But it didn't work?
May 25, 2013 4:06:12 GMT -5
Texas what I found is that it starts "too early". The editor is built up by JS and the textarea's aren't all there yet. I made it wait for the editor and now it works:
pastebin.com/bv9FimjC
May 25, 2013 13:50:17 GMT -5
Xikeon: That doesn't seem to work for me at all. In fact the problem that I had was completally different. I would go to the members page to cache a whole bunch of usernames. Then I go back to a random thread page and hit a random key and it automatically puts tons of "one" persons username in.
May 25, 2013 15:05:48 GMT -5
Okay...So at this point I'm not going to say I'm sure of anything because of the last three updates. However, I have a new update (download link in first post).
Changes: The code doesn't accept any username with any special characters (i.e characters you can't type with the keyboard) and it will remove all other non-number non-letter characters (such as:-_=+\|~!@#$%^&*(){}[]";<>?/).
Known Problems: For some reason it removes any spaces, which isn't that big of a problem.
Examples:
K£Ñ§)-(¡Ñ †)-(£ ßņ†Øü§Å¡ | This person feels the need to instert so many characters in there name that my head spins....the code will not cache this at all
|
~awesomedude~ | The "~" will be removed resulting in the displayname to be "awesomedude"
|
Random Persons Name
| Don't know why, but this will be stored as "RandomPersonsName"
|
Jun 1, 2013 10:08:44 GMT -5
SmangiiCåñåÐå™XikeonOkay so I finally came up with a fix that didn't have a ton of problems.
The code will remove all characters that don't fall in the line of this RegExp [^A-Za-z0-9\s]
So basically any character that isn't a capital or non-capital, a number, or a space. I may go through and add some other characters to the exemption list but for now this is what works. "If it ain't broke, don't fix it."
Jun 1, 2013 19:09:47 GMT -5
SmangiiCåñåÐå™XikeonOkay so I finally came up with a fix that didn't have a ton of problems.
The code will remove all characters that don't fall in the line of this RegExp [^A-Za-z0-9\s]
So basically any character that isn't a capital or non-capital, a number, or a space. I may go through and add some other characters to the exemption list but for now this is what works. "If it ain't broke, don't fix it."
Will try this again very soon (just woke up so slowly relaxing reading etc first
)
Possibly some common characters could be cool to have added.. Not sure what ones are that common to be honest haha. - and _ I guess are 2 :-/