R
ragtek
Guest
This Tutorial shows you, how to add own Tabs to your Members Profile Page.
[Works with XenForo 1.0.0 Beta 1]
I'm calling my tab "ragtek" so search the code for ragtek and replace it with your unique name
1 Add a Phrase for the tab (i'll call my mytab)
2. Edit your template member_view
2.1
Search for
Add under this
2.2
add under this
Instead of Your content, you can use phrases, or extend the member Controller
[Works with XenForo 1.0.0 Beta 1]
I'm calling my tab "ragtek" so search the code for ragtek and replace it with your unique name
1 Add a Phrase for the tab (i'll call my mytab)
2. Edit your template member_view
2.1
Search for
Code:
<ul class="tabs mainTabs Tabs" data-panes="#ProfilePanes > li" data-history="on">
<li><a href="{$requestPaths.requestUri}#profilePosts">{xen:phrase profile_posts}</a>
<xen:if is="{$showRecentActivity}"><li><a href="{$requestPaths.requestUri}#recentActivity">{xen:phrase recent_activity}</a></li></xen:if>
<li><a href="{$requestPaths.requestUri}#postings">{xen:phrase postings}</a>
<li><a href="{$requestPaths.requestUri}#info">{xen:phrase information}</a>
Code:
<li><a href="{$requestPaths.requestUri}#ragtek">{xen:phrase mytab}</a></li>
Code:
<xen:if is="{$identities}">
<xen:foreach loop="$identities" value="$identity">
<dl><dt>{$identity.title}:</dt> <dd>{xen:string censor, $identity.value}</dd></dl>
</xen:foreach>
</xen:if>
</div>
</div>
</div>
</li>
Code:
<li id="ragtek" class="profileContent">
<div class="section">Your content</div>
</li>
Instead of Your content, you can use phrases, or extend the member Controller