From 893957c41481a0cd5eb624096337762ffa54ff28 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 9 Aug 2009 09:14:58 -0400 Subject: Created layout 7 The following changes were also made in this revision: * All HTML was changed to XHTML and a !DOCTYPE was included to reflect this * Rewrote quotes tracking system to be much less complicated and actually working * Changed quotes rendering to look more like Chirpy than Rash * Fixed comment textarea bug * Rewrote a ton of CSS so it's not as bloated * Added a JavaScript confirmation when deleting a comment * AJAXified voting on the POTW * AJAXified voting and flagging quotes * AJAXified commenting * AJAXified voting on posts * Added DateFinder back after it was accidentally deleted in Layout 4.5 The following database changes must be performed as soon as possible: * Fix title of NO post (the < is missing the semicolon) * Restore post Frasty Tha Snaman from a backup * Reset "flag" field of all rows in "rash_quotes" to 0 * Remove the "vote" and "flag" columns of "rash_tracking" * Rename the "quote_id" column of "rash_tracking" to "vote" The following external code changes must also be performed as soon as possible: * Add the following line to the end of the // Four Island block in The Fourm's functions.php: require('/svr/www/hatkirby/fourisland/main/includes/specialdates.php'); --- theme/comments.tpl | 130 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 79 insertions(+), 51 deletions(-) (limited to 'theme/comments.tpl') diff --git a/theme/comments.tpl b/theme/comments.tpl index 1ca7ab2..5e1c564 100755 --- a/theme/comments.tpl +++ b/theme/comments.tpl @@ -1,51 +1,48 @@ - + - + -
+ - + + on - -
+ + Edit + Delete + + + + - +function postComment() +{ + jQuery("#newComment textarea, #newComment input, #newComment button").attr("disabled", "disabled"); + jQuery("#flash").text("Processing....").slideDown(); + jQuery.ajax({ + type: "POST", + url: "/post.php", + data: ({ + id: "", + comment: jQuery("#newComment textarea").val(), + username: jQuery("#newComment input:text[name=username]").val(), + email: jQuery("#newComment input:text[name=email]").val(), + website: jQuery("#newComment input:text[name=website]").val(), + recaptcha_challenge_field: jQuery("#newComment input[name=recaptcha_challenge_field]").val(), + recaptcha_response_field: jQuery("#newComment input[name=recaptcha_response_field]").val() + }), + dataType: "text", + success: function(msg) { + if (msg.indexOf("textBubble") != -1) + { + jQuery("#flash").text("Your comment has been posted."); + jQuery("#newComment").html(msg); + } else { + jQuery("#newComment textarea, #newComment input, #newComment button").removeAttr("disabled"); + jQuery("#flash").text(msg); + } + }, + error: function() { + jQuery("#newComment textarea, #newComment input, #newComment button").removeAttr("disabled"); + jQuery("#flash").text("There was an error posting your comment."); + } + }); +} + + -
-
-
-
-
- -
-
- , feel free to post a comment -
+
+ +
+ +
+ + , feel free to post a comment -
+
-

- Name:
- Email:
- Website (Optional): -

+

+ Name:
+ Email:
+ Website (Optional): +

- -
- -
+ + + +
-- cgit 1.4.1