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

How to enter description on sportsbook node?

nadalbg

New Member
Pick'em
Sportsbook
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 ?
 
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.
 
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>
 
Back
Top