View Full Version : "/me action" port for vB3.5.x
Hellcat
13 Dec 2005, 02:23
Update v1.20
"/me does whatever...." now gets propperly parsed to "* Username does whatever...." as well in the Archive and subscription notification e-mails! :)
Update v1.10
Quick-Reply didn't work, the raw "/me" was quoted.
Now works fine as well when quoting in Quick-Reply :)
----------
To update simply uninstall the older product and re-import the updated product XML.
==========
Hi everyone!
Here I present you my vBulletin 3.5.x port of the famous "/me" action :up:
This plugin is based on the original /me action done back in vB2 times :)
The code is mainly based on the contens of this thread:
http://www.vbulletin.org/forum/showthread.php?t=59698
so at least 50% percent of the credits have to go there.
However I've completely rewritten it to fit into vB3.5.x's plugin system and the hooks.
Features of this plugin:
Adds the ability to use the "/me" action in posts and PMs.
Just type "/me waves" to get something like "* Hellcat waves"
The formatting of the /me text can easiely be customized by editing the BB tag it uses for formatting purpose
The color of the /me text can be customized seperately for every style you have installed, so you always have a color fitting into the currently used style! :)
This version is actually QUOTE SAFE!
If you quote someone who used the /me you get "* User waves" instead of the raw "/me waves" in your quoted text!
So there will be no messing up when quoting /me's :D
While editing posts however, you still have the original entered "/me" (except for PMs)
Installation
Painless and easy, no files need to be edited, no files need to be uploaded!
1)
Simply download the product XML from this post, go to your AdminCP -> Product Manager -> Upload/Import Product -> Point it to the XML and hit "GO" :)
2)
Add the following BB tag via the BB-Code-Manager:
BB tag name:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BB tag replacement:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This BB tag is actually used for the /me output, so edit the replacement of this tag to fit your need of the formatting of the /me text.
3)
Optional:
For every style you have installed go to Style Manager -> Add Replacement Variable
Variable name:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Variable value: enter any HTML color you like and that fits to the color theme of the style, "#AA0000" for example for a med red.
Using this you can set a different color for the /me for every style.
If you don't want or need to do step 3 you might also want to remove the DIV tag from the HTML makeup (if you don't you have an unparsed {mecolor} in there).
What else?
1) Click "INSTALL" if you use it :p
2) This can easiely be edited/copied to implement even more actions
3) Post comments and problems here and we try to solve them :)
4) This has been develloped and tested on vBulletin 3.5.2 but should work under 3.5.0 and 3.5.1 as well.
Have fun!
SuperFly
13 Dec 2005, 02:35
Very nice
/me clicks install
nexialys
13 Dec 2005, 02:35
sorry to break your fun: (compared to these ???)
http://www.vbulletin.org/forum/showthread.php?t=93171
http://www.vbulletin.org/forum/showthread.php?t=98549
Hellcat
13 Dec 2005, 02:39
Whooops....
/me shuts up
I searched a day for "/me" but didn't find those :(
And the thread about the 3.0.x /me didn't have a refference as well :(
Nah.... so there's one more. :)
theArchitect
13 Dec 2005, 04:44
Well, the major benefit this hack has is that it is coded for 3.5.2 and is quote safe.
P.S. Just want to get a pet hate off my chest (seeing one of the other hacks still in beta). I realise that hack authors generally release their work for free (so I should shut the hell up), but it can be slightly annoying when a very cool hack gets released with bugs in it and then never gets updated so it never gets used. Such a waste of a great idea and good code.
Colosus
13 Dec 2005, 06:56
One question... Does this allow /me to be used within a sentence without messing it up? For instance a link...
http://www.test.com/memo/
Hellcat
13 Dec 2005, 07:13
One question... Does this allow /me to be used within a sentence without messing it up? For instance a link...
http://www.test.com/memo/
Yes, should be no problem.
I already posted a few posts with that where the "/me" accours somwhere in the text.
It's supposed to only parse the "/me" if it's at the very beginning of a line.
nexialys
13 Dec 2005, 13:14
It's supposed to only parse the "/me" if it's at the very beginning of a line.
good.. :)
btw, i was posting the links to "compare" like said...
and this is good to not shuffle the /me everywhere... BUT,,, would be COOOOOLER if it can parse a sentence, like :
this is good. /me click install. and i'll be happy!
...i know it's a bit more complicated, use 2 regex more... but anyway, this is a idea for a addon.. lol
Well, the major benefit this hack has is that it is coded for 3.5.2 and is quote safe.
P.S. Just want to get a pet hate off my chest (seeing one of the other hacks still in beta). I realise that hack authors generally release their work for free (so I should shut the hell up), but it can be slightly annoying when a very cool hack gets released with bugs in it and then never gets updated so it never gets used. Such a waste of a great idea and good code.
Couldn't agree with you more.
for some reason the color stays the default post color. any ideas how to make it work?
Hellcat
13 Dec 2005, 17:57
for some reason the color stays the default post color. any ideas how to make it work?
Did you set the replacement variables in the style manager for all styles?
And is the name the same as given in the BB code?
oops had it '{mecolor}' for the bbcode. but just 'mecolor' as replacement variable.
FleaBag
14 Dec 2005, 19:17
Smurfin' awesome. Thanks for sharing! :)
thisgeek
20 Dec 2005, 05:45
oops had it '{mecolor}' for the bbcode. but just 'mecolor' as replacement variable.
I did the same thing - d'oh! Figured it out when I checked the output source.
GrendelKhan{TSU
21 Dec 2005, 00:00
Yes, should be no problem.
I already posted a few posts with that where the "/me" accours somwhere in the text.
It's supposed to only parse the "/me" if it's at the very beginning of a line.
that's what I wanted to know! so many problems before with this hack case I have a lot of likes from urls with
www.SITE.com/media/file
the /me in media would fook up the url with the id busting in. :/ lol
great stuff!!
ps. important side question....do you know how a search engine spider would read it? as "/me" or as "GrendelKhan{TSU"??
Hellcat
21 Dec 2005, 03:19
The search engine would also see the "* User does something" instead of the "/me does something"
In the Searchengine friendly Archive it'll be the "/me" I'd guess....
My first install! Thanks for making it easy. :)
/me clicks install.
After some troubles with the raplacement variables I got it to work.
Thx for sharing. ;)
bitbender
02 Jan 2006, 15:43
Thx!! This fixed up the code and quote block problems we were having with the ABD version!!
HYN!
S@NL - BlackBik
03 Jan 2006, 21:49
Very nice
* SuperFly clicks install
Me too :)
But it doen't work well when quoting in quick reply...
Hellcat
05 Jan 2006, 01:38
Me too :)
But it doen't work well when quoting in quick reply...
Hmm.... TBH never tried that so far....
I'll check that out and see if QR can be tweaked :)
sidekick
05 Jan 2006, 03:37
this one is better than what i had before, earlier the /me wud mess up my url's
deactivated the old one and installed this.. i dont see the same problem
thanks :)
Hellcat
12 Jan 2006, 02:09
But it doen't work well when quoting in quick reply...
I added support for Quick-Reply :)
See initial post, I already uploaded the new product XML.
Post here if there are still problems, but in my tests quick-reply quoting worked now :)
S@NL - BlackBik
12 Jan 2006, 19:17
Yep, it works great now :)
Thanks for your support.
Installed and works great :)
The only thing is that, my forum uses the "Backlink for quotes" hack, and, when I quote a "/me", I get
*Username;postnumber and message*
curry684
07 Mar 2006, 01:10
Wonderful, now running on my forum (http://forum.xboxic.com) :)
/me rejoices!
Niceness. I am so using this :)
Hellcat
17 May 2006, 00:21
Yesyes, even the old and tiny things get an update from time to time :)
Now, this /me also works
- In the Archive
- In subscription notification emails
Have fun :)
Ghostsuit
17 May 2006, 00:53
hmm strange when I use this I get * username action
Any idea what might be up?
Hellcat
17 May 2006, 01:48
the [me] is the BBcode used for the formatting of the action code.
It should only be exposed in PMs since in quotes it's not used and when editing the raw "/me" shows up :)
hmm strange when I use this I get * username action
Any idea what might be up?
You need to make the repacement color variable for the me tags. ;)
And excellent update, Hellcat, sir. ;)
/me runs off to see where else he can break this
Database error in vBulletin 3.5.4:
Invalid SQL:
SELECT COUNT(*) AS `num` FROM post WHERE `userid` = 1 AND `threadid` =;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
I got this after doing the BB code.
I got this after doing the BB code.
That shouldn't have anything to do with this hack. Did you try doing another bbcode to see if it was doing the same thing? It looks like there is another hack messing with something somewhere.
It only does it when I do Manage Products
I installed "moderator_stats_1_3" plugin before.
Have you tried disabling that product and then doing the bbcode?
Ok, it's fine now when I disabled that....weird.
Ok, it's fine now when I disabled that....weird.
You might want to post what happened in the thread for that hack. Or maybe someone has had the same problem and there might be a fix for it there. ;)
SagesseForum
26 May 2006, 08:59
/me installs
Smiry Kin's
01 Jun 2006, 23:53
/me installs
/me KNOWS you will be very pleased with this! ;)
Hellcat
08 Jun 2006, 10:21
Howdy :)
Concerning vBulletin 3.6 (beta 1):
This seems to be working fine under vB3.6b1.
At least I didn't encounter any problems while testing ;)
Freesteyelz
09 Jun 2006, 23:05
/me likes the fun mod; clicks "Install". :)
You'll love it! Hellcat did an excellent job on it. ;)
peterska2
12 Jun 2006, 22:48
doesn't work on 3.6 here
Hellcat
13 Jun 2006, 00:30
doesn't work on 3.6 here
Why and where does it not work?
Working fine on my 3.6 so far....
peterska2
13 Jun 2006, 00:52
When I tried it via QR the output I recieved was
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Hellcat
13 Jun 2006, 00:58
Ahhhh!
Let me quote a part of the installation instructions ;)
2)
Add the following BB tag via the BB-Code-Manager:
BB tag name:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BB tag replacement:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
This BB tag is actually used for the /me output, so edit the replacement of this tag to fit your need of the formatting of the /me text.
peterska2
13 Jun 2006, 01:08
/me looks away in despair
You mean there are instrcutions? :o
/me goes back to try it again
[edit]
Fancy that, it works now.
Can you put the file in a zip and include a text file with the BB code instructions please :)
Hellcat
13 Jun 2006, 01:19
OK, I made it a ZIPPO with an included install.txt :)
When I tried it via QR the output I recieved was
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I had to uninstall, because I couldnt figure out how to make it work. I got the same thing, and I read this thread and I still don't know how to do it right. :^/
Hellcat
13 Jun 2006, 09:58
Simply add a new BBCode in your AdminCP like described in the first post, and now the INSTALL.TXT as well :)
Actually, replacement variable in instructions should say:
3)
Optional:
For every style you have installed go to Style Manager -> Add Replacement Variable
Variable name:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
instead of
Variable name:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
or at least how that's the only way I could get it to work (by adding the {}s)
I can't quite get it to show up in red. I tried a bunch of things but not getting it right.
Anyway this already is in 3.5.4 :)
Anyway this already is in 3.5.4 :)
Only if you added it it is.
I can't get it to show up in red. I tried a bunch of things but not getting it right.
Oh well, uninstalled.
Hellcat
28 Jun 2006, 11:44
I can't quite get it to show up in red. I tried a bunch of things but not getting it right.
Edit the replacement of the [me] BBCode to whatever suits you.
Something like
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
in the <div ...> tag makes it red :)
Or simply use the replacement variable like stated in the readme and the release post.
rgbivens
30 Jun 2006, 06:22
If you are using the Advanced BBCode system and a user is in two groups, both groups must have permission to use the code before it will work.
Example:
User X is in Admin and Registered members groups.
Admin is set to use /me bbcode Registered members are not.
Admin cannot use /me script
Admin and Registered members are allowed to use /me script, Admin can now use it.
I hope that made sense. I think some people that were having problems in previos posts might be having this problem because when a user who doesn't have permission to use a bbcode uses one, it comes out unparsed like [ me]text[ /me]
-Grant
rogersnm
30 Jun 2006, 20:17
Is there any way to remove the bottom line space?
I always liked this little hack :) thank you ;)
Any chance of a 3.6.0 update? I just upgraded to Gold, reverted all my templates, and I'm getting a problem when you quote somebody that had used /me. What I get is the username followed by the post number, in the quoted text.
i.e. * DaveAK;1234567 has issues with this hack
Any chance of a 3.6.0 update? I just upgraded to Gold, reverted all my templates, and I'm getting a problem when you quote somebody that had used /me. What I get is the username followed by the post number, in the quoted text.
i.e. * DaveAK;1234567 has issues with this hack
Anyone else having this problem in 3.6.0? Anyone come up with a fix?
OK, I've fixed it, but I'm not sure it's the best way of doing it.
I added a $originalposternopostid variable into newreply.php and functions_newposts.php
In the plugin manager I changed the preg_replace Quick_Reply instance and the QUOTE instance to use $originalposternopostid instead of $originalposter. I left the isset($originalposter) unchanged.
Comments on this? It works, but have I done it right?
Any chance of a 3.6.0 update? I just upgraded to Gold, reverted all my templates, and I'm getting a problem when you quote somebody that had used /me. What I get is the username followed by the post number, in the quoted text.
i.e. * DaveAK;1234567 has issues with this hack
I would love to use this hack if you can update it for 3.6.2. I used it on my test site and have the same problem as DaveAK. Is there an easier way around it or do we have to hack PHP? DaveAK, can you tell me how to do that?
Also, is there a way to have the hack keep the same color/boldness in the quotes? At least stay bold would be nice. I'm so glad you updated it!!!
Got it working for 3.6.x Had to change the PHP code for the QUOTE and Quick_Reply instances to the following :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
The nested rtrim first removes the post ID, then the semi-colon, so that it will work with usernames that end in numbers. No file edits are needed as in my previous attempt posted above.
Thank you so much, DaveAK. You are so kind!
Awesome, thanks for the fix for quotes.
Confirmed working (with the above fix) on 3.6.5
Note for those that don't know where to apply the above fix:
Go into AdminCP> Plugins & Products> Plugin Manager
Scroll to Product: /me (should be at the top).
Click Edit next to the /me Action (QUOTE instance) and /me action (Quick-Reply instance) lines and REPLACE the Plugin PHP code with the code from above.
paramorefans
25 Jul 2007, 08:39
is there anyway to add this to the quickreply?
DieselMinded
20 Sep 2007, 23:58
/me installs on 3.6.8 works great thanks
and the members rejoice
Dave Hawley
21 Sep 2007, 05:21
Could someone explain to me what this does? From reading it appears to simply be a custom BB code?
Smiry Kin's
21 Sep 2007, 05:49
does this
/me
you can custom it by added words after it.. doing something such as
/me wonders if Dave knows what im on about.
Dave Hawley
21 Sep 2007, 06:03
Ok, thanks, but couldn't I do the same with a Custom BB code? E.g
*
Smiry Kin's
21 Sep 2007, 16:08
Ok, thanks, but couldn't I do the same with a Custom BB code? E.g
*
why go to the effort people would have to type *
/me
is alot faster, and user-friendly... lol
Dave Hawley
22 Sep 2007, 01:35
Not sure "effort" is an apt word for your comparison :)
Thanks for the answers none-the-less!
Smiry Kin's
22 Sep 2007, 02:20
its effort-less / me action..
those who no irc know what the / me is.. :P
Dave Hawley
22 Sep 2007, 03:33
LOL! More effort is going into trying to convince me than you save with / me :)
tazB.ca
22 Sep 2007, 18:38
/me loves it
brvheart
01 Nov 2007, 04:16
ok, I must have fell off the truck and hit my head....this is what I get (I know I goofed somewhere...)
I type it and get something like this:
[me]*username bla bla bla [/ me] - got this part worked out, but can not get the replacement variable to work...
can someone help me please? I am not good with BB Code and replacement variables....
Bro_Joey_Gowdy
07 Jan 2008, 10:36
Any updated version for 3.7.0 ??
tehQspm
12 Feb 2008, 20:36
works fine on 3.7.0 Beta 4. Would be cool to get it to parse for Visitor/Picture comments though.
That would be easy to do.
tehQspm
13 Feb 2008, 01:59
can you help point me in the right direction? I think I can get the right hook it's just knowing which variables to use and how. That's the problem.
I haven't looked at it yet. I will get on it in the AM and see what I can do for you.
Ok. I have updated this for the 3.7.0 Vistor Messages/Previews. I will do the picture comments now.
EDIT: I have been told I'm not allowed to release an update to this as it is a copyright violation. Sorry.
xxshatteredsoul
11 Mar 2008, 00:15
Got it working for 3.6.x Had to change the PHP code for the QUOTE and Quick_Reply instances to the following :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
The nested rtrim first removes the post ID, then the semi-colon, so that it will work with usernames that end in numbers. No file edits are needed as in my previous attempt posted above.
Can someone add this hack to the 3.6 mods. This is the only change above that needs to get added to work on 3.6.8. Thank you.
Ok. I have updated this for the 3.7.0 Vistor Messages/Previews. I will do the picture comments now.
EDIT: I have been told I'm not allowed to release an update to this as it is a copyright violation. Sorry.
what do you mean its a COPYRIGHT violation??? whats the violation? what is it you have you want to release? you can release fixes on here. there is no copyright....i dont understand.
PoetJA-1975
07 Jul 2008, 13:12
LOL - Temperamental Coders perhaps aka BS
/me has installed on 3.7.2 and seems to work just fine actually - as is...
Jacquii.
PGAmerica
10 Jul 2008, 19:33
I have not tried this yet. Can this be modified to allow for a /you command as well.
eg. /you would be replaced by the name of the user that is being replied too.
PGAmerica
10 Jul 2008, 20:44
[me]*username bla bla bla [/ me] - got this part worked out, but can not get the replacement variable to work...
How did you get past this? I installed this according to the instructions and when I use it, I get the following:
* PGAmerica Hello to you
What's with that? I typed /me and it shows the and text and then replace the /me with my username. How do I get rid of the and ? I have the "mecolor" variable in place, so it is not that.
ideas?
scville
04 Dec 2008, 20:22
/me installed!
Octavius.
14 May 2011, 20:06
/me curious
Octavius.
18 Jun 2011, 05:18
Is there a modification like this for vb4?
BirdOPrey5
19 Jun 2011, 02:17
Is there a modification like this for vb4?
This is working fine for me on 4.0.8... will probably work on all 4.x as is.
Octavius.
19 Jun 2011, 02:51
/me test
Octavius.
19 Jun 2011, 02:56
It works in vb4.1.4 but it is black and bold instead of red and normal on vb3.
BirdOPrey5
19 Jun 2011, 11:10
It works in vb4.1.4 but it is black and bold instead of red and normal on vb3.
The mod instructions tell you how to setup a replacement variable so you can set a color per style.
Otherwise if you just want the same color across all styles just set the color in the ME BBCode replacement text. <div style="color:red;">{param}</div> instead of what is there. Actually I'd think <span> is probably a better choice than <div> anyway.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Octavius.
19 Jun 2011, 16:37
The mod instructions tell you how to setup a replacement variable so you can set a color per style.
Otherwise if you just want the same color across all styles just set the color in the ME BBCode replacement text. <div style="color:red;">{param}</div> instead of what is there. Actually I'd think <span> is probably a better choice than <div> anyway.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replacement text didn't work. Thanks anyway. Changing it to span.
Octavius.
02 Sep 2011, 18:29
/me wonders if this still works on vbulletin.org
S@NL - BlackBik
07 Dec 2011, 14:37
Works as a charm on 4.1.8 :)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.