1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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.

Chris Deeming's rating star add-on replacement

Discussion in 'Showcase Support' started by Tracy Perry, Nov 20, 2013.

  1. Tracy Perry

    Tracy Perry New Member AMS Premium Showcase

    @Bob B, I've gotten this add-on to work fine with is XenMediaGallery, but when I make the requisite changes to the templates for the Showcase add-on they do not reflect properly. They are still using the default xenForo sprite sheet. Any suggestions?
     
  2. Bob

    Bob Developer Staff Member

    As Chris explained, It will only work in places that I use the core XF rating template (which is not through out SC). I do the actual Rating (AJAX) different than Core XF, so it requires slightly different code, plus I have TWO different types of rating systems on a given item page (specified by category).

    in places like the template: nflj_showcase_category_list

    HTML:
                                    <xen:include template="rating">
                                        <xen:set var="$rating">{$item.rating}</xen:set>
                                        <xen:set var="$hint">{xen:if '{$item.vote_count} == 1', {xen:phrase 1_vote}, {xen:phrase x_votes_plural, 'count={$item.vote_count}'}}</xen:set>
                                    </xen:include>

    replace with:

    HTML:
                                    <xen:include template="font_awesome_rating">
                                        <xen:set var="$rating">{$item.rating}</xen:set>
                                        <xen:set var="$hint">{xen:if '{$item.vote_count} == 1', {xen:phrase 1_vote}, {xen:phrase x_votes_plural, 'count={$item.vote_count}'}}</xen:set>
                                    </xen:include>
     
  3. Bob

    Bob Developer Staff Member

    Here is a screen shot using the above edit for a category page in LIST view.

    Selection_002.png
     
  4. Tracy Perry

    Tracy Perry New Member AMS Premium Showcase

    That's what I've done (basically just replaced the font_awesome_rating template for the rating (all the rest looks the same). It still shows the normal sprite star and not the fontawesome one.
     
  5. Tracy Perry

    Tracy Perry New Member AMS Premium Showcase

    I'm using the modular view.. I'll switch it to the list view and see if it changed.
     
  6. Tracy Perry

    Tracy Perry New Member AMS Premium Showcase

    List view they work... modular/grid view they don't... so that's what the problem is going to be.:)
     
  7. Bob

    Bob Developer Staff Member

    Ya, those do not use the Core XF rating template. Like I mentioned above, there are a few places where I require different code which prevents me from using the core template. I will figure out something tho :)
     
    Tracy Perry likes this.
  8. Bob

    Bob Developer Staff Member

    got most of this sorted (everything but the ITEM page).
     
    Tracy Perry likes this.
  9. Bob

    Bob Developer Staff Member

    This is all sorted now and will be available in the upcoming maintenance release.

    The only tricky part is with the Item Sidebar template (nflj_showcase_item_sidebar) as it can't use the Core XF rating template. What I've done for the Item Sidebar template (nflj_showcase_item_sidebar) is create to sub templates:

    nflj_showcase_item_rating (This is the core default)
    nflj_showcase_item_font_awesome_rating (This is the one to use for font awesome)

    All the others use the core XF default ratings template.

    Core Showcase templates that need to be edited to change the include to font_awesome_rating:

    news_feed_item_showcase_item_rate
    news_feed_item_showcase_review_insert
    nflj_showcase_category_grid
    nflj_showcase_category_list
    nflj_showcase_find_new_items
    nflj_showcase_index_grid
    nflj_showcase_index_list
    nflj_showcase_item_sidebar
    nflj_showcase_item_watched_list_item
    nflj_showcase_member_grid
    nflj_showcase_member_list
    nflj_showcase_member_sidebar
    nflj_showcase_module_items
    nflj_showcase_node_list_items
    nflj_showcase_profile_tab_content
    nflj_showcase_reviews

    xenPorta template
    EWRblock_ShowcaseImages
     
    Last edited: Jan 2, 2014
    MattW likes this.
  10. MattW

    MattW Server Admin AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    Working perfectly!
     
  11. MattW

    MattW Server Admin AMS Premium CAS Premium RMS Premium SC Premium UBS Premium

    New list as of Showcase 2.1.0
    news_feed_item_showcase_item_rate
    news_feed_item_showcase_review_insert
    nflj_showcase_category_grid
    nflj_showcase_category_list
    nflj_showcase_find_new_items_grid
    nflj_showcase_find_new_items_list
    nflj_showcase_index_grid
    nflj_showcase_index_list
    nflj_showcase_item
    nflj_showcase_item_field
    nflj_showcase_item_sidebar
    nflj_showcase_item_watched_list_item
    nflj_showcase_member_grid
    nflj_showcase_member_list
    nflj_showcase_member_sidebar
    nflj_showcase_module_items
    nflj_showcase_node_list_items
    nflj_showcase_profile_tab_content
    nflj_showcase_review
    nflj_showcase_reviews
    nflj_showcase_tag_view_grid
    nflj_showcase_tag_view_list
     
    Bob likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.