![]() |
/me - irc feature
[/me - irc feature]
Information
This modification simply duplicates the /me feature of irc. It will replace "/me does this action" with "* username does this action". Installation 1/ Upload the me-hack.xml file via the plugin uploader in the AdminCP Please Click Install! If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates. |
<3
:banana: EDIT: Works great on vB3.5.0 RC1 as well. Only thing is that you can only have one line of /me code per line. Was this intentional or is it a bug? [high]* Chris_D is testing something [/high] [high]* Chris_D is testing something [/high] EDIT 2: It works on this version of it. Great work though, so simple as well. I've seen these often have a few template changes :) Well done. EDIT 3: It also makes the rest of the post's text bold... |
Screen shot? I have no idea what this looks like and im afraid to install.
|
|
Quote:
|
Quote:
Perfect :) |
Quote:
|
Yeah, coulding is very hard after midnight. Coding isn't much better ;)
Go get some sleep Dean! :p |
Do this worky in pms? ;)
|
Quote:
|
Quote:
Satan |
Any way to get this to support /you also?
|
Quote:
Or, if you really want /you, upload this plugin again, and alter the /me references to /you and then see how the [you] bbcode obtains the necessary information:) Satan |
I have found a bug:
Quoting a post means that /me code quoted takes on the /me parameters of the person quoting, not the quotee, with or without using /me in their post :) Satan |
Quote:
|
Quote:
Fix it now >_< Lol :p Satan |
Dean,
This is converting everything that starts with /me It is showing up on links to ./member.php as (for example) .* Christinember.php Is that something that can be fixed with a regex to look for the space after it? |
Quote:
|
Just put a space after the 'me' in the regex.
|
good job with this hack it works perfect
|
Quote:
HTML Code:
$mepattern = '/\/me ([^\r\n]+)/is'; |
Well try it and you'll know bob :D
|
I posted that for the benefit of the newbies, sir. ;)
|
Code:
$mepattern = '/\/me[\s]{1}([^\r\n]+)/is'; |
Is this official? ;)
|
It works, Dean. Great job! ;)
How do I get the whole line to be in red in this? HTML Code:
$this->post['message'] = preg_replace($mepattern, '<b><font color=red>* ' . $this->post['username'] . ' $1</font></b>', $this->post['message']); Quote:
|
It is now replacing all instances of "/me text" with "* Chris Mtext" -.-
The other version ignored /me commands that were not at the start of the line :) Fix :p Satan |
Nice to have this back in my vB. :)
|
Quote:
|
Quote:
"Just type /me then your message on a new line" becomes "Just type * Chris Mthen your message on a new line" -.- How does that explain how to use the code, for example? Satan |
Quote:
Satan |
Chris is right. It should only work at the start of a new line IMO. That's how I'll develop it when I get some time this week. The main problem is evil nested quotes :p
|
Quote:
HTML Code:
$mepattern = '#^(([ \t]|\[[a-z]+[^\]]*\])*)/me[ \t](.*)$#Uim'; Tested and working. ;) |
The only thing I found wrong with it is when you quote a message with it, /me shows up instead of the name of the person who wrote the original post. How do we fix that?
|
Works perfectly Bob :)
Like you say, there is only the quote issue to work around now :) Satan |
I believe there may be a way to solve it, but it will require a file edit to class_bbcode.php :(
PHP Code:
Might work... Satan |
The problem almost has to be with this line. The old vb3 version used pagetext.
HTML Code:
$this->post['message'] = preg_replace($mepattern, '<b><font color=red>* ' . $this->post['username'] . ' $3</font></b>', $this->post['message']); |
Quote:
PHP Code:
Satan |
I've got the quote thingy working, just need to play around with when a user has multiple /me's within their quote :)
|
Quote:
|
All times are GMT. The time now is 07:27 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|