MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
A2Hosting
Moderators: Moderators
Forum RSS feedReply
Multi Quote FIX
AuthorText
AlexVot
Senior Member

Posts: 116
Contributes: 215

Gender: _MALE_
Online: No

Version: 4.0.2
Country: Russia
Languages: Rus, Eng
Date: 22/12/2009 17:45
Multi Quote FIX
#post22979
Site url: http://rufilmz.ru
MemHT version: 4.0.1
Hosting OS: Linux
Error/Problem: Fix multi quote

in the file inc / bbcode.php
FIND
code

        return ($smiles==1) ? bb2smile($string) : $string ;


insert BEFORE:
code

    for ($i=0;$i<10;$i++)
    {
        $string = preg_replace($patterns, $replaces, $string);
    }


In this example, a maximum of 10 Attachment
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 22/12/2009 18:10
Re: Multi Quote FIX
#post22980
Thanks
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
AlexVot
Senior Member

Posts: 116
Contributes: 215

Gender: _MALE_
Online: No

Version: 4.0.2
Country: Russia
Languages: Rus, Eng
Date: 22/12/2009 21:08
Re: Multi Quote FIX
#post22982
or
code

//Extract [quote]...[/quote]
preg_match_all('`[quote](.+?)[/quote]`is',$string,$outstrq,PREG_PATTERN_ORDER);
$numcq = count($outstrq[0]);
for ($i=0;$i<$numcq;$i++)
{
    $string = preg_replace($patterns, $replaces, $string);
}
 

by Evgenii

But 1 option works better
Edited: 22/12/2009 21:48
Delete Edit Quote
 
AlexVot
Senior Member

Posts: 116
Contributes: 215

Gender: _MALE_
Online: No

Version: 4.0.2
Country: Russia
Languages: Rus, Eng
Date: 16/01/2010 13:53
Re: Multi Quote FIX
#post23270
Final fix:

code

        //===========================================
        //MultiQuote by RuFilmz.ru and Prola.ru
        //===========================================
    $er = true;
    while ($er)
    {
      preg_match_all('`[quote](.+?)[/quote]`is',$string,$outstrq,PREG_PATTERN_ORDER);
      if (count($outstrq[0]) == 0) $er = false;
        $string = preg_replace($patterns, $replaces, $string);
    }
    //===========================================
    //End
    //===========================================
 
Delete Edit Quote
 
Reply
Tags Cloud
Twitter updates...
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.232

Username
Password
MemHT Wiki
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo