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 buttons + downloads

s2Member Plugin. A Membership plugin for WordPress®.

shortcode buttons + downloads

Postby gvdsleen » January 25th, 2011, 10:48 am

Hi, am using shortcodes to create a button. Want to direct to a bought pdf file by non-members.

Option 1:
button for paid access?
[button url="http://www.mydomain.org/?s2member_file_download=docname.pdf&s2member_file_download_key=< ?php echo s2member_file_download_key("docname.pdf"); ?>" target="_blank" color="green" ]start download now![/button]

Is NOT working. However, next example is:

Option 3:
<a href="http://www.mydomain.org/?s2member_file_download=docname.pdf&s2member_file_download_key=<?php echo s2member_file_download_key("docname.pdf"); ?>">Link for paid access:</a>
User avatar
gvdsleen
Registered User
Registered User
 
Posts: 22
Joined: December 20, 2010

Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron