Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [hoefti] function chkFormular by guest_username

Quote Reply
Re: [hoefti] function chkFormular by guest_username In reply to
Hi hoefti,

I haven't checked this Javascript, but try something along these lines:

In the post_write.html template, look for the <form> tag. Add to it:

<%if post_guest_custom_username%> onsubmit="if (document.post.guest_username = '') { return false; } return true;"

You'll also need to make the same change to post_reply_write.html. You'll probably also want to put an "alert" in there telling them to enter a username and the "document.post.guest_username.focus()". Both should be before the "return false;".

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Subject Author Views Date
Thread function chkFormular by guest_username hoefti 5576 Oct 5, 2002, 1:42 AM
Thread Re: [hoefti] function chkFormular by guest_username
Jagerman 5479 Oct 22, 2002, 4:32 PM
Thread Re: [Jagerman] function chkFormular by guest_username
hoefti 5477 Oct 22, 2002, 9:20 PM
Thread Re: [hoefti] function chkFormular by guest_username
Jagerman 5448 Oct 30, 2002, 4:36 PM
Post Re: [Jagerman] function chkFormular by guest_username
hoefti 5452 Oct 30, 2002, 10:59 PM