RM 1.0 Removing "Most Downloaded" tab

JVCode

Well-known member
Loving the resource manager! I'm just wondering how it is I can remove the "Most Downloaded" tab? I have no need for this as I'm using the RM as a guide/tutorials manager, and no files will need to be downloaded.
 
Maybe this template: resource_index

Find:
Code:
<ol class="tabs">
            <li class="{xen:if '{$order} == "last_update"', active}"><a href="{xen:link resources, '', 'type={$typeFilter}'}">{xen:phrase latest_updates}</a></li>
            <li class="{xen:if '{$order} == "resource_date"', active}"><a href="{xen:link resources, '', 'order=resource_date', 'type={$typeFilter}'}">{xen:phrase newest_resources}</a></li>
            <li class="{xen:if '{$order} == "rating_weighted"', active}"><a href="{xen:link resources, '', 'order=rating_weighted', 'type={$typeFilter}'}">{xen:phrase top_resources}</a></li>
            <li class="{xen:if '{$order} == "download_count"', active}"><a href="{xen:link resources, '', 'order=download_count', 'type={$typeFilter}'}">{xen:phrase most_downloaded}</a></li>
        </ol>

Replace:
Code:
<ol class="tabs">
            <li class="{xen:if '{$order} == "last_update"', active}"><a href="{xen:link resources, '', 'type={$typeFilter}'}">{xen:phrase latest_updates}</a></li>
            <li class="{xen:if '{$order} == "resource_date"', active}"><a href="{xen:link resources, '', 'order=resource_date', 'type={$typeFilter}'}">{xen:phrase newest_resources}</a></li>
            <li class="{xen:if '{$order} == "rating_weighted"', active}"><a href="{xen:link resources, '', 'order=rating_weighted', 'type={$typeFilter}'}">{xen:phrase top_resources}</a></li>
        </ol>
 
How are Top Resources and Most Downloaded worked out?

Also is it possible to change Most Downloaded to Most Liked or Most Viewed, so Resources are listed according to Likes or View count?
 
Maybe this template: resource_index

Find:
Code:
<ol class="tabs">
            <li class="{xen:if '{$order} == "last_update"', active}"><a href="{xen:link resources, '', 'type={$typeFilter}'}">{xen:phrase latest_updates}</a></li>
            <li class="{xen:if '{$order} == "resource_date"', active}"><a href="{xen:link resources, '', 'order=resource_date', 'type={$typeFilter}'}">{xen:phrase newest_resources}</a></li>
            <li class="{xen:if '{$order} == "rating_weighted"', active}"><a href="{xen:link resources, '', 'order=rating_weighted', 'type={$typeFilter}'}">{xen:phrase top_resources}</a></li>
            <li class="{xen:if '{$order} == "download_count"', active}"><a href="{xen:link resources, '', 'order=download_count', 'type={$typeFilter}'}">{xen:phrase most_downloaded}</a></li>
        </ol>

Replace:
Code:
<ol class="tabs">
            <li class="{xen:if '{$order} == "last_update"', active}"><a href="{xen:link resources, '', 'type={$typeFilter}'}">{xen:phrase latest_updates}</a></li>
            <li class="{xen:if '{$order} == "resource_date"', active}"><a href="{xen:link resources, '', 'order=resource_date', 'type={$typeFilter}'}">{xen:phrase newest_resources}</a></li>
            <li class="{xen:if '{$order} == "rating_weighted"', active}"><a href="{xen:link resources, '', 'order=rating_weighted', 'type={$typeFilter}'}">{xen:phrase top_resources}</a></li>
        </ol>
The same goes for the template resource_category
Simply remove the line that has the code for the 'most downloaded' tab.
 
i have removed most downloaded tab from both page(resource_index and resource category) but still it show in index page before login ......after login it dose not show in tab header ...for that i have to edit which template
 
Back
Top Bottom