latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Using Custom Capabilities to allow full acces

Home Forums Community Forum Using Custom Capabilities to allow full acces

This topic contains 3 replies, has 2 voices. Last updated by  Eduan 3 years, 11 months ago.

Topic Author Topic
Posted: Monday Jan 21st, 2013 at 12:21 pm #38593
Leland Falde
Username: lfalde

Can I somehow use Custom Capabilities to allow Level1 user access to everything in the /wp-content/plugins/s2member-files/access-s2member-level1 special folder?

Currently, from what I’ve read, you can provide direct links to files. I’m hoping there is a way to open up an entire directory to level1 users.

This is an attempt to work around this related issue.
http://www.s2member.com/forums/topic/issue-refreshing-an-image-with-custom-capabil/

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Wednesday Jan 23rd, 2013 at 2:15 pm #39204
Eduan
Username: Eduan
Moderator

Hello Leland,

So you mean to give a user a certain custom capability that basically gives him a level 1 user’s access to file downloads?

– Eduan

Posted: Wednesday Jan 23rd, 2013 at 2:52 pm #39216
Leland Falde
Username: lfalde

I need to allow access to a specific html file for a level 1 user. This I have already managed to get working.

I have some javascript code that refreshes an image every 15 minutes. Its a slow updating “screen cast”. To trick the browser into downloading the new image (instead of using the cached image) i need to add the following to the url… .jpg?’ + Math.Random();

myImage.src = ‘http://lessthanrandom.com/?s2member_file_download=access-s2member-level1/screencast/signals.jpg?’ + Math.Random();

When I do this, s2Member does not grant the level1 user the rights to view this image…I presume because its not on the list.

Posted: Friday Jan 25th, 2013 at 8:36 pm #39582
Eduan
Username: Eduan
Moderator

First, that code is technically wrong.

Try this instead:

myImage.src = 'http://lessthanrandom.com/?s2member_file_download=access-s2member-level1/screencast/signals.jpg?' + Math.Random();

WordPress messed it up for you, does this work better?

Also, to be honest, I really can’t provide any help with very technical stuff. :/

– Eduan

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.