In plugins/submit/templates/submit1.php change the following line:
PHP Code:
<form name='submit_1' action='<?php echo BASEURL; ?>index.php?page=submit1' method='post'>
to:
PHP Code:
<form name='submit_1' action='<?php echo BASEURL; ?>index.php?page=submit1' method='post' onsubmit='return checkurl()'>
Add following lines to the end of submit1.php:
PHP Code:
<script type="text/javascript">
function checkurl() {
var url = $("#submit_orig_url").val();
if ( url.indexOf("squidoo.com") == -1){
alert("You can only submit squidoo.com links. Please try again.");
return false;
}
else { return true;}
}
</script>
User cannot proceed further until he submits a squidoo.com link.
Bookmarks