• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Customizing Notable Members Page

#1
How can I have the Members page default to Most Points? Also, is there a way to show a users points on their forum posts?
 

Tracy Perry

Well-known member
#2
How can I have the Members page default to Most Points? Also, is there a way to show a users points on their forum posts?
User points on the forum posts can be controlled via ACP -> Style Properties -> Message Elements and make sure Trophy Points is selected.
The other will probably require a template edit to re-arrange which go where, but I'm not sure which template.
 
#9
You'll need to edit the navigation template to edit the link to include the link to the most points tab.
This is what I pull out of the navigation template:

<!-- members -->
<xen:if is="{$tabs.members}">
<li class="navTab members {xen:if $tabs.members.selected, 'selected', 'Popup PopupControl PopupClosed'}">
<xen:if is="{$tabs.members.selected}"><div class="selectedBG"></div></xen:if>
<a href="{$tabs.members.href}" class="navLink">{$tabs.members.title}</a>
<a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
<div class="tabArrow">
<span class="arrow"><span></span></span>
</div>

<div class="{xen:if {$tabs.members.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} membersTabLinks">
<div class="primaryContent menuHeader">
<h3>{$tabs.members.title}</h3>
<div class="muted">{xen:phrase quick_links}</div>
</div>
<ul class="secondaryContent blockLinksList">
<xen:hook name="navigation_tabs_members">
<li><a href="{xen:link members}">{xen:phrase notable_members}</a></li>
<xen:if is="{$xenOptions.enableMemberList}"><li><a href="{xen:link members/list}">{xen:phrase registered_members}</a></li></xen:if>
<li><a href="{xen:link online}">{xen:phrase current_visitors}</a></li>
<xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li></xen:if>
</xen:hook>
</ul>
</div>
</li>
</xen:if>

<!-- extra tabs: end -->
<xen:if is="{$extraTabs.end}">
<xen:foreach loop="$extraTabs.end" key="$extraTabId" value="$extraTab">
<xen:if is="{$extraTab.linksTemplate}">
<li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
<xen:if is="{$extraTab.selected}"><div class="selectedBG"></div></xen:if>
<a href="{$extraTab.href}" class="navLink">{$extraTab.title}<xen:if is="{$extraTab.counter}"><strong class="itemCount"><span class="Total">{$extraTab.counter}</span><span class="arrow"></span></strong></xen:if></a>
<a href="{$extraTab.href}" class="SplitCtrl" rel="Menu"></a>
<div class="tabArrow">
<span class="arrow"><span></span></span>
</div>

<div class="{xen:if {$extraTab.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} {$extraTabId}TabLinks">
<div class="primaryContent menuHeader">
<h3>{$extraTab.title}</h3>
<div class="muted">{xen:phrase quick_links}</div>
</div>
{xen:raw $extraTab.linksTemplate}
</div>
</li>
<xen:else />
<li class="navTab {$extraTabId} {xen:if $extraTab.selected, 'selected', 'PopupClosed'}">
<a href="{$extraTab.href}" class="navLink">{$extraTab.title}</a>
<xen:if is="{$extraTab.selected}"><div class="tabLinks"></div></xen:if>
</li>
</xen:if>
</xen:foreach>
</xen:if>
I don't see where I would edit it to point to: /members/?type=points.
 

Tracy Perry

Well-known member
#10
This is what I pull out of the navigation template:
I don't see where I would edit it to point to: /members/?type=points.
@Jake Bunce may be able to help out. Also, for future reference whenever you are going to post some code - instead of putting it in a quote BBcode, use the code button on the editor or use code instead of quote in the BBCode. Makes it easier to read (as some of your code translates into smilies).
 
#11
@Jake Bunce may be able to help out. Also, for future reference whenever you are going to post some code - instead of putting it in a quote BBcode, use the code button on the editor or use code instead of quote in the BBCode. Makes it easier to read (as some of your code translates into smilies).
Thanks for the tip and the help.