![]() |
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 11:57 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:
|