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

RM 1.0 "Add Resource" everywhere

Bram

Well-known member
#1
I am still running the 1.0 version of the RM so i am not sure if this has been addressed in the latest release, neither could I find a thread about this.

Our users, especially newly registered users, are confused when they first enter the RM to try and upload a file. When they enter the "root" of the RM there is a "add resource" button but one level lower, the main category for our game files this button is missing as the category itself cannot contain resources obviously.

Only when they go one level deeper to a subcategory that can contain files they see it. Would be it be possible with a template edit (or something else) to add this "add resource" button on all categories and subcategories?
 
S

Syndol

Guest
#5
Which edit would that be?
In Model/Category function canAddResource()
Remove or comment out the following:
Code:
if (!isset($category['allowResource']))
{
    $category['allowResource'] = (
        $category['allow_local']
        || $category['allow_external']
        || $category['allow_commercial_external']
        || $category['allow_fileless']
    );
}

if (!$category['allowResource'])
{
    $errorPhraseKey = 'category_not_allow_new_resources';
    return false;
}