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.

Filename Problems

Home Forums Community Forum Filename Problems

This topic contains 1 reply, has 1 voice. Last updated by  Kris Maddison 3 years, 2 months ago.

Topic Author Topic
Posted: Wednesday Nov 6th, 2013 at 12:39 pm #60906

I have searched the forums and web for an answer to this so hopefully I’m not being stupid.

I am new to S2Member and I have to say it is a brilliant add-on to WordPress.

We intend on protecting files with spaces in the name, so use a shortcode such as this:

[s2File download="dir/some name.mp3" download_key="true" /]

However, specifying this doesn’t work. I have a funny feeling I am being an idiot, but please advise me if you can, as to how I should be specifying such a filename?

I even dug into the code…. and found that the public static function sc_get_file returns an array like this:

Array ( [download] => "dir/some [0] => name.mp3" [download_key] => "true" ) 

Does any one have any idea how to resolve this?

Thanks!

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Friday Nov 8th, 2013 at 8:56 am #60939

I learnt my lesson here.

I came to realise the WordPress Link button had changed my shortcut speech marks into &quote;

Therefore the attributes process was calling all the sections into an array.

Slow moment of the week.

I’ll leave this incase anyone else comes across the problem albeit unlikely.

Viewing 1 replies (of 1 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.