![]() |
use:
Code:
$mepattern = '/(^|\s)\/me([^\r\n]+)/is'; also note the changed preg_replace |
You are A HERO :D :D Works !!!
|
YAY that worked great!
Thank you very much :D |
You might also want to add the following plugin
Code:
global $vbulletin; and Code:
$mepattern = '/(^|\s)\/me([^\r\n]+)/is'; with this the preview of a post will also get the right update or simply download the attached xml file (note: I made it a product because of the 3 linked hooks) |
Quote:
|
doh, forgot to save the post.
it's there now. |
Quote:
And thank you. ;) |
thanks El_Muerte :)
Now all we need is a fix so that when quoting a post with /me in it, the quoted /me uses the quoted persons name instead of taking on the name of the person replying |
I've been working to revamp this plugin, so far so good except for the quoting issue.
The problem with quoting is that it's not use who posted it, so I've been going through a couple of ideas: 1) rewrite the /me in the quote to reflect the original user 2) use the username from the quote param to replace the /me the problem with 1) is that it needs to be rewritten to a vbcode, so I could change the rewriting to use something like [action=username]description[/action] with 2) you have the issue that not always a username is provided in the quote I think I'm going for the rewriting as a whole base, just like with the automatic URL detection. Ofcourse this has the issue that current /me's won't be replaced correctly. |
Quote:
|
All times are GMT. The time now is 01:51 PM. |
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:
|