Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Folger restriction

UserPost

6:59 am
December 20, 2008


Ragnar

Member

Ragnar

posts 105

1

I have a folder with audio files of trainings, I upload them via FTP, rather than through aploader. Is it possible to close access to them as a Page? To have access only to those who have access to the relevant sections?

11:05 am
December 29, 2008


Kevin

Admin

posts 2402

2

For Role Scoper's rewrite rule to handle the URL, the folder must be the WordPress uploads directory, or a subfolder of it.

For Role Scoper to enforce permission based on some page, you must make that association by storing the audio file as an attachment. However, that attachment does not need to be visibly linked. If the WP upload process is too cumbersome, you could make it work by manually executing the following query, once for each audio file:

INSERT INTO `wp_posts` ( `post_parent`, `post_author`, `post_category`, `post_title`, `post_name`, `guid`, `post_date`, `post_date_gmt`, `post_modified`, `post_modified_gmt`, `post_status`, `post_type`, `post_mime_type`, `post_content`, `post_content_filtered`, `post_excerpt`, `to_ping`, `pinged`) VALUES (PageIDhere, 1, 0, 'filename', 'filename', 'http://yourdomain.com/wp_folder/wp-content/uploads/your_subfolder/filename.mp3′, '2008-12-30 22:21:17′, '2008-12-31 02:21:17′, '2008-12-20 22:21:17′, '2008-12-21 02:21:17′, 'inherit', 'attachment', 'image/audio', ", ", ", ", ");

I arranged the column order to make this as logically convenient as possible.

You need to determine the ID of the page which will determine permissions and put that in place of PageIDhere. Optionally, set the date, author and/or category. Then run the same query once for each audio file, changing only the filename.

8:24 am
January 24, 2009


Ragnar

Member

Ragnar

posts 105

3

This is too difficult. I have Many files. 

Directory, I can move, but will have to change about a thousand links to these files manually, and make as many additions to the database 

It can be as easy to do so, or to automate? 

Ideally, I would like to establish a relation between the group and folders that need access.

3:19 pm
February 5, 2009


Kevin

Admin

posts 2402

4

Please see the Attachments Utility introduced in Role Scoper 1.0.0-rc9.

In the "Attachment Filtering" section of Roles > Options, click on the "Attachments Utility" link.


About the Agapetry forum

Currently Online:

17 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1186

Posts: 5409

Members:

There are 1176 members

There are 1 guests


Kevin has made 2402 posts

Top Posters:

metal450 - 159

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin