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.

Issue refreshing an image with Custom Capabil

Home Forums Community Forum Issue refreshing an image with Custom Capabil

This topic contains 0 replies, has 1 voice. Last updated by  Leland Falde 3 years, 11 months ago.

Topic Author Topic
Posted: Friday Jan 18th, 2013 at 4:41 pm #38176
Leland Falde
Username: lfalde

I have successfully setup s2Member and am using Custom Capability and Member Level Files to restrict access to a special page that offers live updates of an image (screen cast). My issue is this. I am linking to the image this way…and it works great! Only level 1 and above can access the page or see the image.

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

But to get the javascript refresh to work properly, and force the browser to not use the cached image, I need to format it like this…

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

The result it can’t find the image.

Any ideas on how to handle this from a Custom Capability and Member Level Files perspective?

  • This topic was modified 3 years, 11 months ago by  Leland Falde.
  • This topic was modified 3 years, 11 months ago by  Leland Falde.

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.