1
Mods & Plugins (Requests & Discussions) / comment and rate
« on: June 24, 2003, 02:02:07 AM »Quote from: V@no
the only way to do so, is put together rate form and coment form.
but in that case, u can not vote without posting the comments.
if u still whant this way, I think I can figure it out.
That is just I need, I need put together the rate form an comment form so the users can't vote without comment.
I've tried to put together the two forms but I have not been able to do it.
This is the code that I have in comment_form template:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
<tr>
<td valign="top" class="head1">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td valign="top" class="head1">{lang_post_comment}</td>
</tr>
<tr>
<td valign="top" class="row1">
<form name="commentform" action="{self}" method="post" onsubmit="postbutton.disabled=true;">
<table cellpadding="4" cellspacing="0" border="0">
<tr>
<td width="90"><b>{lang_name}</b></td>
<td>
<input type="text" name="user_name" size="30" value="{user_name}" class="commentinput" />
</td>
</tr>
<tr>
<td width="90"><b>{lang_headline}</b></td>
<td>
<input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" />
</td>
</tr>
<tr>
<td width="140" valign="top"><b>{lang_comment}</b></td>
<td>
<textarea name="comment_text" cols="35" rows="10" class="commenttextarea">{comment_text}</textarea>
</td>
</tr>
<tr>
<td width="90" valign="top"> </td>
<td>{bbcode}</td>
</TR>
<TR>
<TD width="90" valign="top"> </TD>
<TD>
<TABLE border="0" cellspacing="0" cellpadding="3" class="row1">
<TR>
<TD>
<select name="rating" class="select">
<option value="">--</option>
<option value="5">5</option>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
<option value="1">1</option>
</select>
</TD>
</tr>
<tr>
<td width="90" valign="top"> </td>
<td>
<input type="hidden" name="action" value="postcomment" />
<input type="hidden" name="id" value="{image_id}" />
<input type="submit" name="postbutton" value="{lang_post_comment}" class="button" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
Any idea?