Status:
Member Since: 10 Aug 2011 01:08pm
Last Seen: 22 Jun 2013 12:19am
user id: 206099
0
Quotes
7,424
Favorites
0
Following
60
Followers
Comment Points
Comments
Comments on Quotes
Comments by User
Quote Comments by User
Flair beta
Detox Weekend: This weekend, all quotes will temporarily have their formatting removed. Why do this? Some Witty members thought it would be fun to have the top quotes be based on the content of the quote, not the formatting. If you submit a quote with formatting during Detox Weekend, the quote will appear without formatting until Monday. Have fun!
'); $("#account_settings_link").click(function(event) { $("#categories_links").hide(); offset = $(this).position(); $("#account_settings_links").css("top",(offset.top+45)+"px").css("left",offset.left+"px").toggle(); event.preventDefault(); }); // pop up a chat window $("#chatcat_link").click( function(e) { e.preventDefault(); window.open ("/chatcat", "chatcat","status=0,toolbar=0,location=0,menubar=0,resizable=1,scrollbars=0,height=500,width=809"); }); $(".favheart").click(function(){ var quote_id = $(this).attr('id').split("_"); quote_id = quote_id[quote_id.length - 1]; if ($(this).hasClass("favheartOff")) { favs.addToFavs(quote_id); } if ($(this).hasClass("favheartOn")) { favs.removeFromFavs(quote_id); } }); // prevent accidental quote deletions $(".delete-a-quote").live("click", function() { $("#deletequoteform-"+this.id.split("-")[1]).show(); }); $(".delete-a-quote-cancel").live("click", function() { $("#deletequoteform-"+this.id.split("-")[1]).hide(); }); // prevent accidental quote deletions $(".undelete-a-quote").live("click", function() { $("#undeletequoteform-"+this.id.split("-")[1]).show(); }); $(".undelete-a-quote-cancel").live("click", function() { $("#undeletequoteform-"+this.id.split("-")[1]).hide(); }); // exclude a quote from the feeds $(".exclude_quote_btn").live("click", function() { var quote_id = this.id.split("-")[1]; $.ajax({ type:"POST", url: '/api.php', data: 'a=exclude_quote"e_id=' + quote_id, success: function(msg) { alert(msg); }, error: function(msg) { alert('error ' + msg); } }); }); // unexclude a quote from the feeds $(".unexclude_quote_btn").live("click", function() { var quote_id = this.id.split("-")[1]; $.ajax({ type:"POST", url: '/api.php', data: 'a=unexclude_quote"e_id=' + quote_id, success: function(msg) { alert(msg); }, error: function(msg) { alert('error ' + msg); } }); }); // report quote $(".report_quote_btn").live("click", function() { $("#report_quote_section_" + this.id.split("_")[1]).toggle(); var quote_id = this.id.split("_")[1]; $("#report_quote_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_report_quote_form', quote_id:quote_id}); }); $(".report_quote_confirm_btn").live("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled'); var quote_id = this.id.split("_")[1]; var flag = $("input:radio[name=flagquote_" + quote_id + "]:checked").val(); $.ajax({ type: "POST", url: '/api.php', data: 'a=report_quote"e_id=' + quote_id + '&flag=' + flag, success: function(msg) { if (msg == 'ok') { $('#report_quote_section_' + quote_id).html('Thank you for bringing this quote to our attention. You are helping to make Witty a better place.
'); } else { if (msg == 'noselection') { $('#report_quote_section_' + quote_id).append('please select a reason.
'); $("#"+btn_id).removeAttr('disabled'); } else { alert('Please sign in to report this quote.'); } } }, error: function() { alert('uh oh, something went wrong. Please try reporting that quote again.'); } }); }); // report / flag a quote as being NOT A QUOTE $(".not_a_quote_btn").live("click", function() { $("#not_a_quote_section_" + this.id.split("_")[1]).toggle(); var quote_id = this.id.split("_")[1]; $("#not_a_quote_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_not_a_quote_form', quote_id:quote_id}); }); $(".not_a_quote_confirm_btn").live("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled'); var quote_id = this.id.split("_")[1]; $.ajax({ type: "POST", url: '/api.php', data: 'a=report_not_a_quote"e_id=' + quote_id, success: function(msg) { if (msg == 'ok') { $('#not_a_quote_section_' + quote_id).html('Thank you for bringing this quote to our attention. You are helping to make Witty a better place.
'); } else { alert('Please sign in to report this quote.'); } }, error: function() { alert('uh oh, there was an error reporting the quote. please try again.'); } }); }); // close the report not a quote form $(".not_a_quote_cancel_btn").live("click", function() { $("#not_a_quote_section_"+this.id.split("_")[1]).hide(); }); // report user $(".report_user_btn").live("click", function() { $("#report_user_section_" + this.id.split("_")[1]).toggle(); var user_id = this.id.split("_")[1]; $("#report_user_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_report_user_form', user_id:user_id}); }); $("button.report_user_confirm_btn").live("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled'); var user_id = this.id.split("_")[1]; var flag = $("input:radio[name=flaguser_" + user_id + "]:checked").val(); $.ajax({ type: "POST", url: '/api.php', data: 'a=report_user&user_id=' + user_id + '&flag=' + flag, success: function(msg) { if (msg == 'ok') { $('#report_user_section_' + user_id).html('Thank you for bringing this user to our attention. You are helping to make Witty a better place.
'); } else { if (msg == 'noselection') { $('#report_user_section_' + user_id).append('please select a reason.
'); $("#"+btn_id).removeAttr('disabled'); } else { alert('Please sign in to report this user.'); } } }, error: function() { alert('uh oh, something went wrong. Please try reporting that user again.'); } }); }); // report user comment $(".report_user_comment_btn").live("click", function() { $("#report_user_comment_section_" + this.id.split("_")[1]).toggle(); var user_comment_id = this.id.split("_")[1]; $("#report_user_comment_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_report_user_comment_form', user_comment_id:user_comment_id}); }); $("button.report_user_comment_confirm_btn").live("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled'); var user_comment_id = this.id.split("_")[1]; var flag = $("input:radio[name=flagusercomment_" + user_comment_id + "]:checked").val(); $.ajax({ type: "POST", url: '/api.php', data: 'a=report_user_comment&user_comment_id=' + user_comment_id + '&flag=' + flag, success: function(msg) { if (msg == 'ok') { $('#report_user_comment_section_' + user_comment_id).html('Thank you for bringing this comment to our attention. You are helping to make Witty a better place.
'); } else { if (msg == 'noselection') { $('#report_user_comment_section_' + user_comment_id).append('please select a reason.
'); $("#"+btn_id).removeAttr('disabled'); } else { alert('Please sign in to report this comment.'); } } }, error: function() { alert('uh oh, something went wrong. Please try reporting that comment again.'); } }); }); // report quote comment $(".report_quote_comment_btn").live("click", function() { $("#report_quote_comment_section_" + this.id.split("_")[1]).toggle(); var quote_comment_id = this.id.split("_")[1]; $("#report_quote_comment_section_" + this.id.split("_")[1]).load('/api.php', {a:'get_report_quote_comment_form', quote_comment_id:quote_comment_id}); }); $("button.report_quote_comment_confirm_btn").live("click", function() { var btn_id = this.id; $(this).attr('disabled', 'disabled'); var quote_comment_id = this.id.split("_")[1]; var flag = $("input:radio[name=flagquotecomment_" + quote_comment_id + "]:checked").val(); $.ajax({ type: "POST", url: '/api.php', data: 'a=report_quote_comment"e_comment_id=' + quote_comment_id + '&flag=' + flag, success: function(msg) { if (msg == 'ok') { $('#report_quote_comment_section_' + quote_comment_id).html('Thank you for bringing this comment to our attention. You are helping to make Witty a better place.
'); } else { if (msg == 'noselection') { $('#report_quote_comment_section_' + quote_comment_id).append('please select a reason.
'); $("#"+btn_id).removeAttr('disabled'); } else { alert('Please sign in to report this comment.'); } } }, error: function() { alert('uh oh, something went wrong. Please try reporting that comment again.'); } }); }); // toggle quote source $("a.get_quote_code").live("click", function(e) { e.preventDefault(); $("#code_" + this.id.split("_")[1]).toggle(); var quote_id = this.id.split("_")[1]; $("#code_" + this.id.split("_")[1]).load('/api.php', {a:'get_quote_code', quote_id:quote_id}); }); }); var favs = { addToFavs : function ( quote_id ) { var url = '/api.php'; var action = 'add_quote_to_faves'; var params = 'a=' + action + '"e_id=' + quote_id; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { $('#fav_btn_' + quote_id).addClass('favheartOn'); $('#fav_btn_' + quote_id).removeClass('favheartOff'); $('#fav_btn_' + quote_id).attr({alt:'Unfave', title:'Unfave'}); var new_score = parseInt($('#score_' + quote_id).html(),10) + 1; var new_label = 'Unfave'; $('#score_' + quote_id).text(new_score); $('#scorelabel_' + quote_id).text(new_label); } else { alert('Please sign in to add this quote to your faves'); } }, error: function() { alert('uh oh, something went wrong. Please try adding that quote to your favorites again.'); } }); }, removeFromFavs : function ( quote_id ) { var url = '/api.php'; var action = 'remove_quote_from_faves'; var params = 'a=' + action + '"e_id=' + quote_id; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { $('#fav_btn_' + quote_id).addClass('favheartOff'); $('#fav_btn_' + quote_id).removeClass('favheartOn'); $('#fav_btn_' + quote_id).attr({alt:'Add to Faves', title:'Add to Faves'}); var new_score = parseInt($('#score_' + quote_id).html(),10) - 1; var new_label = 'Add to Faves'; $('#score_' + quote_id).text(new_score); $('#scorelabel_' + quote_id).text(new_label); } else { alert('uh oh'); } }, error: function() { alert('uh oh, something went wrong. Please try removing that quote from your favorites again.'); } }); } }; var quote = { reportQuote : function ( quote_id ) { var url = '/ajax/quote.php'; var action = 'report'; var params = 'action=' + action + '"e_id=' + quote_id; $.ajax({ type: "GET", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('Thank you for telling us that this quote doesn\'t follow the rules.'); } else { alert('Please sign in to report this quote'); } }, error: function() { alert('uh oh. something went wrong. Please try reporting that quote again.'); } }); } }; // prevent accidental deletion var follow = { startfollowing : function ( user_id ) { var url = '/api.php'; var action = 'start_following'; var params = 'a=' + action + '&user_id=' + user_id; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('ok'); } else { alert('Please sign in to follow this person.'); } }, error: function() { alert('uh oh, something went wrong. Please try following that person again.'); } }); }, stopfollowing : function ( user_id ) { var url = '/api.php'; var action = 'stop_following'; var params = 'a=' + action + '&user_id=' + user_id; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('ok'); } else { alert('not ok'); } }, error: function() { alert('uh oh, something went wrong. Please try to stop following that person again.'); } }); } }; var block = { startblocking : function ( user_id ) { var url = '/api.php'; var action = 'start_blocking'; var params = 'a=' + action + '&user_id=' + user_id; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('Ok. This person\'s comments will no longer show on your profile and your quotes.'); } else { alert('Please sign in to block this person.'); } }, error: function() { alert('uh oh, something went wrong. Please try blocking that person again.'); } }); }, stopblocking : function ( user_id ) { var url = '/api.php'; var action = 'stop_blocking'; var params = 'a=' + action + '&user_id=' + user_id; $.ajax({ type: "POST", url: url, data: params, success: function(msg) { if (msg == 'ok') { alert('ok. This person\'s comments will now show on your profile and your quotes.'); } else { alert('not ok'); } }, error: function() { alert('uh oh, something went wrong. Please try to stop blocking that person again.'); } }); } }; var votes = { // // vote up a quote // voteUp : function ( quote_id ) { var url = '/ajax/vote.php'; var action = 'voteup'; var params = 'action=' + action + '"e_id=' + quote_id; var intervalID = setInterval('drawrandomchar('+quote_id+')',100); $.ajax({ type: "GET", url: url, data: params, success: function(msg){ if (msg == 'ok') { $.get("/ajax/vote.php?action=getscore"e_id=" + quote_id, function(data){ clearInterval(intervalID); $("#score_" + quote_id).html(parseInt(data,10) + 1); }); } else { clearInterval(intervalID); $("#score_" + quote_id).html("signin").animate({opactiy:1},4000).load("/ajax/vote.php?action=getscore"e_id=" + quote_id); } }, error: function() { clearInterval(intervalID); alert('Uh oh, something went wrong. Please try voting up this quote again.'); } }); }, // // vote down a quote // voteDown : function ( quote_id ) { var url = '/ajax/vote.php'; var action = 'votedown'; var params = 'action=' + action + '"e_id=' + quote_id; var intervalID = setInterval('drawrandomchar('+quote_id+')',100); $.ajax({ type: "GET", url: url, data: params, success: function(msg){ if (msg == 'ok') { $.get("/ajax/vote.php?action=getscore"e_id=" + quote_id, function(data){ clearInterval(intervalID); $("#score_" + quote_id).html(parseInt(data,10) - 1); }); } else { clearInterval(intervalID); $("#score_" + quote_id).html("signin").animate({opactiy:1},4000).load("/ajax/vote.php?action=getscore"e_id=" + quote_id); } }, error: function() { clearInterval(intervalID); //$("#score_" + quote_id).html("?"); alert('Uh oh, something went wrong. Please try voting down this quote again.'); } }); }, // // vote up a quote RANDOM // voteUpRandom : function ( quote_id ) { var url = '/ajax/vote.php'; var action = 'voteup'; var params = 'action=' + action + '"e_id=' + quote_id; var intervalID = setInterval('drawrandomchar('+quote_id+')',100); $.ajax({ type: "GET", url: url, data: params, success: function(msg){ if (msg == 'ok') { $.get("/ajax/vote.php?action=getscore"e_id=" + quote_id, function(data){ clearInterval(intervalID); $("#score_" + quote_id).html(data); window.location = '/random-quote'; }); } else { clearInterval(intervalID); $("#score_" + quote_id).html("signin").animate({opactiy:1},4000).load("/ajax/vote.php?action=getscore"e_id=" + quote_id); } }, error: function() { clearInterval(intervalID); alert('Uh oh, something went wrong. Please try voting up this quote again.'); } }); }, // // vote down a quote RANDOM // voteDownRandom : function ( quote_id ) { var url = '/ajax/vote.php'; var action = 'votedown'; var params = 'action=' + action + '"e_id=' + quote_id; var intervalID = setInterval('drawrandomchar('+quote_id+')',100); $.ajax({ type: "GET", url: url, data: params, success: function(msg){ if (msg == 'ok') { $.get("/ajax/vote.php?action=getscore"e_id=" + quote_id, function(data){ clearInterval(intervalID); $("#score_" + quote_id).html(data); window.location = '/random-quote'; }); } else { clearInterval(intervalID); $("#score_" + quote_id).html("signin").animate({opactiy:1},4000).load("/ajax/vote.php?action=getscore"e_id=" + quote_id); } }, error: function() { clearInterval(intervalID); //$("#score_" + quote_id).html("?"); alert('Uh oh, something went wrong. Please try voting down this quote again.'); } }); } }; var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-427894-3']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
Join
·
Top Quotes
·
New Quotes
·
Random
·
Chat
·
Add Quote
·
Rules
·
Privacy Policy
·
Terms of Use
·
Full Site
© 2003-2024 Witty Profiles