--- GMMS.php~ 2007-08-30 22:26:20.000000000 +0200 +++ GMMS.php 2007-08-30 22:26:20.000000000 +0200 @@ -41,11 +41,12 @@ function GMMS($content) { +$pos = -1 ; //extract our needed line from content, between '#GMAP_SIT' and ')#' - $pos = strpos($content, "#GMAP_SIT"); +while( $pos = strpos($content, "#GMAP_SIT", $pos+1) ) { //if we can't find our start string, just ignore the original string - if ($pos === false) - return $content; +// if ($pos === false) +// return $content; //if we can't find our end string, just ignore the original string $pos2 = strpos($content,")#",$pos + 2); @@ -69,7 +70,7 @@ $param_arr = explode("|",$param); $content = str_replace("#GMAP_SIT(" . $old_param . ")#",call_user_func("GMAP_SIT",$param_arr),$content); - +} return $content; }