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.

How to enter description on sportsbook node?

Discussion in 'Sportsbook Support' started by nadalbg, Sep 2, 2013.

  1. nadalbg

    nadalbg New Member Sportsbook Pickem

    I am aware that when I hover over sportsbook nod it shows its description. Got some sportsbook cash? Want to ...

    But how do I change that description, probably from phrases, but the other question is, how can I make that description show without hovering, under nod ?
     
  2. Bob

    Bob Developer Staff Member

    I made the description a phrase in case people had multiple languages for their site... the phrase = nflj_sportsbook_the_betting_parlor_descritption

    As far as the make it show without hovering, that will take 2 different template edits depending on how you expect it to work.

    Option 1: Control it via the ACP -> Appearance -> Style properties -> Forum & Node List -> Settings > Uncheck Enable forum description tooltip.

    Option 2: Modify the template so that it displays for Sportsbook, but doesn't effect the other nodes.

    I've changed the template code in the next version to make it happen for Option 1, but you will still have to manually edit the template for Option 2.
     
    nadalbg likes this.
  3. nadalbg

    nadalbg New Member Sportsbook Pickem

    I guess I will wait for next version then. I already use that option 1 for my nodes and will use it for the sportsbook too.
     
  4. Bob

    Bob Developer Staff Member

    you can replace the current template with this one until then...

    replace: nflj_sportsbook_node_list with the below template.

    HTML:
    <fieldset>
        <ol class="nodeList sectionMain" id="forums">
            <li class="node category level_1 node_990" id="sportsbook.990">
                <div class="nodeInfo categoryNodeInfo categoryStrip">
                    <div class="categoryText">
                        <h3 class="nodeTitle"><a href="{xen:link sportsbook}">{xen:phrase nflj_sportsbook}</a></h3>
                    </div>
                </div>
                <ol class="nodeList">
                    <li class="node forum level_2  node_SB99">
                        <div class="nodeInfo forumNodeInfo primaryContent {xen:if $newCount, 'unread'}">
                            <span class="nodeIcon" title="Unread Sportsbook Events"></span>
                            <div class="nodeText">
                                <h3 class="nodeTitle"><a href="{xen:link sportsbook}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-SB99'}">{xen:phrase nflj_sportsbook_the_betting_Parlor}</a></h3>
                               
                                <xen:if is="@nodeListDescriptions">
                                    <blockquote class="nodeDescription {xen:if @nodeListDescriptionTooltips, nodeDescriptionTooltip} baseHtml" id="nodeDescription-SB99">{xen:phrase nflj_sportsbook_the_betting_parlor_descritption}</blockquote>
                                </xen:if>
                               
                                <div class="nodeStats pairsInline">
                                    <dl>
                                        <dt>{xen:phrase nflj_sportsbook_events}:</dt> <dd>{xen:if '{$quickStats.events}', '{xen:number $quickStats.events}', '0'}</dd>
                                        <dt>{xen:phrase nflj_sportsbook_wagers}:</dt> <dd>{xen:if '{$quickStats.wagers}', '{xen:number $quickStats.wagers}', '0'}</dd>
                                        <dt>{xen:phrase nflj_sportsbook_outcomes}:</dt> <dd>{xen:if '{$quickStats.outcomes}', '{xen:number $quickStats.outcomes}', '0'}</dd>
                                    </dl>
                                    <div class="Popup subForumsPopup">
                                        <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase nflj_sportsbook_categories}:</span> {xen:number $quickStats.categories}</a>
                                        <div class="Menu JsOnly subForumsMenu">
                                            <div class="primaryContent menuHeader">
                                                <h3>{xen:phrase nflj_sportsbook_events}</h3>
                                                <div class="muted">{xen:phrase nflj_sportsbook_categories}</div>
                                            </div>
                                            <ol class="secondaryContent blockLinksList">
                                            <xen:foreach loop="$categories" value="$category">
                                                <li class="node forum level-n node_x ">
                                                    <div>
                                                        <h4 class="nodeTitle"><a class="menuRow" href="{xen:link sportsbook/category, $category}">{xen:string repeat, '&nbsp; &nbsp; ', $category.depth}{$category.category_name}</a></h4>
                                                    </div>
                                                </li>
                                            </xen:foreach>
                                            </ol>
                                        </div>
                                    </div>                               
                                </div>
                            </div>
                            <div class="nodeLastPost secondaryContent">
                                <xen:if is= "{$latestEvent}">
                                    <span class="lastThreadTitle"><span>{xen:phrase latest}:</span> <a href="{xen:link sportsbook, $latestEvent}" title="{$latestEvent.title}">{xen:helper snippet, $latestEvent.title, 35}</a></span>
                                    <span class="lastThreadMeta">
                                        <span class="lastThreadUser"><xen:username user="$latestEvent" />,</span>
                                        <xen:datetime time="$latestEvent.date_edit" class="muted lastThreadDate" data-latest="{xen:phrase latest}: " />
                                    </span>
                                <xen:else />
                                    <span class="noMessages muted">({xen:phrase nflj_sportsbook_contains_no_events})</span>
                                </xen:if>
                            </div>                       
                        </div>
                    </li>
                   
                </ol>
                <span class="tlc"></span>
                <span class="trc"></span>
                <span class="blc"></span>
                <span class="brc"></span>
            </li>
        </ol>
    </fieldset>
     
    nadalbg likes this.
  5. nadalbg

    nadalbg New Member Sportsbook Pickem

    thank you so much, I will try it tommorow.

    EDIT: Its working. Thanks
     
    Last edited: Sep 3, 2013
  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.