Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 17

CurtisOdenericgillette +15 guests

bb-code dont work with non-english nicks

This discussion is related to the Quotes addon.
@Tim help me please i was enabled bbcode mode in config.php file $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:

Comments

  • Posts: 113
    2.0.17.9
  • Posts: 113
    somebody help i want use bbcode with non-english nicks
  • i want to use german..
  • Posts: 113
    and not work notifications for users with non-eng nicks, how to fix help please http://vanillaforums.org/discussion/16961/bb-code-dont-work-with-non-english-nicks#Item_4
  • I'm not sure if you have the same problem as me but I also had issues with polish letters. I solved it by changing Quotes 1.2 line 94:
    $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);
  • Posts: 113
    @evolucja thanks for answer, you're a genius, thank you my friend, quotes are now working on bb-codes.
    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)
    image
    Could you help me please with this, you are working without quotes nick (quotes without nickname)? Show your quotes file
  • Posts: 113
    Another difficulty, when use "quote" in the "quote" (for exampe: [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
    image
    I think it should be done in 140 string, but how?
  • Sorry man, i don't really know how to help you. I'm using HTML and it's working perfectly.
  • Posts: 2,058
    I released the latest version which has this fix included.

    Vanilla developer [GitHub, Twitter]

  • Posts: 113
    @Lincoln This version does not work with russian nicks, and dont have in 94 string function for changes to non-english language
  • Posts: 113
    @Lincoln when write [quote="Nick"]Text[/quote] in result no closing tagimage
  • Posts: 2,058
    I believe it uses the ValidateUsername function, doesn't it? It should work with whatever validation you're using to check usernames at registration.

    Vanilla developer [GitHub, Twitter]

  • Posts: 103

    Lincoln said: I believe it uses the ValidateUsername function, doesn't it? It should work with whatever validation you're using to check usernames at registration.

    But if you follow the rule of usernames at registration, you cannot use russian name :P

  • x00x00
    Posts: 1,546

    @bh8vn that's soemthign you can set in config.

    grep is your friend.

Sign In or Register to comment.