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.

Implemented Add a "Sportsbook" badge to the thread list items

Discussion in 'Sportsbook Closed Suggestions' started by Bob, Sep 5, 2015.

  1. Bob

    Bob Developer Staff Member

    This is a [PAID] request that has been donated back to the community for inclusion with the core addon.

    The TM (Template Modification) simply adds a Sportsbook "badge" aka identifier to the thread list giving users a quick way to know that the thread is associated with a Sportsbook Event. It also helps Moderators know that the thread is associated with a content type and that the thread requires special handling.

    This TM has its own css template that will allow you to customize the "badge" to your liking eg, make it a font awesome icon if you want to.

    NOTE: For those that don't want to display the Badge on the Thread List, you can simply disable the TM.

    Selection_692.png
     
  2. andrewkm

    andrewkm Member Showcase Sportsbook

    Can you assist me in editing the way this tag looks.
    The code I assume I edit in TM is:
    Code:
    <xen:if is="{$canViewSportsbook} && {$thread.discussion_type} == 'sportsbook'">
       <xen:require css="nflj_sportsbook_thread_list.css" />
       <span class="sbThreadListBanner" title="{xen:phrase nflj_sportsbook_thread_banner}">{xen:phrase nflj_sportsbook_thread_banner}</span>
    </xen:if>
    $0
    My template makes the "sportsbook" word look a little dull. Where would I change the color of this word in the above code for just this tag:
    http://i.imgur.com/dVDADJH.png
     
  3. Bob

    Bob Developer Staff Member

    nflj_sportsbook_thread_list.css <--- that CSS template is specifically for the Badge only. You can modify it directly and add to it.
     
    andrewkm likes this.
  4. andrewkm

    andrewkm Member Showcase Sportsbook

    Perfect thanks! http://i.imgur.com/fBnXRwU.png
     
  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.