Forum Description Question

Kenneth Holland

Active member
Hello,

Can I set the forum description to appear just beneath the forum title as well as having the grey hover popup that's there now?

Thanks.

Ken
 
The iPad problem is likely due to the fact that tooltip descriptions become inline descriptions when javascript is disabled. If the iPad doesn't support javascript then Yorick's original template edit will result in two descriptions.

I would skip the template edit and set the style properties like so:

Admin CP -> Appearance -> Style Properties -> Forum / Node List

Screen shot 2012-06-12 at 9.05.37 PM.webp

This isn't what the OP wants but this way the description always shows inline. That makes the popup irrelevant. You don't need both. Otherwise you have to deal with javascript to have both and make it work properly when javascript is disabled.
 
Could you copy and paste what is in the node_forum_level_2?
PHP:
<xen:require css="node_list.css" />
<xen:require css="node_forum.css" />
 
<li class="node forum level_{$level} {xen:if '{$level} == 1 AND !{$renderedChildren}', 'groupNoChildren'} node_{$forum.node_id}">
 
    <xen:if is="{$level} == 1"><div class="categoryStrip subHeading"></div></xen:if>
 
    <div class="nodeInfo forumNodeInfo primaryContent {xen:if $forum.hasNew, 'unread'}">
 
        <span class="nodeIcon" title="{xen:if $forum.hasNew, '{xen:phrase unread_messages}', ''}"></span>
 
        <div class="nodeText">
            <h3 class="nodeTitle"><a href="{xen:link forums, $forum}" data-description="{xen:if @nodeListDescriptionTooltips, '#nodeDescription-{$forum.node_id}'}">{$forum.title}</a></h3>
 
            <xen:if is="{$forum.description} AND @nodeListDescriptions">
<blockquote class="nodeDescription nodeDescriptionTooltip baseHtml" id="nodeDescription-{$forum.node_id}">{xen:raw $forum.description}</blockquote>
<blockquote class="nodeDescription baseHtml">{xen:raw $forum.description}</blockquote>
</xen:if>
 
            <div class="nodeStats pairsInline">
                <dl>
                    <dt>{xen:phrase discussions}:</dt> <dd>{xen:if $forum.privateInfo, '&ndash;', {xen:number $forum.discussion_count}}</dd>
                    <dt>{xen:phrase messages}:</dt> <dd>{xen:if $forum.privateInfo, '&ndash;', {xen:number $forum.message_count}}</dd>
                </dl>
                <xen:if is="{$renderedChildren} AND {$level} == 2">
                    <div class="Popup subForumsPopup">
                        <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $forum.childCount}</a>
                       
                        <div class="Menu JsOnly subForumsMenu">
                            <div class="primaryContent menuHeader">
                                <h3>{$forum.title}</h3>
                                <div class="muted">{xen:phrase sub_forums}</div>
                            </div>
                            <ol class="secondaryContent blockLinksList">
                            <xen:foreach loop="$renderedChildren" value="$child">
                                {xen:raw $child}
                            </xen:foreach>
                            </ol>
                        </div>
                    </div>
                </xen:if>
            </div>
        </div>
       
        <xen:hook name="node_forum_level_2_before_lastpost" />
 
        <div class="nodeLastPost secondaryContent">
            <xen:if is="{$forum.privateInfo}">
                <span class="noMessages muted">({xen:phrase private})</span>
            <xen:elseif is="{$forum.lastPost.date}" />
                {xen:phrase latest}: <a href="{xen:link posts, $forum.lastPost}" title="{$forum.lastPost.title}">{xen:helper wordTrim, $forum.lastPost.title, 30}</a>
                <span class="lastThreadMeta"><xen:if is="{xen:helper isIgnored, $forum.last_post_user_id}">{xen:phrase ignored_member}<xen:else /><xen:username user="$forum.lastPost" /></xen:if>, <xen:datetime time="$forum.lastPost.date" class="muted" /></span>
            <xen:else />
                <span class="noMessages muted">({xen:phrase contains_no_messages})</span>
            </xen:if>
        </div>
 
        <div class="nodeControls">
            <a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
        </div>
       
    </div>
 
    <xen:if is="{$renderedChildren} AND {$level} == 1">
        <ol class="nodeList">
            <xen:foreach loop="$renderedChildren" value="$child">{xen:raw $child}</xen:foreach>
        </ol>
    </xen:if>
 
</li>
 
Jeff, you have to revert the edits you made in that node_forum_level_2.
The OP wanted to have description below AND hover tool tips. In our case we only wanted description shown below.
If you read the posts earlier (specifically post #2), you'll see what changes need to be reverted.
 
Top Bottom