diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index b57f79780..2332bc988 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -109,7 +109,6 @@ else */ - class page_admin extends e_admin_dispatcher { @@ -223,6 +222,13 @@ class page_admin_ui extends e_admin_ui function init() { + + if(varset($_GET['mode'])=='dialog' && varset($_GET['action'])=='dialog') // New Page bbcode in tabs. + { + $this->dialogPage(); + } + + if($this->getQuery('iframe') == 1) { @@ -284,10 +290,11 @@ class page_admin_ui extends e_admin_ui function dialogPage() // FIXME - remove table-rendering when using 'return' ?? { + $count = varset($_GET['count']); $frm = e107::getForm(); $text .= "
"; echo $text; exit; @@ -720,7 +727,7 @@ class page_admin_ui extends e_admin_ui // return; } - + // echo $newData; $page_text = $tp->toDB($newData); diff --git a/e107_core/shortcodes/batch/bbcode_shortcodes.php b/e107_core/shortcodes/batch/bbcode_shortcodes.php index a7771de25..48e1ce477 100644 --- a/e107_core/shortcodes/batch/bbcode_shortcodes.php +++ b/e107_core/shortcodes/batch/bbcode_shortcodes.php @@ -57,8 +57,9 @@ class bbcode_shortcodes extends e_shortcode function bb_newpage($id) { // $data = "[table]\n[tr]\n\t[td]Cell 1[/td]\n\t[td]Cell 2[/td]\n[/tr]\n[/table]"; // works with jquery, but not onclick. - $data = "[newpage]"; - $event = $this->getEvent('addtext',$data,LANHELP_34,1); + // $data = "[newpage]"; + // $event = $this->getEvent('addtext',$data,LANHELP_34,1); + $event = ''; $text = ""; $text .= "