{{indexmenu_n>250}} ===== EXT_POPUP ===== **Open a extern link in a new pop up window who is e.g. 800px wide and 600px high.** 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]]] Filename: rt_ext_popup.php Folder: /template/inc_script/frontend_render/ Condition: * $phpwcms['allow_ext_render'] = 1; (/config/phpwcms/conf.inc.php) Update KH 07.05.2010: Suppressed link execution = 1.3.3 modified: 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 ==================================== ?>