1st time user
Posted: 12 August 2007 12:21 PM   [ Ignore ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

I would like to use the module in the comments. Have users to give a review and a rating. Currently I have place the example code into the exp:comment:form code.
The ratings are being recorded (I can see in CP). But my review is not being recorded. When I take out the ratings, everything goes back to normal (working).

Heres the code:

{exp:comment:form preview="site/critique_preview" weblog="submissions" return="{path=site/gallery}}

{if logged_out}
   Are you a member? If so, please <a href="
{path=member/login}">log-in</a>.
   Not a member? Please <a href="
{path=member/register}">register</a>.
   Have you <a href="
{path=member/forgot}">forgotten your password</a>?
{/if}

<p><textarea name="
comment" cols="50" rows="10">{comment}</textarea></p>

<p><input type="
checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</p>

<p><input type="
checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</p>

<input type="
submit" name="submit" value="Submit" />
<input type="
submit" name="preview" value="Preview" />

    {exp:rating:form entry_id="
{entry_id}" form_name="critique_detail" require_membership="yes" admin_template="admin_template" anonymous="yes" status="open" }
    <input type="
hidden" name="name" value="{screen_name}" />
    <input type="
hidden" name="email" value="{email}" />
    <label for="
review">Your Rating</label>
    <select name="
rating">
    <option value="
1">1</option>
    <option value="
2">2</option>
    <option value="
3">3</option>
    <option value="
4">4</option>
    <option value="
5">5</option>
    </select>
    
    {/exp:rating:form}             

{/exp:comment:form}

Should I just use the entire ratings module (review and ratings) or will i be missing some of EE power that is found in the Comments module?

Profile
 
 
Posted: 27 August 2007 08:29 AM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Try them outside the actual comment tag, yes. You are, basically, nesting two <form> tags, which is probably not what you want. A link to your site would also be helpful.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 27 August 2007 09:35 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-25

I had forgotten I had posted a question about this. I just ended up scrapping EE’s comments and using the solspace review and rating.

Profile
 
 
Posted: 27 August 2007 09:38 AM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Excellent… Just wanted to make sure there are no loose ends in the forum.

 Signature 

Ingmar Greil

Profile