bb-code dont work with non-english nicks
@Tim help me please i was enabled bbcode mode in config.php file
And quote dont work when use quote without nickname (for example:
how fix help
$Configuration['Garden']['InputFormatter'] = 'BBCode'; and quotes dont work when use quote with russian characters nickname.And quote dont work when use quote without nickname (for example:
[quote]text[/quote] and result in post is: [quote]text without closing tag "/quote")how fix help
Tagged:
0
Answers
$Sender->EventArguments['Object']->Body = preg_replace_callback('/(<blockquote rel="([\d\w_ ]{3,30})">)/u', array($this, 'QuoteAuthorCallback'), $Sender->EventArguments['Object']->Body);to:
$Sender->EventArguments['Object']->Body = preg_replace_callback('/(<blockquote rel="([\d\w\W_ ]{3,30})">)/u', array($this, 'QuoteAuthorCallback'), $Sender->EventArguments['Object']->Body);I changed both string, 94 now looks like:
$Sender->EventArguments['Object']->Body = preg_replace_callback('/(<blockquote rel="([\d\w\W_ ]{3,30})">)/u', array($this, 'QuoteAuthorCallback'), $Sender->EventArguments['Object']->Body);And changing next row 99, she looks like:
$Sender->EventArguments['Object']->Body = preg_replace_callback('/(\[quote="([\d\w\W_ ]{3,30})"\])/u', array($this, 'QuoteAuthorCallback'), $Sender->EventArguments['Object']->Body);After it changes bb-code with quotes with russian nicknames working perfect.
But second problem still remains unsolved: when im using quotes without nicknames (for example:
[quote]sample text[/quote], in result quotes dont have closing tag, and quotes dont work)Could you help me please with this, you are working without quotes nick (quotes without nickname)? Show your quotes file
[quote="test"][quote="test"]My discuss[/quote]my pinion[/quote]sample text, then breaks quote,and does not work)help fix bb-quote in bb-quote
I think it should be done in 140 string, but how?
[quote="Nick"]Text[/quote]in result no closing tagBut if you follow the rule of usernames at registration, you cannot use russian name :P
@bh8vn that's soemthign you can set in config.
grep is your friend.