diff -r d807dcd7aed7 -r a8891e108c95 plugins/SpecialUserPrefs.php --- 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 .= "