• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Option to rate item (Author Rating) during create/edit process

russoroni

New Member
Showcase
When creating a new item I need for there to be a required first star rating. Also I don't want for the first vote to be tallied towards the total votes.

reviewsdemo.jpg

And also could you change or have the option to use 'Votes' on the slider instead of 'Views'? Views don't have any real use in my case and I can't imagine I'm the only one.

Image 22.gif

Thanks Bob
 
  • Like
Reactions: Bob
Upvote 1
@russoroni
Are you talking about the ability for the item creator to give an own excluded rating? Would highly appreciate this!
 
@russoroni
Are you talking about the ability for the item creator to give an own excluded rating? Would highly appreciate this!

Yeah but I've talked to Bob about this and it's something that is planned down the road. It would require some really big changes to the database and it's really beyond the scope of what could be done in this version.
 
Just a quick up on this... I've moved the target (not an exact science) version for some of the advanced review functionality to SC 2.4.0 or SC 2.5.0 (which this falls under). I am going to use SC 2.3.x for a lot of the smaller stuff that is already complete and ready to be released instead of holding them up.

This particular function is already done, but it ties in closely with other "Review" type functionality that is NOT completed yet, so it will be released as an entire package.
 
I marked this as IMPLEMENTED as there is now functionality in place that covers some of what was suggested in this thread.

Showcase items now have an "optional" AUTHOR Rating which is used for when the Item itself is a "REVIEW" (like the posts in this suggestion entail). Instead of the 5 star picker which only lets you pick a FULL 1, 2, 3, 4 or 5 rating, I've added a dropdown select that goes from 5.00 to 1.00 in .25 increments ie.. 5.00, 4.75, 4.50, 4.25, 4.00 etc. This allows you to set a Author rating of 4.25 if you want to. btw, this rating is completely separate from "User Ratings". Throughout the addon, there are now 2 sets of Star ratings. One for Author Rating and one for Average User Rating (sometimes abbreviated to User Rating).

Selection_935.png

The Author Rating is ONLY displayed when there is a set rating (setting to "No Rating" will cause the field to not be rendered on the Item page).

As mentioned above, there two separate sets of RATINGS (Author Rating and Average User Rating). These ratings are located in several different spots and in most cases will only display when there is DATA to be displayed AND if it is enabled for display in that specific area (like layouts for example).

The first area it is displayed in is the modified header area that is now capable of displaying Author Rating, Average User Rating AND Item "Custom" Fields. The other area is in the Quick Stats block above the Average User Rating. There are 2 new options under the "Item Page" options that allow you to enabled/disable the display in the header (which by the way includes being display on the associated discussion thread)

Selection_937.png
NOTE: Custom Fields information related to SC 2.4.0 is covered in another thread.

Here is an example of the Author Rating displaying in two places on the Item Page.

Selection_936.png


As you can see, all data that displays in the HEADER location also displays at the top of the associated Discussion Thread now.

Selection_938.png
 
As mentioned, this also effects LAYOUTS, so here are a few screen shots and some explanation.

This first one shows how the Modular Blocks for the Showcase SLIDERS now look.

The block is slightly wider now with a larger image (less wasted "padding" space). The Rating Data is now displayed a bit different than before (obviously because of a NEW type). So the layout is a bit more like the "Stats" block from the List View layout which has stats stacked with title to the left, data to the right. There are OPTIONS to enable/Disable all of the data in the block separately now

Selection_939.png

Each SLIDER has these options to control the overall look.

Selection_942.png

NOTE: The MODULAR layout does not have OPTIONS, however, the Modular Index template can be edited to set/unset any option for any module.


Next up, LIST VIEW. The only thing modified with List View was the addition of the Author Rating. I had to slightly modify the way the ratings display in the stats block because the old way would not have made any sense with 2 sets of ratings with no TITLE explaining what they were for. The Author Rating only displays IF there is a rating set. User Ratings will display only if the Category is set to Rate or Rate & Review.
Selection_941.png

Next up... Article View Layout. It is kinda similar to how the Item Header works. Data only displays IF there is data AND if the option to display that data is Set. Author Rating, Ave User Rating, Custom Fields all each have their own separate option to "Show".

Selection_940.png

Selection_943.png
 
The ONLY Layout that has not change at all is GRID VIEW (as I won't do anything to that until I receive some detailed mockups from users).

All of the CTA FT & Portal integration includes the new options, layouts and css,
 
Just one thought, would it be possible to remove the 1/4 stars options?
Yes, that is a real easy template edit (you'd need to modify both the create and edit forms).

Template: nflj_showcase_item_create
Look for this large block of text (it sticks out like a sore thumb)
remove the specific option rows that you don't want.

THIS is an option row. This one is for the 4.25 rating value....
HTML:
<option value="4.25" {xen:selected "{$item.author_rating} == '4.25' "}>4.25</option>

HTML:
        <xen:if is="{$category.allow_author_rating}">
            <dl class="ctrlUnit">
                <dt><label for="ctrl_status_id">{xen:phrase nflj_showcase_author_rating}:</label></dt>
                <dd>
                    <select name="author_rating" class="textCtrl autoSize" id="ctrl_author_rating">
                        <option value="0" {xen:selected "{$item.author_rating} == '0' "}>No Rating</option>

                        <option value="5.00" {xen:selected "{$item.author_rating} == '5.00' "}>5.00</option>

                        <option value="4.75" {xen:selected "{$item.author_rating} == '4.75' "}>4.75</option>
                        <option value="4.50" {xen:selected "{$item.author_rating} == '4.50' "}>4.50</option>
                        <option value="4.25" {xen:selected "{$item.author_rating} == '4.25' "}>4.25</option>
                        <option value="4.00" {xen:selected "{$item.author_rating} == '4.00' "}>4.00</option>

                        <option value="3.75" {xen:selected "{$item.author_rating} == '3.75' "}>3.75</option>
                        <option value="3.50" {xen:selected "{$item.author_rating} == '3.50' "}>3.50</option>
                        <option value="3.25" {xen:selected "{$item.author_rating} == '3.25' "}>3.25</option>
                        <option value="3.00" {xen:selected "{$item.author_rating} == '3.00' "}>3.00</option>

                        <option value="2.75" {xen:selected "{$item.author_rating} == '2.75' "}>2.75</option>
                        <option value="2.50" {xen:selected "{$item.author_rating} == '2.50' "}>2.50</option>
                        <option value="2.25" {xen:selected "{$item.author_rating} == '2.25' "}>2.25</option>
                        <option value="2.00" {xen:selected "{$item.author_rating} == '2.00' "}>2.00</option>

                        <option value="1.75" {xen:selected "{$item.author_rating} == '1.75' "}>1.75</option>
                        <option value="1.50" {xen:selected "{$item.author_rating} == '1.50' "}>1.50</option>
                        <option value="1.25" {xen:selected "{$item.author_rating} == '1.25' "}>1.25</option>
                        <option value="1.00" {xen:selected "{$item.author_rating} == '1.00' "}>1.00</option>
                    </select>
                    <p class="explain">{xen:phrase nflj_showcase_author_rating_explain}</p>
                </dd> 
            </dl>
        </xen:if>


You'll need to do the EDIT template as well...

Template: nflj_showcase_item_edit
Look for this large block of text (it sticks out like a sore thumb)
remove the specific option rows that you don't want.
HTML:
        <xen:if is="{$category.allow_author_rating}">
            <dl class="ctrlUnit">
                <dt><label for="ctrl_author_rating">{xen:phrase nflj_showcase_author_rating}:</label></dt>
                <dd>
                    <select name="author_rating" class="textCtrl autoSize" id="ctrl_author_rating">
                        <option value="0" {xen:selected "{$item.author_rating} == '0' "}>No Rating</option>

                        <option value="5.00" {xen:selected "{$item.author_rating} == '5.00' "}>5.00</option>

                        <option value="4.75" {xen:selected "{$item.author_rating} == '4.75' "}>4.75</option>
                        <option value="4.50" {xen:selected "{$item.author_rating} == '4.50' "}>4.50</option>
                        <option value="4.25" {xen:selected "{$item.author_rating} == '4.25' "}>4.25</option>
                        <option value="4.00" {xen:selected "{$item.author_rating} == '4.00' "}>4.00</option>

                        <option value="3.75" {xen:selected "{$item.author_rating} == '3.75' "}>3.75</option>
                        <option value="3.50" {xen:selected "{$item.author_rating} == '3.50' "}>3.50</option>
                        <option value="3.25" {xen:selected "{$item.author_rating} == '3.25' "}>3.25</option>
                        <option value="3.00" {xen:selected "{$item.author_rating} == '3.00' "}>3.00</option>

                        <option value="2.75" {xen:selected "{$item.author_rating} == '2.75' "}>2.75</option>
                        <option value="2.50" {xen:selected "{$item.author_rating} == '2.50' "}>2.50</option>
                        <option value="2.25" {xen:selected "{$item.author_rating} == '2.25' "}>2.25</option>
                        <option value="2.00" {xen:selected "{$item.author_rating} == '2.00' "}>2.00</option>

                        <option value="1.75" {xen:selected "{$item.author_rating} == '1.75' "}>1.75</option>
                        <option value="1.50" {xen:selected "{$item.author_rating} == '1.50' "}>1.50</option>
                        <option value="1.25" {xen:selected "{$item.author_rating} == '1.25' "}>1.25</option>
                        <option value="1.00" {xen:selected "{$item.author_rating} == '1.00' "}>1.00</option>
                    </select>
                    <p class="explain">{xen:phrase nflj_showcase_author_rating_explain}</p>
                </dd> 
            </dl>
        </xen:if>
 
Back
Top