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

Other Develop 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>


The correct url is:
http://www.mydomain.com/index.php/search/search?users=user&nodes[]=7&child_nodes=1&user_content=thread

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? how much cost this?