View Full Version : Comments Not Posting?
lawrencejay
10-09-2005, 05:28 PM
Hello,
Might someone take a look at my site. It seems comments can be left but they are not posting.
Any help would be greatly appericated.
Thanks
lj
www.everthink.com
Connie
10-09-2005, 05:48 PM
check your options whether comment-moderation is active or not
if active, you must moderate the comments and accept them that they can be posted...
lawrencejay
10-09-2005, 05:53 PM
Hi Connie,
Thanks for the help. I can't find the comment-moderation field. I have looked in Options and Comments section of the Admin page. Am I missing something?
Thanks
Larry
Connie
10-09-2005, 06:00 PM
which PP version are you using? Maybe I mixed that because I am using the developer-alpha-version where there is comment-moderation
if so, please forget my idea
but: are you sure that you use the relevant tags for the comments in your template?
you have <IMAGE_COMMENTS> in your template?
lawrencejay
10-09-2005, 06:09 PM
I am using 1.4.2 And yes in the comment template I have the <IMAGE_COMMENTS> tag.
code is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><SITE_TITLE></title>
<style type="text/css">
body {
background:#191919;
margin:10px;
width:400px;
padding:0px;
text-align:left;
font-size:11px;
font-family:Verdana, Helvetica, sans-serif;
color:#CCCCCC;
}
#wrapper {
margin:0px auto;
padding-top:0px;
padding-left:0px;
padding-right:0px;
padding-bottom:0px;
width:400px;
text-align:left;
}
#comments{
padding:5px;
background:#111;
border:1px solid #333;
}
input, textarea {
font-family : Verdana,Arial,Geneva,Helvetica,sans-serif;
font-size : 1em;
border: 1px solid #ccc;
}
input[type], textarea[name] {
background : #eee;
}
input[type=submit], input[type=reset] {
background : #272727;
color : #fff;
}
input[type=submit]:hover {
background : #414141;
color : #fff;
}
#images img{
padding:3px;
border:2px solid #333;
}
#image_info {
width:400px;
padding-top:10px;
padding-bottom:10px;
display:block;
font-size:11px;
text-align:left;
color:#ccc;
border:0px;
}
#image_info a {
text-decoration:none;
color:#999;
}
#image_info a:hover {
text-decoration:none;
color:#99CC33;
}
#footer {
padding-top:10px;
padding-bottom:10px;
width:400px;
display:block;
color:#999;
font-size: 9px;
text-decoration:none;
text-align:center;
}
#footer a{
color:#999;
text-decoration:none;
}
#footer a:hover{
display: block;
font-size: 9px;
text-decoration:none;
text-align:center;
color:#99CC33;
}
</style>
<script language='javascript' type='text/javascript'>
<!-- BEGIN
function flip(rid)
{
current=(document.getElementById(rid).style.displa y == 'none') ? 'block' : 'none';
document.getElementById(rid).style.display = current;
}
// End -->
</script>
</head>
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="820">
<br>
<div id="images"><IMAGE_THUMBNAIL_NO_LINK></div><b><br><IMAGE_TITLE></b><br><br>
<IMAGE_NOTES>
<b>Camera: </b><EXIF_CAMERA_MODEL><br>
<b>Exposure: </b><EXIF_EXPOSURE_TIME><br>
<b>Aperture: </b><EXIF_APERTURE><br>
<b>Focal Length: </b><EXIF_FOCAL_LENGTH><br><br>
<br>
<hr align="center" width="350" size="1" noshade="noshade" />
<br><br>
<div id="comments">
<IMAGE_COMMENTS>
</div>
<div id="addcomment">
<br />
<form method='post' action='index.php?popup=comment&x=save_comment' name='commentform' >
Comment:<br /><textarea name='message' rows='3' cols='50' class="text"></textarea>
<br /><br />
<label>
<input type='text' name='name' class='input' value='<VINFO_NAME>' />
Name</label>
<br /><br />
<input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
<label><input class='input' type='text' name='email' value='<VINFO_EMAIL>'/>
E-mail</label>
<br /><br />
<label><input type='text' name='url' class='input' value='<VINFO_URL>' />
Website</label>
<p>
<input type='submit' value='Add Comment' class="commentbutton" onclick="self.close()">
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
<input type='checkbox' value='set' name='vcookie'/>
Remember me </p>
</form>
</div>
</div>
</div>
<br />
<br />
<hr align="center" width="350" size="1" noshade="noshade" />
<br />
<div id="footer"><br />
<img src="templates/standard/tm.jpg"><br />
<a href="index.php?x=about"><br />
© 2000 Everthink Productions, All Rights Reserved.</a></div>
</div></td>
</tr>
</table>
</body>
</html>
<!-- end -->
Connie
10-09-2005, 06:24 PM
please compare the form:
it must be "<form method='post' action='index.php?x=save_comment' name='commentform' accept-charset='UTF-8'>"
and your's is: "<form method='post' action='index.php?popup=comment&x=save_comment' name='commentform' >"
or am I wrong?
lawrencejay
10-09-2005, 08:01 PM
OH thank you Connie. It looks like I have discovered the issue. It appears that when the email field is filled out the comment will not post. When the email field is not filled out it is posting fine.
Any thoughts?
Larry
Thanks again.
lawrencejay
10-09-2005, 08:15 PM
Update..
It appears that the "@" symbol is causing the comment not to post. here is the form code:
This is very strange...
<form method='post' action='index.php?x=save_comment' name='commentform'>
Comment:<br /><textarea name='message' rows='3' cols='50' class="text"></textarea>
<br /><br />
<label>
<input class='input' type='text' name='name' value=''/>
Name</label>
<br /><br />
<input type='hidden' name='parent_name' value='<IMAGE_NAME>' />
<label><input class='input' type='text' name='email' value=''/>
E-mail</label>
<br /><br />
<label><input class='input' type='text' name='url' value=''/>
Website</label>
<p>
<input type='submit' value='Add Comment' class="commentbutton" onclick="self.close()">
<input type='hidden' name='parent_id' value='<IMAGE_ID>' />
<input type='checkbox' value='set' name='vcookie'/>
Remember me </p>
</form>
Connie
10-09-2005, 08:26 PM
it is not strange... my recommendation is that you, when you design your own template, take an existing "official" template as base..
you did not define a charset for your popup-html:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
you did not use "accept-charset:utf-8" in the form-definition
so for sure every browser can send to the program what he interpretes
as our program is written to "take" and "send" UTF-8-charset to guarantee that all characters are interpreted ok, you just cut off that functionality ;=)
I suggest to switch to one of the templates which come with PP, check if everything is ok and then strip-down and modify to your taste that template ...
good luck
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.