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
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