plugins/SpecialUserPrefs.php
changeset 103 a8891e108c95
parent 85 7c68a18a27be
child 119 9de392a67964
child 133 af0f6ec48de3
--- a/plugins/SpecialUserPrefs.php	Sun Aug 26 16:48:15 2007 -0400
+++ b/plugins/SpecialUserPrefs.php	Sun Aug 26 20:45:33 2007 -0400
@@ -41,6 +41,28 @@
   }
 }
 
+$plugins->attachHook('compile_template', 'userprefs_jbox_setup($button, $tb, $menubtn);');
+
+function userprefs_jbox_setup(&$button, &$tb, &$menubtn)
+{
+  global $db, $session, $paths, $template, $plugins; // Common objects
+  
+  if ( $paths->namespace != 'Special' || $paths->cpage['urlname_nons'] != 'Preferences' )
+    return false;
+  
+  $tb .= "<ul>$template->toolbar_menu</ul>";
+  $template->toolbar_menu = '';
+  
+  $button->assign_vars(array(
+      'TEXT' => 'list of registered members',
+      'FLAGS' => '',
+      'PARENTFLAGS' => '',
+      'HREF' => makeUrlNS('Special', 'Memberlist')
+    ));
+  
+  $tb .= $button->run();
+}
+
 function userprefs_menu_html()
 {
   global $userprefs_menu;