PDA

View Full Version : Mini Mods - The /me Code


Gio~Logist
01-12-2009, 10:00 PM
Mini-Mod provided by:
ModernvB.com (http://www.modern.com)

Description:
It's simple. When they type "/me" in a post, it changes to their username. Yes, it's live - so it will also change if their username has changed.

Example:
Before: /me made this mod
After: Gio~Logist made this mod

Instructions:
1. Upload the plugin
2. /me away

yotsume
01-13-2009, 04:11 PM
Ummm what is the possible point to this mod???? I can type my username faster then I can remember the code that will type my username for me!

Does the username get linked to their profile automatically? At least that would be sort of useful I guess even though their username is already hard to miss!

I am just not see how this is useful in any way!

Idawg
01-13-2009, 04:14 PM
Works on 3.7.x also :) I have it set up on 2 boards that are 3.7.4

Gio~Logist
01-13-2009, 04:22 PM
Ummm what is the possible point to this mod???? I can type my username faster then I can remember the code that will type my username for me!

Does the username get linked to their profile automatically? At least that would be sort of useful I guess even though their username is already hard to miss!

I am just not see how this is useful in any way!

You ok yotsume? You seem almost bothered by the release :p I can relate, being that I wouldn't use the feature much myself. However, a lot of members used to chatting in other chatrooms and forums enjoy the "/me" code. I've actually seen people post things like "/me is tired" or something along those lines, not knowing that it won't change it to their name.

Anyways, it was also requested by another member and i'm sure people will be able to make use of it. Good point on linking it to profiles, i'll update the plugin in a bit with that feature probably.

Gio~Logist
01-13-2009, 04:24 PM
Works on 3.7.x also :) I have it set up on 2 boards that are 3.7.4

Niicee. I'll post it over on 3.7.4 in a bit, just finished releasing somethin' else as well.

yotsume
01-13-2009, 05:21 PM
You ok yotsume? You seem almost bothered by the release :p I can relate, being that I wouldn't use the feature much myself. However, a lot of members used to chatting in other chatrooms and forums enjoy the "/me" code. I've actually seen people post things like "/me is tired" or something along those lines, not knowing that it won't change it to their name.

Anyways, it was also requested by another member and i'm sure people will be able to make use of it. Good point on linking it to profiles, i'll update the plugin in a bit with that feature probably.

Thanks for clarifying its use. I myself have never seen or used the /me code in chat so I was lost here.

Some suggestion to make this really useful. How about some more /codes. For instance: /blog /album /profile or /anything... Be way cool to be able to use a /code to make a link to some specific user feature of VB, Blog, Gallery.

Stubbed
01-13-2009, 06:29 PM
Thanks for clarifying its use. I myself have never seen or used the /me code in chat so I was lost here.

Some suggestion to make this really useful. How about some more /codes. For instance: /blog /album /profile or /anything... Be way cool to be able to use a /code to make a link to some specific user feature of VB, Blog, Gallery.
It doesn't need any more codes...

This mod is purely to replicate the "action" function that is in most chat software, origionally from IRC. This forum (vb.org) actually already uses the same feature.

* Stubbed thinks yotsume is a bit ignorant to the feature and probably jumped the gun a bit!

Brandon Sheley
01-13-2009, 07:03 PM
thanks Gio!
it would be nice to have the /you version as well :)

* Brandon Sheley clicks install

Blue91
01-13-2009, 07:59 PM
How can I edit this so that the * is added before the username and so the username is a different color? (like here on vb.org)

/me shows example.

Otherwise, thanks! Already installed.

Hornstar
01-13-2009, 09:07 PM
It doesn't need any more codes...

This mod is purely to replicate the "action" function that is in most chat software, origionally from IRC. This forum (vb.org) actually already uses the same feature.

* Stubbed thinks yotsume is a bit ignorant to the feature and probably jumped the gun a bit!

possibly, however he did bring up a good suggestion either way. Maybe gio could release what he said in another thread. A more complete /linking method. I think it would be great to be able to say to a member you just need to go to /blog and it creates a link automatically to the blog. or say you just need to go to pm me and instead I say /pm and it creates the exact pm link to directly pm me.

RTMdotORG
01-13-2009, 11:00 PM
/you code would be nice

Nadeemjp
01-13-2009, 11:15 PM
i think /me by itself isnt much of an attraction. but as yotsume has suggested, if we could have more codes, then it is more interesting:)

Blue91
01-13-2009, 11:27 PM
To each their own. /me is a niche mod for irc users.

Blue91
01-14-2009, 01:51 PM
Hmm, after playing with this... it isn't like the previous /me codes. Previous versions ONLY worked with /me was typed first in a line.

I noticed the current one changes /me to username regardless of where it is. This was figured out this morning by me when another user posted up the phrase burn/melt and it resulted in "burn/usernamelt. Not good. Can it be fixed to work only at the beginning of a sentence like the previous versions?

Thanks!

Blue91
01-15-2009, 01:03 PM
Ttt?

Gio~Logist
01-16-2009, 03:39 PM
Hmm, after playing with this... it isn't like the previous /me codes. Previous versions ONLY worked with /me was typed first in a line.

I noticed the current one changes /me to username regardless of where it is. This was figured out this morning by me when another user posted up the phrase burn/melt and it resulted in "burn/usernamelt. Not good. Can it be fixed to work only at the beginning of a sentence like the previous versions?

Thanks!

Try replacing the contents of the plugin with the following:if(substr($post['message'], 0, 3) == '/me'){

$post['message'] = substr_replace($post['message'], $post[postusername], 0, 3);

}

Also, i updated the plugin to a simple edit to only include "/me"'s that have a space after, to prevent your second issue if you're still using the default code.

Roxie
01-16-2009, 05:11 PM
Would love the /you code.

Theater
01-16-2009, 07:44 PM
Theater slaps Gio~Logist around a bit with a large trout.

/me clicks installs.

secrtagnt
01-16-2009, 09:57 PM
If you don't find a mod useful, simply don't use it :)

One of the forums I help maintain is centered around an IRC network. I'm sure our users will enjoy it. Thanks!

TheLastSuperman
01-16-2009, 10:03 PM
Using for something else.. will recode w/ desired /you /it /bugoff etc lol so thanks!!!!

* TheLastSuperman marked as Installed :D

Edit: Ohh vb.org already had it in here, that was nice to see, I lol'd for a second ;)

Edit: #2... you wouldn't want to change your modifaction to allow the code to be re-used so I might make a new mod using this one but it would require different versions of the plugin??? (Ohh and link back you your release here?) PM me if so and thanks Regardless!

Blue91
01-17-2009, 05:04 AM
Thanks. Did you update the xml file with that info?

Also, how can I add an asterisk to the front of the username and change the color of the username? (similar to the /me command here on vb.org).

Btw, with your code, even talking about the /me code would replace it with my username since there's a space after it??

Blue91
01-21-2009, 03:14 PM
TTT about color and asterisk request?

AzH
01-29-2009, 04:49 PM
/me clicks install

Ohiosweetheart
02-04-2009, 04:41 PM
/me loves this mod!

Garnet2727
02-12-2009, 11:32 PM
/me marks as installed

Notorious Jay
02-19-2009, 07:10 AM
would be usefull in sigs I would imagine. If you type
[/]me in sigs it would constantly change to your username... would be useful for staff members who change their names a lot and want their username in their sig...

fta2k
10-26-2009, 09:59 PM
/me clicks install