
2.This mod has another problem that once before I asked about but no response recieved. That is : when guest post an article without filling the "required xfields", it says that you have not filled all required fileds and should go back and send again. However, when you sign in as admin you will find all guest posts( including that one rejected before), added to database and waiting for approval?!
regards
if (document.guest.short_story.value == ""){
document.guest.short_story.focus();
alert ("The short story can't be blank.");
return false;
} <script type="text/javascript">
function check_fields(){
if (document.guest.short_story.value == ""){
document.guest.short_story.focus();
alert ("The short story can't be blank.");
return false;
}
return true;
}
</script>scottdallas wrote:doh! that easy!? thanks
update:I tried that just now and it still goes unapproved. Is there anything else I should delete or comment out?
This is exactly what I took out:
- Code: Select all
<script type="text/javascript">
function check_fields(){
if (document.guest.short_story.value == ""){
document.guest.short_story.focus();
alert ("The short story can't be blank.");
return false;
}
return true;
}
</script>
'values' => array(
'date' => $added_time,
'author' => ($_POST['name'] ? $_POST['name'] : 'guest'),
'title' => replace_news('add', $title),
'short' => strlen(replace_news('add', $short_story)),
'full' => strlen(replace_news('add', $full_story)),
'avatar' => $avatar,
'category' => $category,
'url' => namespace(totranslit($title)),
'hidden' => true
)
)); 'hidden' => '0'Return to Additional Downloads
Users browsing this forum: No registered users and 0 guests