var SITE_URL = "https://chatplayshare.com"; if(!URL_ROOT){ var URL_ROOT = "/"; } var plugin = { name : "comments", comments : {}, commentTimeout : null, commentsParsing : false, addingComment : false, replyingComment : false, newChild : false, newChildParent : false, options :{}, createOverlay: function(container, button){ button.html(""); container.append("
"); }, hideOverlay: function(container, button){ button.html(""); container.find(".details_overlay").remove(); }, integrate : function(plugins,options){ var framework = this; var headID = document.getElementsByTagName("head")[0]; if(document.getElementById("comments_plugin_css") == null){ var cssNode = document.createElement('link'); cssNode.id = "comments_plugin_css"; cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; cssNode.href = URLROOT + 'plugins/comments/css/comments.css'; cssNode.media = 'screen'; headID.appendChild(cssNode); } if(document.getElementById("comments_plugin_mobile_css") == null){ var cssNode = document.createElement('link'); cssNode.id = "comments_plugin_mobile_css"; cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; cssNode.href = URLROOT + 'plugins/comments/css/mobile/comments.css'; cssNode.media = 'screen'; headID.appendChild(cssNode); } var plugin = this; this.options = options; $(document).ready(function(){ var html = "\
"; if(options.title){ html = html + "

" + options.title + "

"; } if($d.session && $d.session.isLoggedIn()){ html += "
\
\
\
"; if(options.anonymous){ html += ""; } html += "\ \ \
\
\
"; }else{ html += ""; } html +="
\ \
\
    \
    \ "; var ele = $('#' + options.element) ele.append(html); if(typeof(uploader) != "undefined"){ new uploader({ field:ele.find(".comment_box_container"), button:ele.find(".upload_button").get(0), insertBefore:false, containField:false, stacked: false, fitted: true, floatRight:false }); ele.find(".comment_box_buttons").css({position:"absolute"}); } var textarea = ele.find("#comment"); var addComment = ele.find(".send_button"); if(addComment.length > 0){ addComment.click(function(){ framework.createOverlay(ele.find(".comment_box_container"),addComment); plugin.addComment(textarea,null,function(comment){ framework.hideOverlay(ele.find(".comment_box_container"),addComment); if(typeof(comment.error) == "undefined"){ textarea.html(""); } }); }); } var checkScroll = function(field){ console.log(field.clientHeight); if(field.clientHeight < field.scrollHeight || field.clientHeight >= 67){ ele.addClass("comment_scroll"); }else{ ele.removeClass("comment_scroll"); } }; textarea.keyup(function(e){ var Ucode = e.keyCode? e.keyCode : e.charCode; checkScroll(this); }); //setupCheckboxes(); plugin.comments = options.comments; if(typeof(plugin.comments) != "object"){ plugin.comments = {}; } plugin.processComments(plugin.comments, options.entityID); if($("#comment_sort").length > 0){ $("#comment_sort").change(function(){ $d.helpers.showOverlay($("#comments_list_container")); $d.network.post(URLROOT+"comments/sort/" + options.type,{entity:options.entityID,sort:$("#comment_sort").val(),session_id:""},function(result){ options.comments = result; plugin.processComments(result) }); }); } if("" != ""){ if(typeof(typeof window[""]) === "function"){ ; } } $d.initCheckboxes(ele); $d.initSelects(ele); }); }, processComment : function(comment,append,element,fadeIn){ var plugin = this; var framework = this; if(comment != null){ var image = ""; if(comment.image.startsWith("http")){ image = comment.image; }else{ image = SITE_URL + comment.image; } var commentUserImage = ""; var commentUsername = comment.username; if(comment.link && comment.link != "" && comment.deleted == false) { commentUserImage = ""; commentUsername = ""+comment.username+""; } var li = $(document.createElement("li")); li.addClass("comment_item clearfix"); li.attr("data-id",comment.id); li.attr("point-count",comment.score); li.attr("data-parent",comment.parent); li.attr("data-level",comment.level); li.attr("data-type",comment.type); li.attr("data-children",0); li.attr("data-guildings",comment.guilds); li.addClass("level-"+comment.level); if(comment.parent > 0){ var p = $("li[data-id="+comment.parent+"] > ul"); if(p.length > 0){ element = p; } } if(comment.level > 1){ li.addClass("sub-comment"); var parent = $(".comment_item[data-id='"+comment.parent+"']"); parent.addClass("has-children"); parent.data("children",parent.data("children") + 1); if(parent.length){ var setText = function(parent,e){ var text = "Show"; if(e.hasClass("collapsed")){ text = "Hide"; } var coText = "comment"; if(parent.data("children") > 1){ coText += "s"; } e.attr("title",text + " " + parent.data("children") + " " + coText); e.find(".comment_count").html(parent.data("children")); }; var e = parent.find("> .comment_container .collapse_comments"); if(e.length == 0){ parent.find(".comment_left").prepend("1"); e = parent.find("> .comment_container .collapse_comments"); console.log(e); e.click(function(){ var ele = $(this); if(parent.hasClass("collapsed")){ parent.removeClass("collapsed"); }else{ parent.addClass("collapsed"); } setText(parent,e); }); } if(e.length > 0){ setText(parent,e); } } } var container = $(document.createElement("div")); container.addClass("comment_container"); container.html("\
    \
    "+commentUserImage+"
    \
    \
    "+commentUsername+", "+comment.datetime+"
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    \
    "+comment.score+" points
    \
    \
    \
    \ "); li.append(container); li.append(""); if(comment.loggedIn){ if(comment.deleted == false){ container.find(".comment_left").append(""); container.find(".comment_voting_buttons").append("\ "); var upvote = container.find(".upVote"); if(upvote.length > 0){ upvote.click(function(){ plugin.upvote(comment.id); }); } var downvote = container.find(".downVote"); if(downvote.length > 0){ downvote.click(function(){ plugin.downvote(comment.id); }); } var guildButton = container.find(".comment_guild"); var updateGuildCount = function(){ var con = guildButton.find(".comment_guilds"); if(li.data("guildings") > 0){ con.html(li.data("guildings")); li.addClass("guilded"); }else{ con.html(""); li.removeClass("guilded"); } }; updateGuildCount(); guildButton.click(function(){ var doGuild = function(){}; doGuild = function(c){ $d.network.post(URLROOT+"credits/guild",{entity:comment.id,type:"comment",uid:comment.user,confirm:c},function(data){ if(data == "confirm"){ if(confirm("You've already guilded this comment are you sure you'd like to give it another one?")){ doGuild(1); } }else{ if(data != false){ li.data("guildings",data); }else{ alert("You don't have enough credits"); } updateGuildCount(); } }); }; doGuild(0); }); var replyButton = $(""); container.find(".comment_buttons").append(replyButton); replyButton.click(function(){ var existing = $(".comment_reply_box[data-parent="+comment.id+"]"); $(".comment_reply_box").remove(); $(".replying").removeClass("replying"); if(!existing.length){ container.addClass("replying"); var replyBox = $("
  • \
    \
    \
    \ \ \
    \
    \
  • "); if(typeof(uploader) != "undefined"){ new uploader({ field:$(replyBox).find(".comment_reply_content"), button:$(replyBox).find(".upload_button").get(0), insertBefore:false, containField:false, stacked: false, fitted: true, floatRight:false }); }else{ replyBox.find(".upload_button").hide(); } var textarea = replyBox.find(".textarea"); if(comment.level == 21){ textarea.html("@"+comment.username + "  "); } var checkScroll = function(field){ if(field.clientHeight < field.scrollHeight || field.clientHeight >= 65){ $(replyBox).addClass("comment_scroll"); }else{ $(replyBox).removeClass("comment_scroll"); } }; textarea.keyup(function(e){ var Ucode = e.keyCode? e.keyCode : e.charCode; if(Ucode == 13) { if(e.shiftKey == false){ e.preventDefault(); $(this).parent().parent().parent().find(".send_button").click(); return false; }else{ checkScroll(this); } }else{ checkScroll(this); } }); replyBox.find(".send_button").click(function(){ var text = $(this).parent().parent().parent().find(".textarea"); var par = $(this).parent().parent().parent(); var button = $(this); framework.createOverlay(text.parent(),$(this)); var p = par.data("parent"); if(comment.level == 21){ p = par.data("cparent"); } plugin.addComment(text,p,function(comment){ if(typeof(comment.error) == "undefined"){ par.remove(); container.removeClass("replying"); }else{ framework.hideOverlay(text.parent(),button); } }); }); container.after(replyBox); textarea.focus(); } }); if(comment.delete == true){ li.addClass("deleteable"); var deleteButton = $(""); container.find(".comment_buttons").append(deleteButton); deleteButton.click(function(){ $(".comment_reply_box").remove(); container.removeClass("replying"); if(confirm("Are you sure you want to delete this comment?")){ var comment = $(this).attr("data-id"); var p = $(this).parent().parent().parent().parent(); var type = p.parent().data("type"); $d.helpers.showOverlay(p,"",false,false); $d.network.post(URLROOT+"comments/delete/" + type,{id:comment,session_id:""},function(){ plugin.comments[comment] = null; var children = $(".comment_item[data-parent="+comment+"]"); if(children.length > 0){ p.find(".comment_username").html("deleted"); p.find(".comment_reply").remove(); container.removeClass("replying"); p.find(".comment_delete").remove(); p.find(".comment_voting_buttons").remove(); p.addClass("comment_deleted"); p.find(".comment_content").html("[deleted]"); $d.helpers.hideOverlay(); }else{ p.remove(); } }); } }); } }else{ container.addClass("comment_deleted"); } } if(comment.previews && comment.previews.length > 0){ } var content = container.find(".comment_content"); if(content.length > 0) { content.html("

    "+comment.comment+"

    "); } if(fadeIn == true){ li.hide(); } if(typeof(append) != "undefined" && append == true && typeof(element) != "undefined" && element != null){ element.append(li); }else{ element.prepend(li); } if(fadeIn == true){ li.fadeIn(500); } if(typeof(comment.children) != "undefined" && comment.children != null){ for(var x in comment.children){ plugin.processComment(comment.children[x],true,element); } } return li; } }, processComments : function(comments, id) { var plugin = this; var process = function(comments) { if(comments && typeof(comments) != "undefined" && comments != null) { var element = $("#comments_list"); element.html(""); var count = 0; for(var commentIndex in comments) { var comment = comments[commentIndex]; if(comment != null){ plugin.processComment(comment,true,element); } } } }; if(comments && typeof(comments) != "undefined" && comments != null) { process(comments); plugin.updateList(); $d.helpers.hideOverlay(); } }, updateList : function(){ $("#comments_list li.comment_no_comment").remove(); var commentList = $("#comments_list li"); if(commentList.length > 1){ $("#comment_sort").css({display:"block"}); }else{ $("#comment_sort").css({display:"none"}); } if(commentList.length == 0){ var li = $(document.createElement("li")); li.addClass("comment_item clearfix comment_no_comment"); if($d.session && $d.session.isLoggedIn()){ li.html("
    Be the first to comment!
    "); }else{ //li.html("
    Login to comment
    "); } $("#comments_list").append(li); } }, addComment : function(element,parent,callback) { var plugin = this; if(typeof(parent) == "undefined" || parent == null){ parent = 0; } if(plugin.addingComment == false){ plugin.addingComment = true; if(typeof(element) != "undefined" && element != null){ var text = $(element); } else{ var text = $("#comment"); } if(text.length > 0) { var isDiv = false; if(text.is("div")){ isDiv = true; var content = $d.helpers.stripHTML(text.html()); }else{var content = text.val();} var domField = null; if(element){ domField = element.parent().get(0); if(domField.uploader){ var used = {}; for(var x in domField.uploader.uploads){ var upload = domField.uploader.uploads[x]; if(upload != null){ if(upload.url){ if(!used[upload.url]){ content += " " + upload.url.replace("%2F","/"); used[upload.url] = true; } } } } } } if(content == "") { alert("Please enter a comment"); plugin.addingComment = false; } else { var anonymous = false; if(plugin.options.anonymous){ var anonymous = document.getElementById("comment_anonymous").checked; } if(anonymous == true) {anonymous = 1;} else {anonymous = 0;} if(!isDiv){ text.attr("disabled",true); text.css({width:"69%"}); var loading = $("#comment_loading").css({display:"block"}); } $d.network.request({ type:"POST", url:URLROOT+"comments/save/" + plugin.options.type, data:{id:plugin.options.entityID, content:content, anonymous:anonymous, parent:parent, session_id:""} }).done(function(result){ if(result != "") { var newComment = JSON.parse(result); if(callback){ try{callback(newComment);} catch(e){} } if(typeof(newComment.error) == "undefined"){ if(domField != null && domField.uploader){ domField.uploader.clear(); } text.val(""); plugin.comments[newComment.id] = newComment; $("li[data-id="+newComment.parent+"]").addClass("collapsed"); var pComment = plugin.processComment(newComment,false,$("#comments_list"),true); plugin.updateList(); }else{ if(newComment.error == "spam"){ var element = $("#comments_list"); if($("#comments_list #spam_error_wait").length > 0){ $("#comments_list #spam_error_wait").html(newComment.wait); } else { element.prepend("

    You're doing the thing too quickly please wait " + newComment.wait + " seconds

    "); } } } } else { alert("Could not post your comment, please try again"); } }).always(function(result){ if(!isDiv){ text.attr("disabled",false); text.attr("style",''); loading.css({display:"none"}); } plugin.addingComment = false; }); } } } }, downvote : function(id) { var plugin = this; var uoption = $(".comment_upvote_"+id); var doption = $(".comment_downvote_"+id); var comment = $(".comment_item[data-id="+id+"]"); var points = parseInt(comment.attr("point-count")); if(doption.hasClass("selected")) { doption.removeClass("selected"); points++; } else if(uoption.hasClass("selected")) { uoption.removeClass("selected"); doption.addClass("selected"); points--; points--; } else { doption.addClass("selected"); points--; } if(plugin.comments[id]){ plugin.comments[id].upclass = ""; plugin.comments[id].downclass = ""; if(doption.hasClass("selected")){ plugin.comments[id].upclass = ""; plugin.comments[id].downclass = "selected"; }else if(uoption.hasClass("selected")){ plugin.comments[id].upclass = "selected"; plugin.comments[id].downclass = ""; } plugin.comments[id].score = points; } comment.attr("point-count",points); comment.find(".comment_score").first().html(points + " points"); $d.network.post(URLROOT+"comments/downVote/" + plugin.options.type, {cid:id,session_id:""}, function(result) {}); }, upvote : function(id) { var plugin = this; var uoption = $(".comment_upvote_"+id); var doption = $(".comment_downvote_"+id); var comment = $(".comment_item[data-id="+id+"]"); var index = id; var points = parseInt(comment.attr("point-count")); if(uoption.hasClass("selected")) { uoption.removeClass("selected"); points--; } else if(doption.hasClass("selected")) { doption.removeClass("selected"); uoption.addClass("selected"); points++; points++; } else { uoption.addClass("selected"); points++; } if(plugin.comments[id]){ plugin.comments[id].upclass = ""; plugin.comments[id].downclass = ""; if(doption.hasClass("selected")){ plugin.comments[id].upclass = ""; plugin.comments[id].downclass = "selected"; }else if(uoption.hasClass("selected")){ plugin.comments[id].upclass = "selected"; plugin.comments[id].downclass = ""; } plugin.comments[id].score = points; } comment.attr("point-count",points); comment.find(".comment_score").first().html(points + " points"); $d.network.post(URLROOT+"comments/upVote/" + plugin.options.type, {cid:id,session_id:""}, function(result) {}); } }; var options = { type:"profile", anonymous : "", comments : [{"id":3491,"user":85876,"comment":"James are you okay","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/ayciate","date":"2018-07-16","delete":false,"datetime":"Jul 16th 2018 17:11","timestamp":"1531761104","loggedIn":false,"username":"ayciate","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":3492,"user":1,"comment":"Depends, are you asking or is it that damned toaster","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-17","delete":false,"datetime":"Jul 17th 2018 09:57","timestamp":"1531821459","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":3491,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3488,"user":1,"comment":"test","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 13:44","timestamp":"1531575899","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3477,"user":1,"comment":"test4","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:42","timestamp":"1531572166","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":3479,"user":1,"comment":"test2","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:44","timestamp":"1531572254","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[{"id":3480,"user":1,"comment":"test3","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:44","timestamp":"1531572258","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":0,"level":3,"children":[],"deleted":0,"parent":3479,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3477,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3478,"user":1,"comment":"test","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:43","timestamp":"1531572233","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":3477,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3476,"user":1,"comment":"test3","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:41","timestamp":"1531572115","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":3481,"user":1,"comment":"test","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:50","timestamp":"1531572614","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[{"id":3482,"user":1,"comment":"fdssff","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:50","timestamp":"1531572624","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":3,"children":[{"id":3484,"user":1,"comment":"test3","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 13:30","timestamp":"1531575031","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":4,"children":[],"deleted":0,"parent":3482,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3483,"user":1,"comment":"sdsdf","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:50","timestamp":"1531572626","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":4,"children":[],"deleted":0,"parent":3482,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3481,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3476,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3475,"user":1,"comment":"test2","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:41","timestamp":"1531572085","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3474,"user":1,"comment":"test123","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:12","timestamp":"1531570373","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3473,"user":1,"comment":"trest","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:09","timestamp":"1531570167","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3472,"user":1,"comment":"test","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 12:03","timestamp":"1531569829","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3471,"user":1,"comment":"test","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 11:57","timestamp":"1531569449","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3447,"user":1,"comment":"test","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-12","delete":false,"datetime":"Jul 12th 2018 15:44","timestamp":"1531410293","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":3448,"user":1,"comment":"1","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-12","delete":false,"datetime":"Jul 12th 2018 15:44","timestamp":"1531410296","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[{"id":3449,"user":1,"comment":"2","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-12","delete":false,"datetime":"Jul 12th 2018 15:44","timestamp":"1531410299","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":3,"children":[{"id":3450,"user":1,"comment":"3","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-12","delete":false,"datetime":"Jul 12th 2018 15:45","timestamp":"1531410303","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":4,"children":[{"id":3451,"user":1,"comment":"4","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-12","delete":false,"datetime":"Jul 12th 2018 15:45","timestamp":"1531410306","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":5,"children":[{"id":3452,"user":1,"comment":"5","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-12","delete":false,"datetime":"Jul 12th 2018 15:45","timestamp":"1531410309","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":6,"children":[{"id":3453,"user":1,"comment":"6","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-12","delete":false,"datetime":"Jul 12th 2018 15:45","timestamp":"1531410312","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":7,"children":[{"id":3454,"user":85876,"comment":"7","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/ayciate","date":"2018-07-12","delete":false,"datetime":"Jul 12th 2018 20:20","timestamp":"1531426823","loggedIn":false,"username":"ayciate","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":8,"children":[{"id":3485,"user":1,"comment":"8","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 13:31","timestamp":"1531575103","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":9,"children":[{"id":3486,"user":1,"comment":"9","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 13:35","timestamp":"1531575306","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":10,"children":[{"id":3487,"user":1,"comment":"10","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2018-07-14","delete":false,"datetime":"Jul 14th 2018 13:44","timestamp":"1531575885","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":11,"children":[],"deleted":0,"parent":3486,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3485,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3454,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3453,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3452,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3451,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3450,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3449,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3448,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":3447,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3442,"user":85695,"comment":"does a very good job","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/dogsarethebest","date":"2018-06-13","delete":false,"datetime":"Jun 13th 2018 19:29","timestamp":"1528918165","loggedIn":false,"username":"dogsarethebest","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3386,"user":53456,"comment":"sdfsdfd","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/CharlieBrownLovesTheClowns","date":"2017-11-06","delete":false,"datetime":"Nov 06th 2017 22:25","timestamp":"1510007150","loggedIn":false,"username":"CharlieBrownLovesTheClowns","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3385,"user":53456,"comment":"sdfdsf","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/CharlieBrownLovesTheClowns","date":"2017-11-06","delete":false,"datetime":"Nov 06th 2017 22:25","timestamp":"1510007121","loggedIn":false,"username":"CharlieBrownLovesTheClowns","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":3384,"user":53456,"comment":"Simply the best","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/CharlieBrownLovesTheClowns","date":"2017-11-06","delete":false,"datetime":"Nov 06th 2017 22:23","timestamp":"1510007009","loggedIn":false,"username":"CharlieBrownLovesTheClowns","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2847,"user":29209,"comment":"Whoa, one day I wish to have this many comments on MY profile","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/umbrena","date":"2016-03-04","delete":false,"datetime":"Mar 04th 2016 18:03","timestamp":"1457114583","loggedIn":false,"username":"umbrena","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2294,"user":-1,"comment":"[deleted]<\/span>","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"#","date":"2016-01-12","delete":false,"datetime":"Jan 12th 2016 18:10","timestamp":"1452622238","loggedIn":false,"username":"deleted","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[{"id":2295,"user":1,"comment":"Ummm... no","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2016-01-12","delete":false,"datetime":"Jan 12th 2016 18:13","timestamp":"1452622383","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":2294,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":1,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2224,"user":1,"comment":"This is a test please ignore [link<\/a>]","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2015-12-27","delete":false,"datetime":"Dec 27th 2015 16:27","timestamp":"1451233661","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":3,"level":1,"children":[{"id":3416,"user":42081,"comment":"*ignores*","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/DigityDog","date":"2018-04-17","delete":false,"datetime":"Apr 17th 2018 21:20","timestamp":"1524000051","loggedIn":false,"username":"DigityDog","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":2224,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":16,"type":"2","type_string":"profile"},{"id":2206,"user":53456,"comment":"And iiiiiii eeeiii","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/CharlieBrownLovesTheClowns","date":"2015-12-16","delete":false,"datetime":"Dec 16th 2015 13:32","timestamp":"1450272761","loggedIn":false,"username":"CharlieBrownLovesTheClowns","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2205,"user":53456,"comment":"123","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/CharlieBrownLovesTheClowns","date":"2015-12-16","delete":false,"datetime":"Dec 16th 2015 13:21","timestamp":"1450272103","loggedIn":false,"username":"CharlieBrownLovesTheClowns","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2165,"user":78221,"comment":"You need a positive comment. All hail the creator of this site!","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/Fyrjefe","date":"2015-11-21","delete":false,"datetime":"Nov 21st 2015 18:26","timestamp":"1448130391","loggedIn":false,"username":"Fyrjefe","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2164,"user":-1,"comment":"HEY WHAT'S UP HELLO","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"","date":"2015-11-20","delete":false,"datetime":"Nov 20th 2015 18:02","timestamp":"1448042541","loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2163,"user":-1,"comment":"what the fuck you want","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"","date":"2015-11-20","delete":false,"datetime":"Nov 20th 2015 18:00","timestamp":"1448042405","loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2162,"user":72726,"comment":"YOUR MOM","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/gargantuanspork","date":"2015-11-20","delete":false,"datetime":"Nov 20th 2015 17:57","timestamp":"1448042235","loggedIn":false,"username":"gargantuanspork","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2161,"user":77632,"comment":"Jams is super cool guy. 10\/10","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/IAmNotACity","date":"2015-11-20","delete":false,"datetime":"Nov 20th 2015 17:54","timestamp":"1448042052","loggedIn":false,"username":"IAmNotACity","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2160,"user":28916,"comment":"No.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/CapnKrunchy","date":"2015-11-20","delete":false,"datetime":"Nov 20th 2015 17:53","timestamp":"1448042024","loggedIn":false,"username":"CapnKrunchy","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2109,"user":51292,"comment":"I bet you smell good.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/purplepotatoes","date":"2015-09-28","delete":false,"datetime":"Sep 28th 2015 07:00","timestamp":"1443423608","loggedIn":false,"username":"purplepotatoes","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":2078,"user":75358,"comment":"*stalk stalk stalk*","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/tittysprinklesundae","date":"2015-08-19","delete":false,"datetime":"Aug 19th 2015 18:46","timestamp":"1440009962","loggedIn":false,"username":"tittysprinklesundae","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1980,"user":57315,"comment":"poop","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/superjenjen","date":"2015-05-05","delete":false,"datetime":"May 05th 2015 20:39","timestamp":"1430858353","loggedIn":false,"username":"superjenjen","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1962,"user":55657,"comment":"And you're a lobsterback","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/TouchMyAwesomeButt","date":"2015-05-01","delete":false,"datetime":"May 01st 2015 21:32","timestamp":"1430515938","loggedIn":false,"username":"TouchMyAwesomeButt","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1959,"user":61823,"comment":"I agree with Fawxy.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/PastaRou","date":"2015-05-01","delete":false,"datetime":"May 01st 2015 16:34","timestamp":"1430498076","loggedIn":false,"username":"PastaRou","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1958,"user":58055,"comment":"heres your comment","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheFailMaster","date":"2015-05-01","delete":false,"datetime":"May 01st 2015 16:34","timestamp":"1430498068","loggedIn":false,"username":"TheFailMaster","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1918,"user":29209,"comment":"I still think next year for April 1st, you should pick a bunch of different Rowan Atkinson's instead of Kevin Spacey","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/umbrena","date":"2015-04-09","delete":false,"datetime":"Apr 09th 2015 19:19","timestamp":"1428607190","loggedIn":false,"username":"umbrena","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":0,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1917,"user":21157,"comment":"pew pew","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/EvilReptar","date":"2015-04-09","delete":false,"datetime":"Apr 09th 2015 19:18","timestamp":"1428607130","loggedIn":false,"username":"EvilReptar","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1916,"user":12038,"comment":"you're a butt","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/Fawxy","date":"2015-04-09","delete":false,"datetime":"Apr 09th 2015 19:18","timestamp":"1428607094","loggedIn":false,"username":"Fawxy","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":5,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1865,"user":21760,"comment":"tits","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/andypegg28","date":"2015-03-13","delete":false,"datetime":"Mar 13th 2015 15:59","timestamp":"1426262343","loggedIn":false,"username":"andypegg28","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":1837,"user":51292,"comment":".","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/purplepotatoes","date":"2015-03-06","delete":false,"datetime":"Mar 06th 2015 08:37","timestamp":"1425631077","loggedIn":false,"username":"purplepotatoes","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":1,"type":"2","type_string":"profile"},{"id":1836,"user":53456,"comment":"Hey","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/CharlieBrownLovesTheClowns","date":"2015-03-05","delete":false,"datetime":"Mar 05th 2015 23:22","timestamp":"1425597742","loggedIn":false,"username":"CharlieBrownLovesTheClowns","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":1,"type":"2","type_string":"profile"},{"id":1324,"user":44025,"comment":"Only seemed right I take your wall's virginity too....
    \n
    \n
    \nFIRST
    @Sbury<\/a>
    \n","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/cakebiatch","date":"2015-01-23","delete":false,"datetime":"Jan 23rd 2015 01:12","timestamp":"1421975552","loggedIn":false,"username":"cakebiatch","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":655,"user":56195,"comment":"Ha, nope. Ain't nobody got time fo dat!","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/SpunkyLulu","date":"2014-12-12","delete":false,"datetime":"Dec 12th 2014 18:42","timestamp":"1418409738","loggedIn":false,"username":"SpunkyLulu","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":653,"user":56195,"comment":"Sure. But at the same time the awkwardness is quite entertaining. ","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/SpunkyLulu","date":"2014-12-12","delete":false,"datetime":"Dec 12th 2014 03:31","timestamp":"1418355115","loggedIn":false,"username":"SpunkyLulu","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":651,"user":56195,"comment":"Ahh thats interesting. I dont know how to take that as a compliment or an insult xD","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/SpunkyLulu","date":"2014-12-11","delete":false,"datetime":"Dec 11th 2014 22:47","timestamp":"1418338035","loggedIn":false,"username":"SpunkyLulu","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":649,"user":1,"comment":"test","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2014-12-09","delete":false,"datetime":"Dec 09th 2014 19:19","timestamp":"1418152779","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":645,"user":56195,"comment":"Hahaha. Thanks? I m kinda confused on the scary part xD. ","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/SpunkyLulu","date":"2014-12-09","delete":false,"datetime":"Dec 09th 2014 00:12","timestamp":"1418083949","loggedIn":false,"username":"SpunkyLulu","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":528,"user":50550,"comment":"I am billy","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/Sharknado2012","date":"2014-10-12","delete":false,"datetime":"Oct 12th 2014 21:46","timestamp":"1413150417","loggedIn":false,"username":"Sharknado2012","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":475,"user":45838,"comment":"Nowt wrong with Pot Noodles. Many a long work day I've survived only with a pot of Chicken and Mushroom.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/RazerWolf","date":"2014-09-22","delete":false,"datetime":"Sep 22nd 2014 13:39","timestamp":"1411393164","loggedIn":false,"username":"RazerWolf","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":266,"user":1,"comment":"I love pancakes","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2014-07-17","delete":false,"datetime":"Jul 17th 2014 10:35","timestamp":"1405593302","loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":261,"user":21157,"comment":"*unzips*","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/EvilReptar","date":"2014-07-14","delete":false,"datetime":"Jul 14th 2014 08:52","timestamp":"1405327965","loggedIn":false,"username":"EvilReptar","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":260,"user":-1,"comment":"Yes","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"","date":"2014-07-14","delete":false,"datetime":"Jul 14th 2014 08:51","timestamp":"1405327919","loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":200,"user":2837,"comment":"*WATCHES BACK*","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/CommonWhiteGirl","date":"2014-06-13","delete":false,"datetime":"Jun 13th 2014 03:03","timestamp":"1402628605","loggedIn":false,"username":"CommonWhiteGirl","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"},{"id":115,"user":-1,"comment":"hi","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"","date":"2014-06-11","delete":false,"datetime":"Jun 11th 2014 12:21","timestamp":"1402489276","loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":1,"guilds":0,"type":"2","type_string":"profile"}], entityID : "1", title : "", element : "comments", buttonText : "Add Comment", buttonClasses : "small_button small_button_green", answerClasses : "" }; if(typeof($d) == "undefined"){ $d = { initCheckboxes:function(element){ element.find("input[type=checkbox]").each(function(){ var c = $(this); if(!c.attr("checkbox_setup")){ c.attr("checkbox_setup",true); var id = c.attr("id"); var container = $(document.createElement("div")); container.addClass(c.get(0).className); c.get(0).className = ""; container.addClass("checkbox"); container.attr("id",id); container.prop("name",id); c.attr("id",id + "-checkbox"); container.prop("checked",c.get(0).checked); container.prop("value",c.val()); container.prop("type","checkbox"); container.attr("type","checkbox"); if(c.prop("title")){container.append(""+c.prop("title")+"");} c.before(container); c.remove(); container.append(c); if(c.get(0).checked){ container.addClass("checked"); } var checkUncheck = function(){ c.addClass("toSave"); if(c.get(0).checked){container.addClass("checked");} else{container.removeClass("checked");} }; container.click(function(){ var container = $(this); c.click(); container.prop("checked",c.get(0).checked); checkUncheck(); }); } }); }, initSelects: function(element){ try{ if(!this.helpers.isMobile()){ element.find("select").select2(); } }catch(e){} }, session: { isLoggedIn:function(){return false;} }, helpers: { stripHTML : function(string){ var div = $(document.createElement("div")); div.html(string.replace(/(
    ||
    )/gm,'\n').replace(/<\/p>/gm,'\n\n')); return div.text().trim(); }, showOverlay : function(containers, content, realignLeft, realignTop) { if(!content) {content = "";} // Adds a default loading icon if($.trim(content) == "") {content = "";} if(containers) { containers.each(function() { var container = $(this); container.append("
    "+content+"
    "); var contentDiv = $(".details_overlay_content"); if(typeof(realignLeft) == "undefined" || realignLeft == true || realignLeft == null){ var contentLeft = (container.outerWidth()/2)-(contentDiv.outerWidth()/2); contentDiv.css({left:contentLeft+"px"}); } if(typeof(realignTop) == "undefined" || realignTop == true || realignTop == null){ var contentTop = (container.outerHeight()/2)-(contentDiv.outerHeight()/2); contentDiv.css({top:contentTop+"px"}); } }); } }, hideOverlay : function(container) { if(container) {container.find("details_overlay").remove();} else { $(".details_overlay").each(function() { $(this).remove(); }); } }, }, network:{ request:$.ajax, post:$.post, get:$.get } } plugin.integrate(null,options); }else{ $d.plugins.add(plugin,options); $d.plugins.get("comments").integrate($d.plugins,options); $d.network.addHandler("comments", "update-score",function(data){ if(typeof(data) != "undefined" && data != null){ var comment = $(".comment_item[data-id="+data.comment+"]"); if(comment.length > 0){ if(typeof(plugin.comments[data.comment]) == "undefined"){ plugin.comments[data.comment] = {}; } if(typeof(plugin.comments[data.comment].score) == "undefined"){ plugin.comments[data.comment].score = 0; } plugin.comments[data.comment].score = data.score; comment.attr("point-count",data.score); comment.find(".comment_score").html(data.score + " points"); } } }); $d.network.addHandler("comments","deleted",function(data){ if(typeof(data) != "undefined" && data != null){ var p = $(".comment_item[data-id="+data+"]"); var children = $(".comment_item[data-parent="+data+"]"); if(children.length > 0){ p.find(".comment_username").html("deleted"); p.find(".comment_reply").remove(); p.find(".comment_delete").remove(); p.find(".comment_voting_buttons").remove(); p.addClass("comment_deleted"); p.find(".comment_content").html("[deleted]"); $d.helpers.hideOverlay(); }else{ p.remove(); } } }); $d.network.addHandler("comments","added",function(data){ if(typeof(data.comment) != "undefined"){ var newComment = data; if(typeof(newComment.error) == "undefined"){ if(!plugin.comments[newComment.id]){ setTimeout(function(){ plugin.comments[newComment.id] = newComment; var pComment = plugin.processComment(newComment,false,$("#comments_list"),true); $d.plugins.get("comments").updateList(); },1000); } } } }); }