• 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

imthebest

Well-known member
#1
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?
 

imthebest

Well-known member
#2
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).
 

Chris D

XenForo developer
Staff member
#3
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