� 2011 Starpulse.com
Photo Credits: PR Photos
Jessica Simpson Planning To Elope?"); return false; } $.post("http://www.starpulse.com/members/register.php", {json: "1", username:username,email:email,password1:password,comment:comments,redirect:redirect,object_id:object_id,object_type:object_type,webobject:web_object,link_type:link_type}, function(data) { if (data.indexOf("Registration Complete") != -1) { $("#message_post").html("
Thank you! An e-mail has been sent to confirm your email address
Click on the link within the e-mail to activate your comment!
"); location.href = "#message_post"; } else if (data.indexOf("duplicate_username") != -1) { return false; } else if (data.indexOf("duplicate_email") != -1) { $("#message_post").html("
The email is already in use. To recover your username and/or password,
please use our reminder tool.
"); location.href = "#message_post"; } else { $("#message_post").html("
This username and email have already been taken!
"); } }, "json"); return false; }); /* Returning Members tab control */ $("#JqRegPostForm").submit(function(){ var username = $("input#reg_name_post").val(); var password = $("input#reg_password_post").val(); var comments = $("textarea#reg_comment_post").val(); var redirect = $("input#redirect").val(); var object_id = $("input#object_id").val(); var ui_type = $("input#object_type").val(); var pagenumber = Math.ceil(total_comments / 25) - 1 ; var currentbutton =$("#pagination").children("div").children("span"); var lastbutton =$("#pagination").children("div").children("a").eq(-2); var web_object = $("input#webobject").val(); var tmp; if (ui_type > 0 ) { pagenumber = 0; // topics are newest comes first. } $("#message_post").html(""); $.post("http://www.starpulse.com/members/login.php", {json: "1", username:username,password:password}, function(login_data){ if (login_data.return_code == "success") { $.post("http://www.starpulse.com/sp_comments/AddComment.php", {ajax: "1", blog_text:comments,object_id:object_id,ui_type:ui_type,webobject:web_object}, function(data){ if (data.indexOf("accepted") != -1) { if (typeof(login_data.username) == 'string') { apparent_starpulseusername =login_data.username; } tmp = "\n"; tmp += "\n"; $('#ajaxContent').append(tmp); $("#reg_comment_post").val(''); if( $('#login_comment_form').is(':visible') ) { $('#login_comment_form').hide(); $("#logout_comment_form").html("You are logged in as " + login_data.username + ". [logout]
"); } if (total_comments > 25 && ui_type == 0 ) { currentbutton.replaceWith('' + currentbutton.text() + ""); lastbutton.replaceWith('' + lastbutton.text() + ""); } location.href = "#Searchresult"; } else { $("#message_post").html("" + data + "
"); } }, "txt"); } else { $("#message_post").html("Username or password is incorrect.
"); } }, "json"); return false; }); });
Diora Baird Anna Friel Cinthia Moura Coco Lee Jolene Blalock
No comments:
Post a Comment