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 = "\
\
";
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("");
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("\
\
\
\
\
\
\
\
\
\
");
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("");
$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("");
}
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("
");
}
$("#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:"topic",
anonymous : "1",
comments : [{"id":30541,"user":86018,"comment":"Although this is an ancient thread, I think SoCoins would be a great name. It's simple and easily rolls off the tongue.
\n
\n(Would anyone be interested if I made up a few designs for what the coins might look like?)","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/BubblesAndSuch","date":"2018-07-19","delete":false,"datetime":"Jul 19th 2018 23:37","timestamp":1532043449,"loggedIn":false,"username":"BubblesAndSuch","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":30553,"user":85876,"comment":"Basically like the new pound coins but instead of the queen's face, you just have James. Oh and he must be in a crown.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/ayciate","date":"2018-07-22","delete":false,"datetime":"Jul 22nd 2018 19:03","timestamp":1532286196,"loggedIn":false,"username":"ayciate","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":30541,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":29741,"user":85902,"comment":"Fladoodles","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/Ariathan","date":"2018-04-12","delete":false,"datetime":"Apr 12th 2018 19:23","timestamp":1523561025,"loggedIn":false,"username":"Ariathan","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":29742,"user":85876,"comment":"[
link<\/a>]","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/ayciate","date":"2018-04-12","delete":false,"datetime":"Apr 12th 2018 19:24","timestamp":1523561066,"loggedIn":false,"username":"ayciate","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":2,"children":[{"id":29743,"user":85876,"comment":"It's perfect","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/ayciate","date":"2018-04-12","delete":false,"datetime":"Apr 12th 2018 19:24","timestamp":1523561080,"loggedIn":false,"username":"ayciate","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":3,"children":[],"deleted":0,"parent":29742,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":29741,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":29686,"user":85876,"comment":"Mizzles","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/ayciate","date":"2018-04-08","delete":false,"datetime":"Apr 08th 2018 00:56","timestamp":1523148992,"loggedIn":false,"username":"ayciate","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":29466,"user":85695,"comment":"James'","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/dogsarethebest","date":"2018-03-10","delete":false,"datetime":"Mar 10th 2018 20:08","timestamp":1520712513,"loggedIn":false,"username":"dogsarethebest","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":29645,"user":31392,"comment":"as a James I agree with this.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/wowzies","date":"2018-04-01","delete":false,"datetime":"Apr 01st 2018 01:55","timestamp":1522547755,"loggedIn":false,"username":"wowzies","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":29466,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":29154,"user":25811,"comment":"Imagold, Imagelders.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/ant1H3r0","date":"2018-01-25","delete":false,"datetime":"Jan 25th 2018 02:46","timestamp":1516848415,"loggedIn":false,"username":"ant1H3r0","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":29153,"user":32905,"comment":"...or Schmeckles!","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/SassyKittyPandapaws","date":"2018-01-23","delete":false,"datetime":"Jan 23rd 2018 15:00","timestamp":1516719614,"loggedIn":false,"username":"SassyKittyPandapaws","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":29152,"user":32905,"comment":"DOUBLOONS
\nOR GIRRAFFITS","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/SassyKittyPandapaws","date":"2018-01-23","delete":false,"datetime":"Jan 23rd 2018 14:59","timestamp":1516719540,"loggedIn":false,"username":"SassyKittyPandapaws","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":28454,"user":16094,"comment":"Gary.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/DragonsAteMyMarbles","date":"2017-07-28","delete":false,"datetime":"Jul 28th 2017 23:23","timestamp":1501284239,"loggedIn":false,"username":"DragonsAteMyMarbles","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":28140,"user":81836,"comment":"Fiddy titties","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/seed6666","date":"2017-05-30","delete":false,"datetime":"May 30th 2017 04:13","timestamp":1496117596,"loggedIn":false,"username":"seed6666","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":28079,"user":84802,"comment":"Magic Doubloons","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/mrbaca","date":"2017-05-20","delete":false,"datetime":"May 20th 2017 03:23","timestamp":1495250586,"loggedIn":false,"username":"mrbaca","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":28033,"user":56896,"comment":"Giraffe Bits.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/thekamikazekid","date":"2017-05-16","delete":false,"datetime":"May 16th 2017 19:38","timestamp":1494963529,"loggedIn":false,"username":"thekamikazekid","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":27745,"user":31703,"comment":"The pound","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/SergeantKnickerlessArsewipe","date":"2017-04-10","delete":false,"datetime":"Apr 10th 2017 20:59","timestamp":1491857988,"loggedIn":false,"username":"SergeantKnickerlessArsewipe","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":3,"type":"1","type_string":"topic"},{"id":27744,"user":82841,"comment":"I was told to comment on this. I think it should be called about .000004 cents","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/slimySumoCow","date":"2017-04-10","delete":false,"datetime":"Apr 10th 2017 20:59","timestamp":1491857966,"loggedIn":false,"username":"slimySumoCow","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":37,"type":"1","type_string":"topic"},{"id":27743,"user":-1,"comment":"comment","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"","date":"2017-04-10","delete":false,"datetime":"Apr 10th 2017 20:58","timestamp":1491857910,"loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":27500,"user":25203,"comment":"apple watches because no sane person would buy one ayylmao","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/biib","date":"2017-03-10","delete":false,"datetime":"Mar 10th 2017 12:20","timestamp":1489148409,"loggedIn":false,"username":"biib","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":27501,"user":1,"comment":"but they're free...","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2017-03-10","delete":false,"datetime":"Mar 10th 2017 12:51","timestamp":1489150300,"loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":27500,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":27378,"user":25081,"comment":"Garlic Bread","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/WhatWillWeDoWithADrunkenSailor","date":"2017-02-28","delete":false,"datetime":"Feb 28th 2017 20:31","timestamp":1488313876,"loggedIn":false,"username":"WhatWillWeDoWithADrunkenSailor","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":27225,"user":-1,"comment":"Worthless :D","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"","date":"2017-02-15","delete":false,"datetime":"Feb 15th 2017 03:41","timestamp":1487130108,"loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":25685,"user":83197,"comment":"fuzzbucks","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/Orangebolt222","date":"2016-10-18","delete":false,"datetime":"Oct 18th 2016 01:51","timestamp":1476755476,"loggedIn":false,"username":"Orangebolt222","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":25183,"user":-1,"comment":"Savan Dollars (like sand dollars)","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"","date":"2016-08-29","delete":false,"datetime":"Aug 29th 2016 15:27","timestamp":1472484437,"loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":24392,"user":19910,"comment":"I favor ossicones, those little fur covered horns giraffes have.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/kamietsu","date":"2016-07-13","delete":false,"datetime":"Jul 13th 2016 06:01","timestamp":1468389704,"loggedIn":false,"username":"kamietsu","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":24314,"user":82382,"comment":"Totally favor Sunits and Safaris","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/QcMimil","date":"2016-07-06","delete":false,"datetime":"Jul 06th 2016 07:21","timestamp":1467789708,"loggedIn":false,"username":"QcMimil","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":23831,"user":7820,"comment":"Decepticoins.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/BatmansMrs","date":"2016-06-05","delete":false,"datetime":"Jun 05th 2016 02:48","timestamp":1465094896,"loggedIn":false,"username":"BatmansMrs","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":23827,"user":65446,"comment":"Weenies","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/MoonPetals","date":"2016-06-05","delete":false,"datetime":"Jun 05th 2016 01:08","timestamp":1465088939,"loggedIn":false,"username":"MoonPetals","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":23438,"user":81583,"comment":"I actually like the name Sosa, reminds me of Chief Keef","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/Schmorpf","date":"2016-05-22","delete":false,"datetime":"May 22nd 2016 17:15","timestamp":1463937352,"loggedIn":false,"username":"Schmorpf","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":3,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":23405,"user":80132,"comment":"Babloons","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/Sir","date":"2016-05-19","delete":false,"datetime":"May 19th 2016 15:35","timestamp":1463672146,"loggedIn":false,"username":"Sir","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":23336,"user":-1,"comment":"MFW no one suggested to call them Dollarydoos: [link<\/a>]","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"","date":"2016-05-16","delete":false,"datetime":"May 16th 2016 02:34","timestamp":1463366098,"loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":3,"level":1,"children":[{"id":23342,"user":79084,"comment":"THIS.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/Ullur","date":"2016-05-16","delete":false,"datetime":"May 16th 2016 04:39","timestamp":1463373578,"loggedIn":false,"username":"Ullur","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":23336,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"},{"id":23312,"user":79084,"comment":"Safaris","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/Ullur","date":"2016-05-15","delete":false,"datetime":"May 15th 2016 06:41","timestamp":1463294485,"loggedIn":false,"username":"Ullur","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":23310,"user":74000,"comment":"Sunits sounds perfect.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/ZooeyBear","date":"2016-05-15","delete":false,"datetime":"May 15th 2016 02:29","timestamp":1463279366,"loggedIn":false,"username":"ZooeyBear","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[{"id":24085,"user":69343,"comment":"I like sunit, but how do you pronounce it?","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/Saggateron","date":"2016-06-19","delete":false,"datetime":"Jun 19th 2016 20:35","timestamp":1466368559,"loggedIn":false,"username":"Saggateron","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[{"id":24146,"user":74000,"comment":"Wouldn't know I am just a sheep. :p","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/ZooeyBear","date":"2016-06-23","delete":false,"datetime":"Jun 23rd 2016 01:58","timestamp":1466647082,"loggedIn":false,"username":"ZooeyBear","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":3,"children":[{"id":24160,"user":69343,"comment":"Follow the crowd! bAAAAA","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/Saggateron","date":"2016-06-23","delete":false,"datetime":"Jun 23rd 2016 22:09","timestamp":1466719763,"loggedIn":false,"username":"Saggateron","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":4,"children":[],"deleted":0,"parent":24146,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":24085,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":23310,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":23137,"user":6694,"comment":"nuggets","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/libbeast","date":"2016-05-10","delete":false,"datetime":"May 10th 2016 01:19","timestamp":1462843196,"loggedIn":false,"username":"libbeast","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":23113,"user":81026,"comment":"Coiny Mccoinface","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/MrWobbly","date":"2016-05-07","delete":false,"datetime":"May 07th 2016 14:59","timestamp":1462633140,"loggedIn":false,"username":"MrWobbly","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":11,"level":1,"children":[{"id":23877,"user":81692,"comment":"Agreed","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/BigAssPuppies","date":"2016-06-06","delete":false,"datetime":"Jun 06th 2016 20:11","timestamp":1465243862,"loggedIn":false,"username":"BigAssPuppies","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":23113,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":23122,"user":67231,"comment":"This.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/SirPanbornBeast","date":"2016-05-07","delete":false,"datetime":"May 07th 2016 22:26","timestamp":1462660006,"loggedIn":false,"username":"SirPanbornBeast","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":23113,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":2,"type":"1","type_string":"topic"},{"id":22948,"user":81208,"comment":"Tit Coins","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/mrgimp","date":"2016-04-25","delete":false,"datetime":"Apr 25th 2016 16:19","timestamp":1461601141,"loggedIn":false,"username":"mrgimp","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":22501,"user":39300,"comment":"@MehWasTooShort<\/a>, Sunits is pretty good. Definitely seconded.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/CharliePANchino","date":"2016-03-28","delete":false,"datetime":"Mar 28th 2016 05:57","timestamp":1459144634,"loggedIn":false,"username":"CharliePANchino","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":22245,"user":34985,"comment":"Poop","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/Sloth","date":"2016-03-12","delete":false,"datetime":"Mar 12th 2016 19:46","timestamp":1457811982,"loggedIn":false,"username":"Sloth","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":22228,"user":75968,"comment":"Sauce! Or Soats......like SoSa oats!","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/OneLatte","date":"2016-03-11","delete":false,"datetime":"Mar 11th 2016 18:48","timestamp":1457722091,"loggedIn":false,"username":"OneLatte","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[{"id":22229,"user":78079,"comment":"you mean..SoSoats?","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/umaricandreamin","date":"2016-03-11","delete":false,"datetime":"Mar 11th 2016 18:48","timestamp":1457722130,"loggedIn":false,"username":"umaricandreamin","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":22228,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":2,"type":"1","type_string":"topic"},{"id":22217,"user":18546,"comment":"Decoins","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/OKDecM","date":"2016-03-11","delete":false,"datetime":"Mar 11th 2016 16:31","timestamp":1457713918,"loggedIn":false,"username":"OKDecM","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":22078,"user":17476,"comment":"Me.","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/CowsGoMooALot","date":"2016-03-09","delete":false,"datetime":"Mar 09th 2016 01:17","timestamp":1457486258,"loggedIn":false,"username":"CowsGoMooALot","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":22039,"user":78257,"comment":"How about Breakfast Beans?","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/TheSire","date":"2016-03-08","delete":false,"datetime":"Mar 08th 2016 13:07","timestamp":1457442468,"loggedIn":false,"username":"TheSire","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":3,"level":1,"children":[{"id":22040,"user":78079,"comment":"WHAT IF I WANTED LUNCH!? OR DINNER!?!","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/umaricandreamin","date":"2016-03-08","delete":false,"datetime":"Mar 08th 2016 13:44","timestamp":1457444647,"loggedIn":false,"username":"umaricandreamin","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[{"id":22108,"user":8113,"comment":"Brunch and Brinner.... therefore Breakfast Beans still works for those meals :p","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/CallMeKatOrKitty","date":"2016-03-09","delete":false,"datetime":"Mar 09th 2016 11:42","timestamp":1457523778,"loggedIn":false,"username":"CallMeKatOrKitty","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":3,"children":[],"deleted":0,"parent":22040,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":22039,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":2,"type":"1","type_string":"topic"},{"id":22038,"user":70247,"comment":"I think Sosa credits are okay as a name. Or 'Sunits' = Sosa and Units","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/rhino.jpg","link":"\/profile\/MehWasTooShort","date":"2016-03-08","delete":false,"datetime":"Mar 08th 2016 09:32","timestamp":1457429551,"loggedIn":false,"username":"MehWasTooShort","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":4,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":22023,"user":-1,"comment":""I'll give you 25 Schmeckles for a SoSa cedit."","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"","date":"2016-03-07","delete":false,"datetime":"Mar 07th 2016 20:11","timestamp":1457381474,"loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":7,"level":1,"children":[],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":22021,"user":1,"comment":"We were going to call them Baboon coins or Baboings. I donno ya'll liked it before just need a designer!","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/TheBritishAreComing","date":"2016-03-07","delete":false,"datetime":"Mar 07th 2016 19:46","timestamp":1457380019,"loggedIn":false,"username":"TheBritishAreComing","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":0,"level":1,"children":[{"id":22028,"user":78174,"comment":"@___<\/a>@ baboon coins lmao? Why don't you just call them :Samosas XD","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/giraffe.jpg","link":"\/profile\/YouHaveItAllWrong","date":"2016-03-08","delete":false,"datetime":"Mar 08th 2016 04:24","timestamp":1457411046,"loggedIn":false,"username":"YouHaveItAllWrong","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":5,"level":2,"children":[{"id":22227,"user":25673,"comment":"Thank you, I now have a craving for some girl scout cookies..........","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/IamSprots","date":"2016-03-11","delete":false,"datetime":"Mar 11th 2016 18:45","timestamp":1457721956,"loggedIn":false,"username":"IamSprots","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":2,"level":3,"children":[],"deleted":0,"parent":22028,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":22021,"previews":[],"entity":2357,"guilds":0,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"},{"id":22020,"user":-1,"comment":"ur mum","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"","date":"2016-03-07","delete":false,"datetime":"Mar 07th 2016 19:46","timestamp":1457379974,"loggedIn":false,"username":"Anonymous","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":3,"level":1,"children":[{"id":22022,"user":78079,"comment":"shed be honored","image":"https:\/\/chatplayshare.com\/themes\/default\/images\/profiles\/cat.jpg","link":"\/profile\/umaricandreamin","date":"2016-03-07","delete":false,"datetime":"Mar 07th 2016 19:47","timestamp":1457380047,"loggedIn":false,"username":"umaricandreamin","upclass":"","downclass":"","upvoted":false,"downvoted":false,"score":1,"level":2,"children":[],"deleted":0,"parent":22020,"previews":[],"entity":2357,"guilds":1,"type":"1","type_string":"topic"}],"deleted":0,"parent":0,"previews":[],"entity":2357,"guilds":3,"type":"1","type_string":"topic"}],
entityID : "2357",
title : "Comments",
element : "discussion_container",
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("");
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("");
$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);
}
}
}
});
}
" + options.title + "
"; } if($d.session && $d.session.isLoggedIn()){ html += "