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

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

    HOOK: member_view_tabs_heading
    <li><a href="{xen:link members, {$user}}#media">{xen:phrase media}</a></li>
    HOOK: member_view_tabs_content
    <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>
    Looks good right? When clicking on the tab, it should bring up this page:

    To me, this looks like it should work... instead I get an error:
  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