diff --git a/comment.php b/comment.php index 73efa55bf..6ae080849 100644 --- a/comment.php +++ b/comment.php @@ -122,7 +122,7 @@ if(e_AJAX_REQUEST) // TODO improve security $row['user_id'] = USERID; $row['user_name'] = USERNAME; $row['comment_datestamp'] = time(); - $row['comment_blocked'] = (vartrue($pref['comments_moderate']) ? 2 : 0); + $row['comment_blocked'] = (check_class($pref['comments_moderate']) ? 2 : 0); $width = ($pid) ? 5 : 0; diff --git a/e107_admin/header.php b/e107_admin/header.php index 0d83a88ed..380653f0c 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -29,8 +29,8 @@ e107::getDb()->db_Mark_Time('(Header Top)'); e107::js('core', 'colorbox/jquery.colorbox-min.js', 'jquery', 2); e107::css('core', 'colorbox/colorbox.css', 'jquery'); -e107::js('core', 'fancybox/jquery.fancybox-1.3.4.js', 'jquery', 2); -e107::css('core', 'fancybox/jquery.fancybox-1.3.4.css', 'jquery'); +// e107::js('core', 'fancybox/jquery.fancybox-1.3.4.js', 'jquery', 2); +// e107::css('core', 'fancybox/jquery.fancybox-1.3.4.css', 'jquery'); e107::js('core', 'jquery.elastic.js', 'jquery', 2); e107::js('core', 'jquery-ui-timepicker-addon.js', 'jquery', 2); diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index 8d93e4ad4..0e50ab852 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -29,6 +29,36 @@ if(! getperms("1")) include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE); $e_sub_cat = 'prefs'; + +//FIXME temporary fix - need universal solution. +e107::js('inline'," +$(document).ready(function() +{ + var hash = document.location.hash; + if(hash) + { + $('.plugin-navigation a').each(function(index) { + var ot = $(this).attr('href'); + $(ot).hide(); + $(this).closest('li').removeClass('active'); + $(this).switchClass( 'link-active', 'link', 0 ); + }); + var button = '#eplug-nav-' + hash.replace('#', '') + '-prev-nav'; + $(hash).show(); + $(button).switchClass('link', 'link-active', 30 ); + $(button).closest('li').addClass('active'); + } + else + { + $('#core-prefs-main').show(); + } + +}); +","jquery"); + + + + require_once (e_ADMIN."auth.php"); $e_userclass = e107::getUserClass(); @@ -197,7 +227,7 @@ $pref['membersonly_exceptions'] = implode("\n",$pref['membersonly_exceptions']); $text = "