Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-17 16:29:00

thinkbig
New Member
Registered: 2008-11-17
Posts: 3

Files Privileges

I am curious if it is possible to edit certain preferences on the files page for my low end users. I have a user group called Member and the only tabs they can view are Files, Admin & View Site. The only downside is on the files page they have the ability to Edit and Upload files. I really only want them to see Download and the Description of each file. Is there anyway to edit this? Do I have to rework the txp_file.php? Or can I go about this another way? Any help would be much appreciated. Thanks.

Offline

#2 2008-11-17 18:50:44

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,733
Website

Re: Files Privileges

May I ask how you have you set up your user group “Members”? Txp has 6 fixed user group types (roles) and members is not one of them so I guess you are using a plugin.
That page also shows the permissions associated with each type. You can see there that for files there is only a single permission, no file.edit or file.upload permissions.
I guess the best way would be to disable the viewing of the file tab and direct them to a page where you output the files and their descriptions (as you would when making a front-end file download list). Do a search for some of the threads on creating a password-protected client login area for more info (there’s a good one by dale).


TXP Builders – finely-crafted code, design and txp

Offline

#3 2008-11-17 19:22:04

thinkbig
New Member
Registered: 2008-11-17
Posts: 3

Re: Files Privileges

I customized the usernames in one of the backend files so that:

Publisher = Webmaster
Managing Editor = Members Admin
Copy Editor = Executives
Staff Writer = Members

I then tweaked the built in user roles for the Members preferences so they couldn’t access the Content tab so write any articles or upload any images. The only thing they can do is access the Files page. As I stated in the previous post I don’t want them to be able to edit or upload anything. Just download.

I’m am terrible with PHP and pretty much any sort of code. It’s kind of crazy how I even figured out how to change the User Names and their preferences. I guess I’ll have to search for some of Dale’s client login code. You wouldn’t happen to have a link? Thanks for the reply.

Offline

#4 2008-11-17 19:59:20

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,733
Website

Re: Files Privileges

Forum search for “client area” returns: How to build a Client section on your website? and see the bit marked “a list of client files”. Of course you can use the straightfoward built-in txp:file_download_list if you don’t need it to be password protected.

EDIT:corrected misspelling

Last edited by jakob (2008-11-17 19:59:52)


TXP Builders – finely-crafted code, design and txp

Offline

#5 2008-11-17 20:16:18

thinkbig
New Member
Registered: 2008-11-17
Posts: 3

Re: Files Privileges

Awesome! Thanks for the links. I’ll definitely implement that into the site.

I wonder if it would be possible to add file.edit & file.upload permissions into the default Textpattern backend.

Offline

Board footer

Powered by FluxBB