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

Remove the 'Media' tab when viewing a member profile

Discussion in 'Media Gallery Support' started by imthebest, Nov 20, 2014.

  1. imthebest

    imthebest Formerly Super120

    If the member has created an album and has uploaded at least one picture to it then when viewing his profile there are two new tabs: 'Media' and 'Albums'. I want to keep Albums but I don't want the 'Media' tab there.

    Can I do this with CSS?
     
  2. imthebest

    imthebest Formerly Super120

    I tried removing the following from xengallery_media_profile_tab:

    Code:
    <xen:if is="{$user.xengallery_media_count}">
        <li><a id="xengalleryMediaUserTab" href="{$requestPaths.requestUri}#xengalleryMediaUser">{xen:phrase xengallery_user_media}</a></li>
    </xen:if>
    However that results that when I click on "Albums" then I get the contents of the "Media" tab (even when it is now gone).
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    There's two parts.

    The tab and the content for the tab. You need to remove the content for the tab from this template:

    xengallery_media_profile_tab_content
     
    imthebest likes this.
  4. denam

    denam Active Member

    And how do enable the media tab for users? I can see on my admin profile. But it is disabled at the user's profile.

    Edit: Found the problem.
     

Share This Page