Announcement

Collapse
No announcement yet.

standard bbcode doesn't work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • standard bbcode doesn't work

    I don't know where I messed up when I find that standard bbcodes don't work anymore. I check options and permissions. Everything looks fine but bbocde stay the same. My quote will just look like this:
    [ quote ]Sample text to quote. Sample text to quote. I put spaces in first quote tag to break it show that you will see what it look like at my forum[/quote]

  • #2
    First, check for any bad file edits that you may have done by accident: Admin CP > MAintenance > Diagnostics > Suspected file versions; replace files that doesn't match up with files from your original zip package. Then, try again.

    If it still doesn't work, disable all hooks via config.php; add this line as a new line immediately after the first <?php
    Code:
    define("DISABLE_HOOKS", true);
    Then, try again. Problem should be gone by now. You can go back, remove the line, and disable each products you have installed one by one to locate the problematic product. Either uninstall it (don't forget to delete associated files if applicable), or find the addons developer for a fix for the problem.
    Best Regards,
    Andy Huang

    Comment


    • #3
      Thanks for your reply, Andy. I followed your instruction but couldn't get the standard bbcodes back. After that I check php.ini. It has both mbstring and iconv configured there like following:
      Code:
      [mbstring]
      ; language for internal character representation.
      mbstring.language = Neutral
      
      ; internal/script encoding.
      ; Some encoding cannot work as internal encoding.
      ; (e.g. SJIS, BIG5, ISO-2022-*)
      mbstring.internal_encoding = UTF-8
      
      ; http input encoding.
      mbstring.http_input = UTF-8
      
      ; http output encoding. mb_output_handler must be
      ; registered as output buffer to function
      mbstring.http_output = UTF-8
      
      ; enable automatic encoding translation accoding to
      ; mbstring.internal_encoding setting. Input chars are
      ; converted to internal encoding by setting this to On.
      ; Note: Do _not_ use automatic encoding translation for
      ;       portable libs/applications.
      mbstring.encoding_translation = On
      
      ; automatic encoding detection order.
      ; automatic encoding detection order.
      ; auto means
      mbstring.detect_order = auto
      
      ; substitute_character used when character cannot be converted
      ; one from another
      mbstring.substitute_character = long
      
      ; overload(replace) single byte functions by mbstring functions.
      ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
      ; etc. Possible values are 0,1,2,4 or combination of them.
      ; For example, 7 for overload everything.
      ; 0: No overload
      ; 1: Overload mail() function
      ; 2: Overload str*() functions
      ; 4: Overload ereg*() functions
      mbstring.func_overload = 7
      Code:
      iconv.input_encoding = UTF-8
      iconv.internal_encoding = UTF-8
      iconv.output_encoding = UTF-8
      I commented out mbstring section and it works But if I leave mbstring section and comment out the iconv section, it doesn't work. That means mbstring is causing trouble.
      I still however have concern that they say mbstring is more effective than iconv.

      And here is more details about my problem:

      bbcode failed:
      Code:
      Tiếng Việt đằng trước (some text with utf-8 specific character on upstream of bbcode)
      [bbcode]Text inside code [/bbcode]
      bbcode parsed OK:
      Code:
      Some ASCII text which doesn't cause problem. 
      [bbcode]Text inside code [/bbcode]
      Tiếng Việt đằng sau (some text with utf-8 specific character on downstream of bbcode)
      Last edited by biocyberman; Fri 18th Jul '08, 6:28am.

      Comment


      • #4
        Many thanks biocyberman. We commented out the mbstring portion and the tags are working perfectly. We had it narrowed down to a parsing issue, but searching for someone who encountered the same problem was the hard part!

        Here's our problem thread just in case it helps anyone search for it:

        http://www.vbulletin.com/forum/showthread.php?t=286980

        Originally posted by biocyberman View Post
        Thanks for your reply, Andy. I followed your instruction but couldn't get the standard bbcodes back. After that I check php.ini. It has both mbstring and iconv configured there like following:
        Code:
        [mbstring]
        ; language for internal character representation.
        mbstring.language = Neutral
        
        ; internal/script encoding.
        ; Some encoding cannot work as internal encoding.
        ; (e.g. SJIS, BIG5, ISO-2022-*)
        mbstring.internal_encoding = UTF-8
        
        ; http input encoding.
        mbstring.http_input = UTF-8
        
        ; http output encoding. mb_output_handler must be
        ; registered as output buffer to function
        mbstring.http_output = UTF-8
        
        ; enable automatic encoding translation accoding to
        ; mbstring.internal_encoding setting. Input chars are
        ; converted to internal encoding by setting this to On.
        ; Note: Do _not_ use automatic encoding translation for
        ;       portable libs/applications.
        mbstring.encoding_translation = On
        
        ; automatic encoding detection order.
        ; automatic encoding detection order.
        ; auto means
        mbstring.detect_order = auto
        
        ; substitute_character used when character cannot be converted
        ; one from another
        mbstring.substitute_character = long
        
        ; overload(replace) single byte functions by mbstring functions.
        ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
        ; etc. Possible values are 0,1,2,4 or combination of them.
        ; For example, 7 for overload everything.
        ; 0: No overload
        ; 1: Overload mail() function
        ; 2: Overload str*() functions
        ; 4: Overload ereg*() functions
        mbstring.func_overload = 7
        Code:
        iconv.input_encoding = UTF-8
        iconv.internal_encoding = UTF-8
        iconv.output_encoding = UTF-8
        I commented out mbstring section and it works But if I leave mbstring section and comment out the iconv section, it doesn't work. That means mbstring is causing trouble.
        I still however have concern that they say mbstring is more effective than iconv.

        And here is more details about my problem:

        bbcode failed:
        Code:
        Tiếng Việt đằng trước (some text with utf-8 specific character on upstream of bbcode)
        [bbcode]Text inside code [/bbcode]
        bbcode parsed OK:
        Code:
        Some ASCII text which doesn't cause problem. 
        [bbcode]Text inside code [/bbcode]
        Tiếng Việt đằng sau (some text with utf-8 specific character on downstream of bbcode)

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X