SMF to phpBB3 bbcode trouble -


hi last 3 years site has used smf2 time came move away wont go detail on anyway ive converted of phpbb3 works fine until see quote old system because there differences fails parse quotes example

[quote="mitchap":1ru0x694][/quote:1ru0x694] phpbb3 smf looks [quote="mitchap"][/quote]

i have tried modify bbcode.php file no luck here have far btw regex starting level if :)

    $this->bbcode_cache[$bbcode_id] = array(                     'str' => array(                         '[/quote:$uid]' => $this->bbcode_tpl('quote_close', $bbcode_id),           '[/quote]' => $this->bbcode_tpl('quote_close', $bbcode_id)                     ),                     'preg' => array(                         '#\[quote(?:="(.*?)")?:$uid\]((?!\[quote(?:=".*?")?:$uid\]).)?#ise' => "\$this->bbcode_second_pass_quote('\$1', '\$2')",           '#\[quote(?:=\"(.*?)\")?\](.+)\[/quote\]#ise' => "\$this->bbcode_second_pass_quote('\$1', '\$2')"                     )                 ); 

find in includes/bbcode.php

foreach ($bbcode_ids $bbcode_id) {     switch ($bbcode_id)     { 

and replace case 0: below

        case 0:             if($this->bbcode_uid > 0)             {                 $this->bbcode_cache[$bbcode_id] = array(                     'str' => array(                         '[/quote:$uid]' => $this->bbcode_tpl('quote_close', $bbcode_id)                     ),                     'preg' => array(                         '#\[quote(?:="(.*?)")?:$uid\]((?!\[quote(?:=".*?")?:$uid\]).)?#ise' => "\$this->bbcode_second_pass_quote('\$1', '\$2')"                     )                 );             }             else             {                 $this->bbcode_cache[$bbcode_id] = array(                     'str' => array(                         '[/quote]'  => $this->bbcode_tpl('quote_close', $bbcode_id)                     ),                     'preg' => array(                         '#\[quote(?:="(.*?)")?\]((?!\[quote(?:=".*?")?\]).)?#ise'   => "\$this->bbcode_second_pass_quote('\$1', '\$2')"                     )                 );                               }         break; 


Comments

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -