Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 594
Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 594
Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 594
Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 594
Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 611
Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 705
Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 705
Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 705
Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 705
Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /www/htdocs/v168637/blog/wp-includes/classes.php on line 728
Strict Standards: Redefining already defined constructor for class wpdb in /www/htdocs/v168637/blog/wp-includes/wp-db.php on line 306
Deprecated: Assigning the return value of new by reference is deprecated in /www/htdocs/v168637/blog/wp-includes/cache.php on line 103
Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /www/htdocs/v168637/blog/wp-includes/cache.php on line 425
Deprecated: Assigning the return value of new by reference is deprecated in /www/htdocs/v168637/blog/wp-includes/query.php on line 21
Deprecated: Assigning the return value of new by reference is deprecated in /www/htdocs/v168637/blog/wp-includes/theme.php on line 618
Strict Standards: Redefining already defined constructor for class WP_Dependencies in /www/htdocs/v168637/blog/wp-includes/class.wp-dependencies.php on line 15
Strict Standards: Redefining already defined constructor for class raproject_commentSorter in /www/htdocs/v168637/blog/wp-content/plugins/comment-sorter/comment_sorter.php on line 46
Warning: Illegal string offset 'trackoutbound' in /www/htdocs/v168637/blog/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 577
Warning: Illegal string offset 'trackadsense' in /www/htdocs/v168637/blog/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 586
Warning: Illegal string offset 'position' in /www/htdocs/v168637/blog/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 590
Warning: Illegal string offset 'position' in /www/htdocs/v168637/blog/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 590
Strict Standards: Non-static method InSeriesInternal::compat_hooks() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/in-series/in-series-internal.php on line 1042
Deprecated: Assigning the return value of new by reference is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/mydashboard/mydashboard.php on line 1193
Deprecated: Assigning the return value of new by reference is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/mydashboard/gadgets/default.php on line 72
Strict Standards: Redefining already defined constructor for class ngg_Tags in /www/htdocs/v168637/blog/wp-content/plugins/nextgen-gallery/lib/nggallery.lib.php on line 485
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /www/htdocs/v168637/blog/wp-includes/classes.php:594) in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/htdocs/v168637/blog/wp-includes/classes.php:594) in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121
Strict Standards: Redefining already defined constructor for class ftp_base in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-automatic-upgrade/lib/ftp_class.php on line 56
Strict Standards: Redefining already defined constructor for class ftp in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-automatic-upgrade/lib/ftp_class_pure.php on line 8
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method InSeriesInternal::load_l10n() should not be called statically in /www/htdocs/v168637/blog/wp-includes/plugin.php on line 311
Deprecated: Non-static method Red_Item::get_for_url() should not be called statically, assuming $this from incompatible context in /www/htdocs/v168637/blog/wp-content/plugins/redirection/modules/wordpress.php on line 38
Deprecated: Non-static method wpdb::escape() should not be called statically, assuming $this from incompatible context in /www/htdocs/v168637/blog/wp-content/plugins/redirection/models/redirect.php on line 92
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method InSeriesInternal::load_widgets() should not be called statically in /www/htdocs/v168637/blog/wp-includes/plugin.php on line 311
Strict Standards: Non-static method InSeriesWidgets::widget_series_list_register() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/in-series/in-series-widgets.php on line 153
Strict Standards: Non-static method InSeriesWidgets::widget_series_toc_register() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/in-series/in-series-widgets.php on line 154
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method NAVT::init() should not be called statically in /www/htdocs/v168637/blog/wp-includes/plugin.php on line 311
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 83
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 85
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 87
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 89
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 91
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 95
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 109
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 115
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 124
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 131
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 137
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 137
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 149
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 156
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 163
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 169
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 175
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 181
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 188
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 195
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 196
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 203
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 204
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 211
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 224
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 229
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 234
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 234
Deprecated: Function ereg_replace() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 242
Deprecated: Function ereg_replace() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 244
Deprecated: Function eregi() is deprecated in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/includes/browser.php on line 247
Strict Standards: Non-static method NAVT::install_check() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php on line 77
Strict Standards: Non-static method NAVT::get_installed_version() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php on line 315
Strict Standards: Non-static method NAVT::get_option() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php on line 659
Strict Standards: Non-static method NAVT::get_option() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php on line 316
Strict Standards: Non-static method NAVT::register_scripts() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php on line 78
Strict Standards: Non-static method NAVT::get_url() should not be called statically in /www/htdocs/v168637/blog/wp-content/plugins/wordpress-navigation-list-plugin-navt/app/navt.php on line 698
jQuery(document).ready(function(){
RAProjectCommentSorter.init();
});
var RAProjectCommentSorter = function() {
var $j = jQuery;
var PluginUrl = "http://www.with-open-eyes.com/blog/wp-content/plugins/comment-sorter";
var CommentID = 0; //Used to get the Post ID in Ajax
var HideTrackbacks = "false";
var SortComments = 'dateasc';
function insertInterface() {
if ($j("#comment-sorter-template").length == 0) {
if ($j(".commentlist:first").length > 0) {
$j("#comment-sorter").insertBefore(".commentlist:first");
}
}
$j("#comment-sorter").show();
}
function setupEvents() {
//Toggles the Open/Close link
$j("a#comment-sorter-open").toggle(
function () {
$j("#comment-sorter-container").show();
$j("#comment-sorter-open img").attr("src", PluginUrl + "/images/sort_icon_close.gif");
$j("#comment-sorter-open img").attr("alt", "Close Sort Options");
$j("#comment-sorter-open img").attr("title", "Close Sort Options");
return false;
},
function () {
$j("#comment-sorter-container").hide();
$j("#comment-sorter-open img").attr("src", PluginUrl + "/images/sort_icon_open.gif");
$j("#comment-sorter-open img").attr("alt", "Open Sort Options");
$j("#comment-sorter-open img").attr("title", "Open Sort Options");
return false;
}
);
$j("#comment-sorter_submit").bind("click",function() { formProcessor(); return false;});
}
function hideTrackbacks() {
//Hides Trackbacks
$j("li:has(.comment-sorter-trackback)").hide();
$j(".commentlist div:has(.comment-sorter-trackback)").hide(); //Some theme authors use divs for comments
}
function showTrackbacks() {
//Shows Trackbacks
$j("li:has(.comment-sorter-trackback)").show();
$j(".commentlist div:has(.comment-sorter-trackback)").show(); //Some theme authors use divs for comments
}
//Gets the date asc information
function getDateNameAjax(option) {
$j.ajax({
type: "post",
async: true,
dataType: "text",
url: PluginUrl + '/php/comment-sorter-ajax.php',
timeout: 30000,
global: false,
data: {
option: option,
ID: CommentID
},
success: function(msg) { getComplete(msg); },
error: function(msg) { getFailure(msg); }
})
}
function getComplete(msg) {
if (msg == "0") { getFailure(msg); }
if ($j(".commentlist:first").length > 0) {
var commentList = $j(".commentlist:first").clone(true).empty(); //todo - check for existence
msg = msg.split(',');
var i = 0;
for (var i=0; i < msg.length; i++) {
commentList.append($j("#comment-" + msg[i]).clone(true));
}
commentList.hide();
$j('.commentlist:first').after(commentList);
$j('.commentlist:first').remove(); //remove original comment list
commentList.fadeIn("1300");
if (window.AjaxEditComments) {
AjaxEditComments.init();
}
} else {
getFailure(msg);
}
}
function getFailure(msg) {
alert("Could not sort comments");
};
function formProcessor() {
//trackbacks
if ($j("#comment-sorter-trackbacks:checked").length > 0) {
HideTrackbacks = "true";
hideTrackbacks();
} else {
HideTrackbacks = "false";
showTrackbacks();
}
//Sort the comments. Woot :)
if ($j("#comment-sorter-date_asc:checked").length > 0) {
SortComments = "dateasc";
getDateNameAjax("dateasc");
}
if ($j("#comment-sorter-date_desc:checked").length > 0) {
SortComments = "datedesc";
getDateNameAjax("datedesc");
}
if ($j("#comment-sorter-name_asc:checked").length > 0) {
SortComments = "nameasc";
getDateNameAjax("nameasc");
}
if ($j("#comment-sorter-name_desc:checked").length > 0) {
SortComments = "namedesc";
getDateNameAjax("namedesc");
}
if ($j("#comment-sorter-remember:checked").length > 0) {
rememberSettings('rap_comment_sorter', HideTrackbacks, SortComments);
} else {
createCookie('rap_comment_sorter',"",-1);
}
}
function rememberSettings(cookieName, trackbacks, comments) {
createCookie(cookieName, '' + trackbacks + ',' + comments, 365);
}
function createCookie(name,value,days) { //from http://www.quirksmode.org/js/cookies.html
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
return {
init : function() { //AKA the constructor -
insertInterface();
setupEvents();
//Get a comment ID
if ($j(".commentlist:first").length > 0) {
CommentID = $j(".commentlist li:first").attr("id").match(/([0-9]+)/i)[1]; //todo - Possible sanity check
}
}
};
}();