Author Topic: comment and rate  (Read 25633 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
comment and rate
« Reply #15 on: April 30, 2003, 06:29:56 PM »
what kind of problem?
I dont see anything that could cause problems in none IE browsers...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
comment and rate
« Reply #16 on: April 30, 2003, 07:01:09 PM »
I dont understand it, too  :roll:

But they are not able to send comment AND rating together. They have to send the rating afterwards and sometime even this doesn't work.

 :cry:

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
comment and rate
« Reply #17 on: April 30, 2003, 11:38:03 PM »
Hi V@no,

please: just forget it. Im sorry to have made you wonder  :wink:

Together with my users we just found out, that they made mistakes in handling the rating. Now everything works well, because now it is clear to them how to do.

Im glad I have'nt changed the code back to the roots. Never change a running system...  And never underrate the confusion of your users :D  :D  :D

Everything works well now!

Good night with kind regards,

Biggi

Offline FreDyz

  • Newbie
  • *
  • Posts: 36
    • View Profile
comment and rate
« Reply #18 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">&nbsp;</td>
                  <td>{bbcode}</td>
                  </TR>
                <TR>
                  <TD width="90" valign="top">&nbsp;</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">&nbsp;</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?

Offline PetraK

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • http://www.tiermotive.de
Re: comment and rate
« Reply #19 on: June 17, 2005, 10:55:50 AM »
Hat denn jemand schon eine Lösung für - Kommentar und Bewertung - gleichzeitig abgeben, gefunden.

Grüsse PetraK

Offline kindian

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: comment and rate
« Reply #20 on: December 19, 2005, 12:32:30 AM »
V@no I have that same problem, can you fix the code?

I can not check it myself, but try this:
Find:
Code: [Select]
   if ($user_name == "")  {Replace with:
Code: [Select]
   if ($user_name == "" && intval($HTTP_POST_VARS['rating']) != "" && ($comment_text != "" || $comment_headline != ""))  {
Find:
Code: [Select]
   if ($comment_headline == "")  {Replace with:
Code: [Select]
   if ($comment_headline == "" && intval($HTTP_POST_VARS['rating']) != "" && ($user_name != "" || $comment_headline != ""))  {
Find:
Code: [Select]
   if ($comment_text == "")  {Replace with:
Code: [Select]
   if ($comment_text == "" && intval($HTTP_POST_VARS['rating']) != "" && ($user_name != "" || $comment_headline != ""))  {

Offline mstgokcen

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: comment and rate
« Reply #21 on: July 19, 2006, 05:06:32 PM »
I am not able to see the VOTE that I gave near my comment...AM I false?

I think I have to see my rating that I gave near my comment ...right?