Announcement

Collapse
No announcement yet.

Syntax error in /include/vb5/template/bbcode.php

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

  • Syntax error in /include/vb5/template/bbcode.php

    I found some error in that bbcode.php file which can lead to a lot of bbcode parsing error and even failure of some other product;

    here is a workaround :

    In /include/vb5/template/bbcode.php

    line 349, replace :
    PHP Code:
       case 'socialmessage':
        
    $dohtml $this->defaultOptions[$forumid]['dohtml'];
        
    $dobbcode $this->defaultOptions[$forumid]['dobbcode'];
        
    $dobbimagecode $this->defaultOptions[$forumid]['dobbimagecode'];
        
    $dosmilies $this->defaultOptions[$forumid]['dosmilies'];
        break; 
    with
    PHP Code:
       case 'socialmessage':
        
    $dohtml self::$defaultOptions[$forumid]['dohtml'];
        
    $dobbcode self::$defaultOptions[$forumid]['dobbcode'];
        
    $dobbimagecode self::$defaultOptions[$forumid]['dobbimagecode'];
        
    $dosmilies self::$defaultOptions[$forumid]['dosmilies'];
        break; 
    line 369, replace :
    PHP Code:
       case 'nonforum':
        
    $dohtml $this->defaultOptions['nonforum']['dohtml'];
        
    $dobbcode $this->defaultOptions['nonforum']['dobbcode'];
        
    $dobbimagecode $this->defaultOptions['nonforum']['dobbimagecode'];
        
    $dosmilies $this->defaultOptions['nonforum']['dosmilies'];
        break; 
    with
    PHP Code:
       case 'nonforum':
        
    $dohtml self::$defaultOptions['nonforum']['dohtml'];
        
    $dobbcode self::$defaultOptions['nonforum']['dobbcode'];
        
    $dobbimagecode self::$defaultOptions['nonforum']['dobbimagecode'];
        
    $dosmilies self::$defaultOptions['nonforum']['dosmilies'];
        break; 
    Last edited by mbozio; Mon 11th Nov '13, 3:03am.

Related Topics

Collapse

Working...
X