PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Shortcode for secure downloads not working

s2Member Plugin. A Membership plugin for WordPress®.

Shortcode for secure downloads not working

Postby Michelle » January 5th, 2012, 6:17 am

Hi! Can anyone tell me why shortcodes to download files in the secure area aren't working for me? I'm trying to access them from a Specific Post/Page page.

I have uploaded files to subfolders in the s2member-files folder and then on a Specific Page I've entered

<a href="[s2File download="class01/resources.pdf" download_key="true" /] ">Class Resources.pdf</a>

and I tried:
<a href=[s2File download="class01/resources.pdf" download_key="true" /] >Class Resources.pdf</a>


But when I view the page either directly from WordPress (view page) or from a generated access link to the Specific Page nothing is shown.

But, if I install the PHPExecution plugin and use this link, it works:

<a href="http://example.com/?s2member_file_download=class01/resources.pdf&s2member_file_download_key=<?php echo s2member_file_download_key("class01/resources.pdf"); ?> ">Class Resources.pdf</a>

Any ideas would be greatly appreciated as I'd rather use the shortcode if possible!

Thanks
User avatar
Michelle
Registered User
Registered User
 
Posts: 18
Joined: November 29, 2011

Re: Shortcode for secure downloads not working

Postby Raam Dev » January 5th, 2012, 8:43 pm

That's strange! Are your PayPal Button shortcodes working fine?

Have you tried disabling all your plugins (except s2Member) to see if one of them is causing a strange conflict? (If temporarily turning off all plugins is too much, you can use Plugin Organizer to disable all plugins on just one page).
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Shortcode for secure downloads not working

Postby Michelle » January 6th, 2012, 12:24 am

Thanks Raam.

Yes the PayPal shortcodes do appear to be working as the payment process goes through as expected and I'm returned to the Specific Page.

I'm not sure if it's related, but I'm having problems with WP Affiliate and I believe that relies on shortcodes. Details here: viewtopic.php?f=4&t=16695&p=59772#p59772

As for plugin conflicts - well that's going to be fun to work through! This is a website that was originally developed by someone else and there are dozens of plugins installed.
User avatar
Michelle
Registered User
Registered User
 
Posts: 18
Joined: November 29, 2011

Re: Shortcode for secure downloads not working

Postby Raam Dev » January 7th, 2012, 7:04 pm

Hi Michelle,

Unfortunately disabling plugins is going to be your best bet. The most likely culprit is a conflicting plugin. If that's going to be way too obtrusive, you could always continue using the PHP Execution solution.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Shortcode for secure downloads not working

Postby Michelle » January 9th, 2012, 7:44 am

Following up on this in case anyone else has the same issue.

The problem was caused by a conflict with the Broken Link Checker plugin. Deactivated that and now my shortcodes are working.

Integration with WP Affiliate still isn't working though :(
User avatar
Michelle
Registered User
Registered User
 
Posts: 18
Joined: November 29, 2011

Re: Shortcode for secure downloads not working

Postby Raam Dev » January 9th, 2012, 6:31 pm

Thank you for the update and for letting us know which plugin was incompatible. :)

Regarding WP Affiliate, have you tried searching through here? If you still can't get it working, please start another thread explaining what's going on and we'll see how we can help.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron