Skip to main content

Reply To: How to disable agreement to term when post Ad?

ClassiBase classifieds script Forums General help How to disable agreement to term when post Ad? Reply To: How to disable agreement to term when post Ad?

#619 Reply

ClassiBase
Keymaster

You can use javascript to check “I agree …” checkbox on page load.

Navigate to “Settings” -> “Header / footer” on “Admin panel”. Paste custom javascript to “Custom footer” field.

<script>
$(function(){
	$('input:checkbox[name="agree"]').checked();
});
</script>

If you have other code in “Custom footer” do not delete them because they may be used in other areas of your site.

This is best solution because:

  • User sees that they “agree to terms” and that they are responsible for ad that they post.
  • Will work even if you switch to other theme in most cases
  • No need to edit PHP files and be able to update theme to latest version without worries. (If you edit theme files, customization will be lost on next theme update. If you copy theme to other directory and rename it then it will not be updated in which case you will miss some cool features in future)
  • Classifieds Business Newsletter

    Get discounts and tips about growing your classifieds website.

    Subscribe