var ctype = "guest"; function processCommentForm(eid,target,level, type){ var addtitle = $("#addtitle").val(); var entryid = $("#centryid").val(); var addtextv = $("#addtext").val(); var email_address = $("input#email_address").val(); var username = $("#username").val(); var password = $("#password").val(); var new_topic = $("#new_topic").val(); var recaptcha_response = $("#recaptcha_response_field").val(); var recaptcha_challenge = $("#recaptcha_challenge_field").val(); var qap = $("#ianasb checkbox").val(); $(target).load("https://tribeshill.com/common/discuss/add.php", { "prefix" : "tribes_hill_2022", "module" : "contact", "id" : eid, "entryid" : entryid, "target" : target, "level" : level, "type" : type, "thetitle" : addtitle, "thebody" : addtextv, "email_address" : email_address, "username" : username, "password" : password, "recaptcha_response_field" : recaptcha_response, "recaptcha_challenge_field" : recaptcha_challenge, "qap" : qap }, function(){ location.reload(); }); } function deleteComment(eid,target){ $(target).load("https://tribeshill.com/common/discuss/delete.php", { "prefix" : "tribes_hill_2022", "module" : "contact", "id" : eid }, function(){ $(target).removeClass("draft"); }); } function showThread(eid,expand,target,level){ $(".comment_add").hide(); $(target).fadeIn("slow"); console.log(target); $(target).empty().html("
"); $(target).load("https://tribeshill.com/common/discuss/display.php", { "prefix" : "tribes_hill_2022", "id" : eid, "expand" : expand, "level" : level } ); } function commentsShowCaptcha(){ $("#verification").hide().delay(2000).load("https://tribeshill.com/common/ishuman/index.php").fadeIn("slow"); ctype = "guest"; $(".comments_process_button").fadeIn(); $(".comments_choice_button").fadeOut(); } function commentsShowSignup(){ $("#verification").fadeIn(); $("#verification").load("https://tribeshill.com/common/discuss/signup.php", { "prefix" : "tribes_hill_2022" } ); ctype = "signup"; $(".comments_process_button").fadeIn(); $(".comments_choice_button").fadeOut(); } function commentsShowLogin(){ $("#verification").fadeIn(); $("#verification").load("https://tribeshill.com/common/discuss/login.php", { "prefix" : "tribes_hill_2022" } ); ctype = "login"; $(".comments_process_button").fadeIn(); $(".comments_choice_button").fadeOut(); } function commentsApprove(eid,target){ $(target+" .notify").fadeIn(); $(target+" .notify").load("https://tribeshill.com/common/discuss/approve.php", { "prefix" : "tribes_hill_2022", "eid" : eid }, function(){ $(target).removeClass("draft"); }); }