[Comoblog-commit] comoblog/templates add_comment.tpl.htm, 1.5, 1.6 list_comments.tpl.htm, 1.3, 1.4
Status: Inactive
Brought to you by:
markwallis
|
From: iamdecal <iam...@us...> - 2006-11-17 00:50:53
|
Update of /cvsroot/comoblog/comoblog/templates In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv29462/templates Modified Files: add_comment.tpl.htm list_comments.tpl.htm Log Message: Working version of captchas. not as feature complete as id like, but it works on the current version think we should sort out a may sort out a mini release? if so it needs add_comment.php list_comments.php templates/add_comment.tpl.htm templates/list_comments.tpl.htm captcha.php img/ttf/REVELMED.TTF and a bit of tidying of captcha.php tested on two systems, but i cant garentee it for everywhere Index: list_comments.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/list_comments.tpl.htm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- list_comments.tpl.htm 22 Oct 2006 11:44:00 -0000 1.3 +++ list_comments.tpl.htm 17 Nov 2006 00:50:47 -0000 1.4 @@ -1,34 +1,34 @@ -<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} -<div id="comments"> -<h1>{TXT.comments_for_post}: {POST.post_mail_subject}</h1> -Note, that some comments may be in the moderation queue, and so not yet visible. -<!-- BEGIN: nocomments --> -<div class="comment"> -<h1>{TXT.no_comments}</h1> -<p> </p> -</div> -<!-- END: nocomments --> -<!-- BEGIN: comments --> - -<!-- TODO: this should be moved to TXT.no_comments_reason --> -<!-- BEGIN: comment --> -<div class="comment"> -<p class="comment_header"> -<a href="{COMMENT.comment_author_url} rel="nofollow"">{COMMENT.comment_author}</a> -<!-- BEGIN: email --> - {COMMENT.comment_author_email} - <!-- END: email --><br /> - - {COMMENT.comment_date.year}/{COMMENT.comment_date.mon}/{COMMENT.comment_date.mday} {COMMENT.comment_date.hours}:{COMMENT.comment_date.minutes} - </p> -<p>{COMMENT.comment_text}</p> -</div> -<!-- END: comment --> -<!-- END: comments --> - -<div class="comment"> -<p><a href="add_comment.php?i={POST.post_id}" class="post_footer">{TXT.add_comment}</a></p> -</div> -</div> -{FILE "templates/footer.tpl.htm"} -<!-- END: main --> +<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} +<div id="comments"> +<h1>{TXT.comments_for_post}: {POST.post_mail_subject}</h1> +Note, that some comments may be in the moderation queue, and so not yet visible. +<!-- BEGIN: nocomments --> +<div class="comment"> +<h1>{TXT.no_comments}</h1> +<p> </p> +</div> +<!-- END: nocomments --> +<!-- BEGIN: comments --> + +<!-- TODO: this should be moved to TXT.no_comments_reason --> +<!-- BEGIN: comment --> +<div class="comment"> +<p class="comment_header"> +<a href="{COMMENT.comment_author_url} rel="nofollow"">{COMMENT.comment_author}</a> +<!-- BEGIN: email --> + {COMMENT.comment_author_email} +<!-- END: email --><br /> + + {COMMENT.comment_date.year}/{COMMENT.comment_date.mon}/{COMMENT.comment_date.mday} {COMMENT.comment_date.hours}:{COMMENT.comment_date.minutes} + </p> +<p>{COMMENT.comment_text}</p> +</div> +<!-- END: comment --> +<!-- END: comments --> + +<div class="comment"> +<p><a href="add_comment.php?i={POST.post_id}" class="post_footer">{TXT.add_comment}</a></p> +</div> +</div> +{FILE "templates/footer.tpl.htm"} +<!-- END: main --> Index: add_comment.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/add_comment.tpl.htm,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- add_comment.tpl.htm 22 Oct 2006 11:44:00 -0000 1.5 +++ add_comment.tpl.htm 17 Nov 2006 00:50:47 -0000 1.6 @@ -1,45 +1,51 @@ -<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} -<div class="comment"> -<form action="{ACTION}" method="POST"> -<input type="hidden" name="post_id" value="{FORM.post_id}" /> -<h1>{TXT.add_comment}</h1> -<p> -{TXT.your_name}<br /> -<input type="text" name="comment_author" id="comment_author" value="{FORM.comment_author}" class="comment_form" /> -</p> -<p> -{TXT.your_email}<br /> -<input type="text" name="comment_author_email" id="comment_author_email" value="{FORM.comment_author_email}" class="comment_form" /> -</p> -<p> -{TXT.your_url} -<br /> -<input type="text" name="comment_author_url" id="comment_author_url" value="{FORM.comment_author_url}" class="comment_form" /> -</p> -<p> -{TXT.comment}<br /> -<textarea name="comment_text" id="comment_text" class="comment_form">{FORM.comment_text}</textarea> -</p> -<!-- BEGIN: html_comments --> -<p> -{TXT.comment_convert} -<input type="checkbox" style="width:50px" name="comment_convert" id="comment_convert" -class="comment_form" value="noconvert"> -</p> -<!-- END: html_comments --> -<p> -<input type="submit" name="submit" value="{TXT.submit}" /> -</p> -</form> -<!-- BEGIN: form_errors --> -<script language="javascript"> - var errors = '++Warning++\n\n'; - <!-- BEGIN: error --> - errors += '{ERROR}\n'; - <!-- END: error --> - alert (errors); -</script> -<!-- END: form_errors --> -</div> -{FILE "templates/footer.tpl.htm"} -<!-- END: main --> +<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} +<div class="comment"> +<form action="{ACTION}" method="POST"> +<input type="hidden" name="post_id" value="{FORM.post_id}" /> +<h1>{TXT.add_comment}</h1> +<p> +{TXT.your_name}<br /> +<input type="text" name="comment_author" id="comment_author" value="{FORM.comment_author}" class="comment_form" /> +</p> +<p> +{TXT.your_email}<br /> +<input type="text" name="comment_author_email" id="comment_author_email" value="{FORM.comment_author_email}" class="comment_form" /> +</p> +<p> +{TXT.your_url} +<br /> +<input type="text" name="comment_author_url" id="comment_author_url" value="{FORM.comment_author_url}" class="comment_form" /> +</p> +<p> +{TXT.comment}<br /> +<textarea name="comment_text" id="comment_text" class="comment_form">{FORM.comment_text}</textarea> +</p> +<!-- BEGIN: html_comments --> +<p> +{TXT.comment_convert} +<input type="checkbox" style="width:50px" name="comment_convert" id="comment_convert" +class="comment_form" value="noconvert"> +</p> +<!-- END: html_comments --> + + +<img src="captcha.php" alt="CAPTCHA"> <br/>Type what you see. +<input type="text" name="captcha_string" size="30"> +{FORM.cap_string} + +<p> +<input type="submit" name="submit" value="{TXT.submit}" /> +</p> +</form> +<!-- BEGIN: form_errors --> +<script language="javascript"> + var errors = '++Warning++\n\n'; + <!-- BEGIN: error --> + errors += '{ERROR}\n'; + <!-- END: error --> + alert (errors); +</script> +<!-- END: form_errors --> +</div> +{FILE "templates/footer.tpl.htm"} +<!-- END: main --> |