1. 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.

Rate&review bar above picture ?

Discussion in 'Showcase Support' started by Cmely, Feb 20, 2015.

  1. Cmely

    Cmely New Member Showcase

    (almost) All is in the title : I would like to have the "Rate&Review" bar above the picture instead of having it below.

    How can I do that ?

    :)
     
  2. Bob

    Bob Developer Staff Member

    Can you screen shot me what you are asking about? Not sure what "picture" you are talking about.
     
  3. Cmely

    Cmely New Member Showcase

    Here is your screenshot :)
    0171.jpg
     
  4. Bob

    Bob Developer Staff Member

    Should be a simple template edit..

    edit the template: nflj_showcase_item

    FIND: (located towards the bottom of the template)
    HTML:
        <xen:if is="{$category.rate_review_system} && {$item.canRateItem}">
            <div class="rateBlock">
                {xen:if '{$category.rate_review_system} == 2', {xen:phrase nflj_showcase_rate_review_this_item}, {xen:phrase nflj_showcase_rate_this_item}}:
                <xen:include template="rating">
                    <xen:set var="$action">{xen:if '{$category.rate_review_system} == 2', {xen:link showcase/rate-review, $item}, {xen:link showcase/rate, $item}} </xen:set>
                </xen:include>
            </div>
        </xen:if>

    Then you will want to cut that entire chuck of template code and past it to the same template (not another one) where you want it to display..


    FIND: (located towards the top)
    HTML:
        <div class="showcaseItemInfo">
            <div class="showcaseItemContent">
                <div class="showcaseItemTitle">
                    {xen:if '{$item.item_state} == "draft" ', '<span class="draft">[{xen:phrase nflj_showcase_draft}]</span>', ''} {xen:helper showcasePrefix, $item}{$item.item_name}
                </div>
                <div class="showcaseItemCategory muted">
                    <a href="{xen:link showcase/category, $category}">{$category.category_name}</a> {xen:phrase nflj_showcase_item_created_by} <span><xen:username user="$item" />,</span> <a href="{xen:link showcase, $item}"><xen:datetime time="$item.date_added" /></a>              
                </div>
                <div class="showcaseItemDescription">
                    {$item.abstract}
                </div>
            </div>
        </div>
      
        <div style="clear:both"></div>

    and then place the chunk of template code directly below so that it now looks like this...
    HTML:
        <div class="showcaseItemInfo">
            <div class="showcaseItemContent">
                <div class="showcaseItemTitle">
                    {xen:if '{$item.item_state} == "draft" ', '<span class="draft">[{xen:phrase nflj_showcase_draft}]</span>', ''} {xen:helper showcasePrefix, $item}{$item.item_name}
                </div>
                <div class="showcaseItemCategory muted">
                    <a href="{xen:link showcase/category, $category}">{$category.category_name}</a> {xen:phrase nflj_showcase_item_created_by} <span><xen:username user="$item" />,</span> <a href="{xen:link showcase, $item}"><xen:datetime time="$item.date_added" /></a>               
                </div>
                <div class="showcaseItemDescription">
                    {$item.abstract}
                </div>
            </div>
        </div>
      
        <div style="clear:both"></div>
    
    <xen:if is="{$category.rate_review_system} && {$item.canRateItem}">
            <div class="rateBlock">
                {xen:if '{$category.rate_review_system} == 2', {xen:phrase nflj_showcase_rate_review_this_item}, {xen:phrase nflj_showcase_rate_this_item}}:
                <xen:include template="rating">
                    <xen:set var="$action">{xen:if '{$category.rate_review_system} == 2', {xen:link showcase/rate-review, $item}, {xen:link showcase/rate, $item}} </xen:set>
                </xen:include>
            </div>
        </xen:if>
     
  5. Cmely

    Cmely New Member Showcase

    Thank you very much Bob. This is a very precise and helpful answer and let me tell you that you're doing a great support job.
    It's really appreciated :)
     
    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.