1. 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

Discussion in 'Resource Manager Support' started by Bram, Nov 18, 2013.

  1. Bram

    Bram Well-Known Member

    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?
  2. Jeremy

    Jeremy Well-Known Member

    Have you edited the index page at all?
  3. Syndol

    Syndol Guest

    That would require an edit to the Category.php model.
  4. Bram

    Bram Well-Known Member

    No sure what you mean?
    Which edit would that be?

    Thanks for the responses.
  5. Syndol

    Syndol Guest

    In Model/Category function canAddResource()
    Remove or comment out the following:
    if (!isset($category['allowResource']))
        $category['allowResource'] = (
            || $category['allow_external']
            || $category['allow_commercial_external']
            || $category['allow_fileless']
    if (!$category['allowResource'])
        $errorPhraseKey = 'category_not_allow_new_resources';
        return false;
    KiF likes this.
  6. Bram

    Bram Well-Known Member

    @Syndol I am going to raise you a virtual statue!! That solved it, fantastic. Thanks very very very much sir (y)
    Syndol likes this.

Share This Page