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

XF 1.4 Personaliced tab in members area

#1
Hi, i want to create a new tab in members.

i create the tab #advertisements in member_view:
Code:
<ul class="tabs mainTabs Tabs" data-panes="#ProfilePanes > li" data-history="on">
                <li><a href="{$requestPaths.requestUri}#profilePosts">{xen:phrase profile_posts}</a></li>
                <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>
                <li><a href="{$requestPaths.requestUri}#info">{xen:phrase information}</a></li>
                <xen:if is="{$warningCount}"><li><a href="{$requestPaths.requestUri}#warnings">{xen:phrase warnings} ({xen:number $warningCount})</a></li></xen:if>
                <xen:hook name="member_view_tabs_heading" params="{xen:array 'user={$user}'}" />
                <li><a href="{$requestPaths.requestUri}#advertisements">{xen:phrase advertisements}</a></li>
            </ul>
and create the function "advertisements"

Code:
<li id="advertisements" class="profileContent" data-loadUrl="{xen:link members/threads, $user}">
                <span class="JsOnly">{xen:phrase loading}...</span>
                <noscript><a href="{xen:link members/threads, $user}">{xen:phrase view}</a></noscript>
            </li>


i don't know where can i create members/threads.
i'm trying to do a tab that showing the threads created by that user in a specifically forum

can anyone help me?
 
#8
The last question, how can i put this url in the code?

Code:
<li id="advertisements" class="profileContent" data-loadUrl="{xen:link members/threads, $user}">
                <span class="JsOnly">{xen:phrase loading}...</span>
                <noscript><a href="{xen:link members/threads, $user}">{xen:phrase view}</a></noscript>
            </li>
 
#9
Hi, I try to put this code but gets an error when clic on "advertisements" tab

Code:
<li id="advertisements" class="profileContent" data-loadUrl="/search/search?users={$user.username}&nodes[]=7&child_nodes=1&user_content=thread">
                <span class="JsOnly">{xen:phrase loading}...</span>
                <noscript><a href="/search/search?users={$user.username}&nodes[]=7&child_nodes=1&user_content=thread"></a></noscript>
            </li>


the server error log is empty

can anyone help me please?