Remove the Information tab when viewing an album picture

imthebest

Well-known member
#1
When viewing an album picture there are two tabs: Comments and Information. I want to remove the Information tab.

Is that possible with CSS? Thanks!
 

Chris D

XenForo developer
Staff member
#2
Template edit. xengallery_media_view:

Find and remove:
Code:
<li><a href="{$requestPaths.requestUri}#info">{xen:phrase xengallery_information}</a></li>
And:
Code:
    <li id="info" class="tabContent">
        <div class="section tabSection pairsColumns">
            <xen:if is="{$media.category_id}">
                <dl class="category"><dt>{xen:phrase xengallery_category}:</dt>
                    <dd><a href="{xen:link xengallery/categories, $media}">{$media.category_title}</a></dd>
                </dl>
            </xen:if>

            <xen:if is="{$media.album_id}">
                <dl class="album"><dt>{xen:phrase xengallery_album}:</dt>
                    <dd><a href="{xen:link xengallery/albums, $media}">{$media.album_title}</a></dd>
                </dl>
            </xen:if>

            <dl class="uploader"><dt>{xen:phrase xengallery_uploaded_by}:</dt>
                <xen:if is="{$media.user_id}">
                    <dd><xen:username user="$media" class="username" /></dd>
                    <xen:else />
                    <dd>{$media.username}</dd>
                </xen:if>
            </dl>

            <dl class="uploadDate"><dt>{xen:phrase date}:</dt>
                <dd><xen:datetime time="{$media.media_date}" class="muted time" /></dd>
            </dl>

            <dl class="viewCount"><dt>{xen:phrase xengallery_view_count}:</dt>
                <dd>{xen:number $media.media_view_count}</dd>
            </dl>

            <dl class="commentCount"><dt>{xen:phrase xengallery_comment_count}:</dt>
                <dd>{xen:number $media.comment_count}</dd>
            </dl>

            <xen:include template="xengallery_media_field_group">
                <xen:set var="$fieldGroup" value="below_info" />
                <xen:set var="$type" value="{xen:if $media.category_id, category, album}" />
            </xen:include>

            <xen:if is="{$media.mediaContentTagCache}">
            <dl class="mediaTags">
                <dt>{xen:phrase xengallery_tags}:</dt>
                <dd>
                    <xen:foreach loop="$media.mediaContentTagCache" value="$tag">
                        <a href="{xen:link xengallery/tags, $tag}" class="tagLink">
                            <span class="tag">
                                <span><i class="fa fa-tag fa-lg"></i></span>
                                <span>{$tag.tag_name}</span>
                            </span>
                        </a>
                    </xen:foreach>
                </dd>
            </dl>
            </xen:if>

            <xen:if is="{$media.exifData}">
                <div class="exifData">
                    <h3 class="textHeading">
                        {xen:phrase xengallery_exif_data}
                    </h3>

                    <div class="ExifData">
                        <xen:foreach loop="$media.exifData" value="$exifData">
                            <xen:if is="{$exifData.value}">
                            <dl class="exif{$exifData.name}"><dt>{$exifData.title}:</dt>
                                <dd>
                                    <xen:if is="{$exifData.isNumber}">
                                        <xen:if is="{$exifData.isSize}">
                                            {xen:number $exifData.value, size}
                                        <xen:else />
                                            {xen:number $exifData.value}
                                        </xen:if>
                                    <xen:else />
                                        {$exifData.value}
                                    </xen:if>
                                </dd>
                            </dl>
                            </xen:if>
                        </xen:foreach>

                        <dl class="empty"><dt></dt><dd>&nbsp;</dd></dl>
                        <p class="explain dimmed exifNote">{xen:phrase xengallery_exif_data_explain}</p>
                    </div>
                </div>
            </xen:if>
        </div>
    </li>
 
Top