{{indexmenu_n>250}} ====== EXT_POPUP ====== **Öffnet einen externen Link in einem neuen Pop-Up Fenster.** //(Angaben: Link, Fensterbreite, Fensterhöhe).// Tag: **[EXT_POPUP:link, width, height]link_text[/EXT_POPUP]** E.g. [EXT_POPUP:http://example.com, 800, 600]link_text[/EXT_POPUP] Forum: [[http://forum.phpwcms.org/viewtopic.php?f=8&t=18029|[EXT_POPUP:link, width, height]link_text[/EXT_POPUP]]] Dateiname: rt_ext_popup.php Verzeichnis: /template/inc_script/frontend_render/ **Bedingung:** ##$phpwcms['allow_ext_render'] = 1;## -> [[http://www.phpwcms-docu.de/confincphp_de.phtml|/config/phpwcms/conf.inc.php]] Update KH 07.05.2010: Linkausführung = 1.3.3 modified: KH 01.11.2008 last modified: KH 07.05.2010: Suppressed link execution '; // END inject the js function into head ================= /* A little help ************ custom_link = $1; custom_win_width = $2; custom_win_height = $3; custom_link_text = $4; *****************************/ // Search parameter ********* $my_search = '/\[EXT_POPUP:(.*?),(.*?),(.*?)\](.*?)\[\/EXT_POPUP\]/s'; // The replace parameter **** $my_replace = '$4'; // And do it ====== $content["all"] = preg_replace($my_search, $my_replace, $content["all"]); } // END Only if [EXT_POPUP: exists ==================================== ?> --- //[[flip-flop@myrealbox.com|Knut Heermann (flip-flop)]] 2009/01/23 16:16//