1. 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

Discussion in 'Styling and Customization Questions' started by raul_, Feb 10, 2016.

  1. raul_

    raul_ Member

    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>
    
    [​IMG]

    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?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. raul_

    raul_ Member

  4. raul_

    raul_ Member

  5. Brogan

    Brogan XenForo Moderator Staff Member

    Using user ID is not supported.
    It has to be the user name.
     
  6. raul_

    raul_ Member

  7. raul_

    raul_ Member

  8. raul_

    raul_ Member

    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. raul_

    raul_ Member

    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>
    
    
    [​IMG]

    the server error log is empty

    can anyone help me please?
     
  10. raul_

    raul_ Member

    no one?
     
  11. raul_

    raul_ Member

    can anyone do it for money?
     
  12. Zynektic

    Zynektic Well-Known Member

Share This Page