Alpha1 Well-known member Apr 22, 2017 #1 I would like to disallow the creation of new resources without files. I want resources with files only. How do I do this?
I would like to disallow the creation of new resources without files. I want resources with files only. How do I do this?
Paul B XenForo moderator Staff member Apr 22, 2017 #2 That is set on a per resource category basis. Upvote 0 Downvote
Alpha1 Well-known member Apr 22, 2017 #3 I was afraid that you would say that, as I have quite a lot of categories. I guess this requires a query. Do you know what query I can use to set all categories to 'uploaded file' only? Upvote 0 Downvote
I was afraid that you would say that, as I have quite a lot of categories. I guess this requires a query. Do you know what query I can use to set all categories to 'uploaded file' only?
Paul B XenForo moderator Staff member Apr 22, 2017 #4 Take a backup first. Code: UPDATE xf_resource_category SET allow_local = 1; UPDATE xf_resource_category SET allow_external = 0; UPDATE xf_resource_category SET allow_commercial_external = 0; UPDATE xf_resource_category SET allow_fileless = 0; Upvote 0 Downvote
Take a backup first. Code: UPDATE xf_resource_category SET allow_local = 1; UPDATE xf_resource_category SET allow_external = 0; UPDATE xf_resource_category SET allow_commercial_external = 0; UPDATE xf_resource_category SET allow_fileless = 0;