It looks like you're new here. If you want to get involved, click one of these buttons!
$Configuration['Garden']['InputFormatter'] = 'BBCode'; and quotes dont work when use quote with russian characters nickname.[quote]text[/quote] and result in post is: [quote]text without closing tag "/quote")
Comments
$Sender->EventArguments['Object']->Body = preg_replace_callback('/( <blockquote class="UserQuote"><div class="QuoteAuthor"><a href="http://vanillaforums.org/profile/([\d\w_ ]{3,30})" rel="nofollow">([\d\w_ ]{3,30})</a> said:</div><div class="QuoteText"><p>)/u', array($this, 'QuoteAuthorCallback'), $Sender->EventArguments['Object']->Body);to:
$Sender->EventArguments['Object']->Body = preg_replace_callback('/( <blockquote class="UserQuote"><div class="QuoteAuthor"><a href="http://vanillaforums.org/profile/([\d\w\W_ ]{3,30})" rel="nofollow">([\d\w\W_ ]{3,30})</a> said:</div><div class="QuoteText"><p>)/u', array($this, 'QuoteAuthorCallback'), $Sender->EventArguments['Object']->Body);I changed both string, 94 now looks like:
$Sender->EventArguments['Object']->Body = preg_replace_callback('/( <blockquote class="UserQuote"><div class="QuoteAuthor"><a href="http://vanillaforums.org/profile/([\d\w\W_ ]{3,30})" rel="nofollow">([\d\w\W_ ]{3,30})</a> said:</div><div class="QuoteText"><p>)/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?
Vanilla developer [GitHub, Twitter]
[quote="Nick"]Text[/quote]in result no closing tagVanilla developer [GitHub, Twitter]
But 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.