Skip to main content
deleted 67 characters in body
Source Link
Derek Hogue
  • 17.4k
  • 2
  • 27
  • 42

`{exp:channel_ratings:rating_comment_avg entry_id="{entry_id}"}

  • Value For Money: {rating:value_for_money:stars} ({rating:value_for_money:avg} of 5)
  • Taste: {rating:taste:stars} ({rating:taste:avg} of 5)
  • Quality: {rating:quality:stars} ({rating:quality:avg} of 5)
  • OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)
{/exp:channel_ratings:rating_comment_avg}

    {exp:channel_ratings:rating_comment_avg entry_id="{entry_id}"}
    <ul>
        <li>Value For Money: {exprating:commentvalue_for_money:form channel="products"stars} ({rating:collection="products" entry_id="{entry_idvalue_for_money:avg}" dynamic="off"of rating:enabled="yes"}5)</li>
         <li>Taste: {rating:taste:stars} ({rating:taste:avg} of 5)</li>
         {if<li>Quality: {rating:already_ratedquality:stars} You have already reviewed({rating:quality:avg} thisof product.{5)</if}li>
         <li>OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)</li>
     </ul>
{/exp:channel_ratings:rating_comment_avg}

{exp:comment:form channel="products" rating:collection="products" entry_id="{ifentry_id}" dynamic="off" rating:not_ratedenabled="yes"} 
    {if rating:already_rated} You have already reviewed this product.{/if}
    {if rating:not_rated}  
         <label for="name">Name:</label> <input type="text" name="name" value="{screen_name}" size="50" /><br />
                        <label for="email">Email:</label> <input type="text" name="email" value="{email}" size="50" /><br />      
                        {rating:fields}
                            <label>{rating:field_title}</label>
                            <select name="{rating:form_name}">
                                    <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>
                        {/rating:fields}

                        <label>Review</label>
                        <textarea name="comment" cols="70" rows="2"></textarea> <br />
                        <input type="submit" value="Submit Review">
                    {/if}
                    {/exp:comment:form} `

`{exp:channel_ratings:rating_comment_avg entry_id="{entry_id}"}

  • Value For Money: {rating:value_for_money:stars} ({rating:value_for_money:avg} of 5)
  • Taste: {rating:taste:stars} ({rating:taste:avg} of 5)
  • Quality: {rating:quality:stars} ({rating:quality:avg} of 5)
  • OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)
{/exp:channel_ratings:rating_comment_avg}

                    {exp:comment:form channel="products" rating:collection="products" entry_id="{entry_id}" dynamic="off" rating:enabled="yes"}
                    {if rating:already_rated} You have already reviewed this product.{/if}
                    {if rating:not_rated} 
                        <label for="name">Name:</label> <input type="text" name="name" value="{screen_name}" size="50" /><br />
                        <label for="email">Email:</label> <input type="text" name="email" value="{email}" size="50" /><br />      
                        {rating:fields}
                            <label>{rating:field_title}</label>
                            <select name="{rating:form_name}">
                                    <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>
                        {/rating:fields}

                        <label>Review</label>
                        <textarea name="comment" cols="70" rows="2"></textarea> <br />
                        <input type="submit" value="Submit Review">
                    {/if}
                    {/exp:comment:form} `
{exp:channel_ratings:rating_comment_avg entry_id="{entry_id}"}
    <ul>
        <li>Value For Money: {rating:value_for_money:stars} ({rating:value_for_money:avg} of 5)</li>
         <li>Taste: {rating:taste:stars} ({rating:taste:avg} of 5)</li>
         <li>Quality: {rating:quality:stars} ({rating:quality:avg} of 5)</li>
         <li>OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)</li>
     </ul>
{/exp:channel_ratings:rating_comment_avg}

{exp:comment:form channel="products" rating:collection="products" entry_id="{entry_id}" dynamic="off" rating:enabled="yes"}
    {if rating:already_rated} You have already reviewed this product.{/if}
    {if rating:not_rated}  
         <label for="name">Name:</label> <input type="text" name="name" value="{screen_name}" size="50" /><br />
         <label for="email">Email:</label> <input type="text" name="email" value="{email}" size="50" /><br />      
        {rating:fields}
            <label>{rating:field_title}</label>
             <select name="{rating:form_name}">
                 <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>
         {/rating:fields}

        <label>Review</label>
         <textarea name="comment" cols="70" rows="2"></textarea> <br />
         <input type="submit" value="Submit Review">
    {/if}
{/exp:comment:form}
Included version numbers in question title
Link
foamcow
  • 7.2k
  • 22
  • 37

Does channel ratings support this version of(4.0.8) work with EE version 2.9.2?

added 1108 characters in body
Source Link
Aaron
  • 1.2k
  • 6
  • 14

{exp:comment:form channel="products" rating:collection="products" entry_id="{entry_id}" dynamic="off" rating:enabled="yes"} {if rating:already_rated} You have already rated this entry{/if} {if rating:not_rated} <label>Rating</label> <select name="rating[default]"> <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><br /> {/if} <label>Review</label> <textarea name="comment" cols="70" rows="2"></textarea> <br /> <input type="submit" value="Submit Rating"> {/exp:comment:form}

`{exp:channel_ratings:rating_comment_avg entry_id="{entry_id}"}
  • Value For Money: {rating:value_for_money:stars} ({rating:value_for_money:avg} of 5)
  • Taste: {rating:taste:stars} ({rating:taste:avg} of 5)
  • Quality: {rating:quality:stars} ({rating:quality:avg} of 5)
  • OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)
{/exp:channel_ratings:rating_comment_avg}

                    {exp:comment:form channel="products" rating:collection="products" entry_id="{entry_id}" dynamic="off" rating:enabled="yes"}
                    {if rating:already_rated} You have already reviewed this product.{/if}
                    {if rating:not_rated} 
                        <label for="name">Name:</label> <input type="text" name="name" value="{screen_name}" size="50" /><br />
                        <label for="email">Email:</label> <input type="text" name="email" value="{email}" size="50" /><br />      
                        {rating:fields}
                            <label>{rating:field_title}</label>
                            <select name="{rating:form_name}">
                                    <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>
                        {/rating:fields}

                        <label>Review</label>
                        <textarea name="comment" cols="70" rows="2"></textarea> <br />
                        <input type="submit" value="Submit Review">
                    {/if}
                    {/exp:comment:form} `

Am I missing something? If so, I would love a tip-off on what's wrong.

Edited for my comment below: I can enter information as a guest if I allow guests and I can rate items, but this is not showing up in my module's home page.

{exp:comment:form channel="products" rating:collection="products" entry_id="{entry_id}" dynamic="off" rating:enabled="yes"} {if rating:already_rated} You have already rated this entry{/if} {if rating:not_rated} <label>Rating</label> <select name="rating[default]"> <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><br /> {/if} <label>Review</label> <textarea name="comment" cols="70" rows="2"></textarea> <br /> <input type="submit" value="Submit Rating"> {/exp:comment:form}

Am I missing something? If so, I would love a tip-off on what's wrong.

`{exp:channel_ratings:rating_comment_avg entry_id="{entry_id}"}

  • Value For Money: {rating:value_for_money:stars} ({rating:value_for_money:avg} of 5)
  • Taste: {rating:taste:stars} ({rating:taste:avg} of 5)
  • Quality: {rating:quality:stars} ({rating:quality:avg} of 5)
  • OVERALL: {rating:overall:stars} ({rating:overall:avg} of 5)
{/exp:channel_ratings:rating_comment_avg}

                    {exp:comment:form channel="products" rating:collection="products" entry_id="{entry_id}" dynamic="off" rating:enabled="yes"}
                    {if rating:already_rated} You have already reviewed this product.{/if}
                    {if rating:not_rated} 
                        <label for="name">Name:</label> <input type="text" name="name" value="{screen_name}" size="50" /><br />
                        <label for="email">Email:</label> <input type="text" name="email" value="{email}" size="50" /><br />      
                        {rating:fields}
                            <label>{rating:field_title}</label>
                            <select name="{rating:form_name}">
                                    <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>
                        {/rating:fields}

                        <label>Review</label>
                        <textarea name="comment" cols="70" rows="2"></textarea> <br />
                        <input type="submit" value="Submit Review">
                    {/if}
                    {/exp:comment:form} `

Am I missing something? If so, I would love a tip-off on what's wrong.

Edited for my comment below: I can enter information as a guest if I allow guests and I can rate items, but this is not showing up in my module's home page.

Source Link
Aaron
  • 1.2k
  • 6
  • 14
Loading