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

Can't seem to hook into "member_view_tabs_content"

Discussion in 'XenForo Development Discussions' started by Jaxel, Feb 25, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    I am hooking into the member view page tabs...
    http://www.8wayrun.com/members/jaxel.1/

    You can see a new tab here called "Media".

    HOOK: member_view_tabs_heading
    Code:
    <li><a href="{xen:link members, {$user}}#media">{xen:phrase media}</a></li>
    HOOK: member_view_tabs_content
    Code:
    <li id="media" class="profileContent" data-loadUrl="{xen:link media_user, $user}">
    	{xen:phrase loading}...
    	<noscript><a href="{xen:link media_user, $user}">{xen:phrase view}</a></noscript>
    </li>
    Looks good right? When clicking on the tab, it should bring up this page:
    http://www.8wayrun.com/media/user/jaxel.1/?_xfNoRedirect=1

    To me, this looks like it should work... instead I get an error:
    Untitled-1.gif
     
  2. Mike

    Mike XenForo Developer Staff Member

    It's probably more of an issue with what content is in the response. It must be contained within a single root tag.
     
  3. Jaxel

    Jaxel Well-Known Member

    yep, that was it, thank you.
     

Share This Page