Tác giả: Cory
Preview: Code này dùng kết với với code này nhé các bạn.
========
Đặt code tại Below The Boards
Mã:
<script type="text/javascript">
(function ($) {
var postCountStop = NUMBER;

$.get($('#top_info strong a').attr('href'), function (data) {
var postCount = parseInt($('dl.user_info dt:contains(Posts:) + dd', data).html().replace(/,/gi, ''));

form_script.form_id.submit(function (e) {
if (postCountStop >= postCount) {
e.returnValue = e.preventDefault && e.preventDefault() ? false : false;
alert('You do not have enough posts to submit a form');
}
});
});
})(jQuery);
</script>
Thay NUMBER thành 1 số để thiết lập được gửi bao nhiêu yêu cầu