Moderator: Integra Moderator
"Michaelo";p="802" wrote:This is not a bug. There is no bbcode assigned for center (centre)à¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦
//-- mod ]) { $text = str_replace("[img]", "", $text); $text = str_replace("[/img]", "", $text); $text = str_replace("[img=special:$uid]", "", $text); $text = str_replace("[img=left:$uid]", "", $text); $text = str_replace("[img=right:$uid]", "", $text); $text = str_replace("[imgrel:$uid]", "", $text); $text = str_replace("[/imgrel:$uid]", "", $text); $text = str_replace("[imgrel=special:$uid]", "", $text); $text = str_replace("[imgrel=left:$uid]", "", $text); $text = str_replace("[imgrel=right:$uid]", "", $text); $text = str_replace("[theme:$uid]", "", $text); $text = str_replace("[theme=special:$uid]", "", $text); $text = str_replace("[theme=left:$uid]", "", $text); $text = str_replace("[theme=right:$uid]", "", $text); $text = str_replace("[/theme:$uid]", "", $text); }//-- fin mod : profile cp --------------------------------------------------------------------------
// LEFT-RIGHT-start // [img=left]image_url_here[/img] code.. $patterns[] = "#[img=left:$uid](.*?)[/img]#si"; $replacements[] = $bbcode_tpl['left']; // [img=right:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[img=right:$uid](.*?)[/img]#si"; $replacements[] = $bbcode_tpl['right']; // [imgrel=left]image_url_here[/imgrel] code.. $patterns[] = "#[imgrel=left:$uid](.*?)[/imgrel:$uid]#si"; $replacements[] = $bbcode_tpl['relleft']; // [img=right:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[imgrel=right:$uid](.*?)[/imgrel:$uid]#si"; $replacements[] = $bbcode_tpl['relright']; // [img=left:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[theme=left:$uid](.*?)[/theme:$uid]#si"; $replacements[] = $bbcode_tpl['themeleft']; // [img=right:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[theme=right:$uid](.*?)[/theme:$uid]#si"; $replacements[] = $bbcode_tpl['themeright'];
// LEFT-RIGHT-start // [img=special]image_url_here[/img] code.. $patterns[] = "#[img=special](.*?)[/img]#si"; $replacements[] = $bbcode_tpl['special']; // [img=left:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[img=left:$uid](.*?)[/img]#si"; $replacements[] = $bbcode_tpl['left']; // [img=right:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[img=right:$uid](.*?)[/img]#si"; $replacements[] = $bbcode_tpl['right']; // [imgrel=special]image_url_here[/imgrel] code.. $patterns[] = "#[imgrel=special:$uid](.*?)[/imgrel:$uid]#si"; $replacements[] = $bbcode_tpl['relspecial']; // [imgrel=left]image_url_here[/imgrel] code.. $patterns[] = "#[imgrel=left:$uid](.*?)[/imgrel:$uid]#si"; $replacements[] = $bbcode_tpl['relleft']; // [img=right:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[imgrel=right:$uid](.*?)[/imgrel:$uid]#si"; $replacements[] = $bbcode_tpl['relright']; // [img=left:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[theme=special:$uid](.*?)[/theme:$uid]#si"; $replacements[] = $bbcode_tpl['themespecial']; // [img=left:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[theme=left:$uid](.*?)[/theme:$uid]#si"; $replacements[] = $bbcode_tpl['themeleft']; // [img=right:24x7t5bs]image_url_here[/img] code.. $patterns[] = "#[theme=right:$uid](.*?)[/theme:$uid]#si"; $replacements[] = $bbcode_tpl['themeright'];
//BBCode Search Mod $text = preg_replace("#[search](.*?)[/search]#si", "[search]\1[/search:$uid]", $text); $text = preg_replace("#[theme]([^ ?&=#"nrt<]*?)[/theme]#sie", "'[theme:$uid]\1' . str_replace(' ', '%20', '\3') . '[/theme:$uid]'", $text); $text = preg_replace("#[theme=left]([^ ?&=#"nrt<]*?)[/theme]#sie", "'[theme=left:$uid]\1' . str_replace(' ', '%20', '\3') . '[/theme:$uid]'", $text); $text = preg_replace("#[theme=right]([^ ?&=#"nrt<]*?)[/theme]#sie", "'[theme=right:$uid]\1' . str_replace(' ', '%20', '\3') . '[/theme:$uid]'", $text); $text = preg_replace("#[imgrel]([^ ?&=#"nrt<]*?)[/imgrel]#sie", "'[imgrel:$uid]\1' . str_replace(' ', '%20', '\3') . '[/imgrel:$uid]'", $text); $text = preg_replace("#[imgrel=left]([^rnt<"]*?)[/imgrel]#sie", "'[imgrel=left:$uid]\1' . str_replace(' ', '%20', '\3') . '[/imgrel:$uid]'", $text); $text = preg_replace("#[imgrel=right]([^rnt<"]*?)[/imgrel]#sie", "'[imgrel=right:$uid]\1' . str_replace(' ', '%20', '\3') . '[/imgrel:$uid]'", $text); // LEFT-RIGHT-start $text = preg_replace("#[img=left]((http|ftp|https|ftps)://)([^rnt<"]*?)[/img]#sie", "'[img=left:$uid]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text); $text = preg_replace("#[img=right]((http|ftp|https|ftps)://)([^rnt<"]*?)[/img]#sie", "'[img=right:$uid]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text);
//BBCode Search Mod $text = preg_replace("#[search](.*?)[/search]#si", "[search]\1[/search:$uid]", $text); $text = preg_replace("#[theme]([^ ?&=#"nrt<]*?)[/theme]#sie", "'[theme:$uid]\1' . str_replace(' ', '%20', '\3') . '[/theme:$uid]'", $text); $text = preg_replace("#[theme=special]([^ ?&=#"nrt<]*?)[/theme]#sie", "'[theme=special:$uid]\1' . str_replace(' ', '%20', '\3') . '[/theme:$uid]'", $text); $text = preg_replace("#[theme=left]([^ ?&=#"nrt<]*?)[/theme]#sie", "'[theme=left:$uid]\1' . str_replace(' ', '%20', '\3') . '[/theme:$uid]'", $text); $text = preg_replace("#[theme=right]([^ ?&=#"nrt<]*?)[/theme]#sie", "'[theme=right:$uid]\1' . str_replace(' ', '%20', '\3') . '[/theme:$uid]'", $text); $text = preg_replace("#[imgrel]([^ ?&=#"nrt<]*?)[/imgrel]#sie", "'[imgrel:$uid]\1' . str_replace(' ', '%20', '\3') . '[/imgrel:$uid]'", $text); $text = preg_replace("#[imgrel=special]([^rnt<"]*?)[/imgrel]#sie", "'[imgrel=special:$uid]\1' . str_replace(' ', '%20', '\3') . '[/imgrel:$uid]'", $text); $text = preg_replace("#[imgrel=left]([^rnt<"]*?)[/imgrel]#sie", "'[imgrel=left:$uid]\1' . str_replace(' ', '%20', '\3') . '[/imgrel:$uid]'", $text); $text = preg_replace("#[imgrel=right]([^rnt<"]*?)[/imgrel]#sie", "'[imgrel=right:$uid]\1' . str_replace(' ', '%20', '\3') . '[/imgrel:$uid]'", $text); // LEFT-RIGHT-start $text = preg_replace("#[img=special]((http|ftp|https|ftps)://)([^rnt<"]*?)[/img]#sie", "'[img=special:$uid]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text); $text = preg_replace("#[img=left]((http|ftp|https|ftps)://)([^rnt<"]*?)[/img]#sie", "'[img=left:$uid]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text); $text = preg_replace("#[img=right]((http|ftp|https|ftps)://)([^rnt<"]*?)[/img]#sie", "'[img=right:$uid]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text);
img_help = "Insert Image]http://image path[/img]";
function BBCimg() { var FoundErrors = ''; var enterType = prompt("Enter image alignment]"+enterURL+"[/img]"; }else if (enterType == "left" || enterType == "Left" || enterType == "LEFT"){ var ToAdd = "[img=left:24x7t5bs]"+enterURL+"[/img]"; }else{ var ToAdd = "[flash=,:24x7t5bs]"+enterURL+"[/flash:24x7t5bs]"; } BBCodeSelection(ToAdd,"",99,"");}
function BBCimg() { var FoundErrors = ''; var enterType = prompt("Enter image alignment]"+enterURL+"[/img]"; }else if (enterType == "left" || enterType == "Left" || enterType == "LEFT"){ var ToAdd = "[img=left:24x7t5bs]"+enterURL+"[/img]"; }else if (enterType == "special" || enterType == "Special" || enterType == "SPECIAL"){ var ToAdd = "[img=special]"+enterURL+"[/img]"; }else{ var ToAdd = "[flash=,:24x7t5bs]"+enterURL+"[/flash:24x7t5bs]"; } BBCodeSelection(ToAdd,"",99,"");}
<BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END>
<BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END><BEGIN><img><END>
"Michaelo";p="2760" wrote:Evolver, this work perfectly for indirect images... Real nice job.
Mike
Registered users: App360MonitorBot, Bing [Bot], Helter