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™

s2Member Codex ( Documentation )

s2Member Codex ( Documentation ). Auto-generated source code documentation w/discussion.

s2Member v111220 / Package Class: s2Member...

Postby System Robot » July 9th, 2011, 5:29 am

s2Member v111220
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: December 20, 2011, 9:47 am

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v110710 / Package Class: s2Member...

Postby System Robot » July 11th, 2011, 3:07 pm

s2Member v110710
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: July 11, 2011, 4:07 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v110710 / Package Class: s2Member...

Postby System Robot » July 11th, 2011, 5:23 pm

s2Member v110710
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: July 11, 2011, 6:23 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v110815 / Package Class: s2Member...

Postby System Robot » August 15th, 2011, 1:33 pm

s2Member v110815
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: August 15, 2011, 2:33 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

Re: s2Member v110815 / Package Class: s2Member...

Postby bware » September 1st, 2011, 8:09 pm

Hi:

I would like some advice on how I can customize the shortcode attributes of the [s2member_pro_paypal_form] shortcode, which is a member of this class.

Specifically, I want to dynamically set the "ta" and "ra" attributes by passing either $_POST or $_GET global variables.

How would I successfully do this through the Custom Capabilities platform? Or how would I customize the code to do the same. I've looked through all of the appropriate places where the attributes might be set (followed the php page/line directory in the Codex), but couldn't find anything.

Please help. Thanks...
User avatar
bware
Registered User
Registered User
 
Posts: 3
Joined: September 1, 2011

Re: s2Member v110815 / Package Class: s2Member...

Postby Jason Caldwell » September 6th, 2011, 2:56 pm

Thanks for the excellent question.

You can use this function directly if you like, and just pass it an array of Shortcode Attributes.
Code: Select all
<?php
$attr 
= array("level" => "1", "ra" => "24.95"); // Any Shortcode Attribute you like.
echo c_ws_plugin__s2member_pro_paypal_form::sc_paypal_form($attr));
?>
For a full list of Shortcode Attributes, please check your Dashboard, under:
s2Member -> PayPal Pro Forms -> Shortcode Attributes (Explained).

Or, see this article for $_GET $_POST examples:
viewtopic.php?f=36&t=1604
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: s2Member v110815 / Package Class: s2Member...

Postby bware » September 6th, 2011, 3:05 pm

Thanks, Jason.

Actually figured it out, once I installed the PHP plugin. The one I was using turned out to be DOA...so we gave it a proper burial.

Thanks again...


Billl
User avatar
bware
Registered User
Registered User
 
Posts: 3
Joined: September 1, 2011

s2Member v110912 / Package Class: s2Member...

Postby System Robot » September 13th, 2011, 12:00 pm

s2Member v110912
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: September 13, 2011, 10:00 am

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v110913 / Package Class: s2Member...

Postby System Robot » September 14th, 2011, 1:25 am

s2Member v110913
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: September 13, 2011, 11:25 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v110915 / Package Class: s2Member...

Postby System Robot » September 17th, 2011, 4:16 pm

s2Member v110915
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: September 17, 2011, 2:16 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v110926 / Package Class: s2Member...

Postby System Robot » September 26th, 2011, 9:00 pm

s2Member v110926
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: September 26, 2011, 7:00 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v110927 / Package Class: s2Member...

Postby System Robot » September 27th, 2011, 5:08 am

s2Member v110927
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: September 27, 2011, 3:08 am

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v111002 / Package Class: s2Member...

Postby System Robot » October 3rd, 2011, 3:37 am

s2Member v111002
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: October 3, 2011, 1:37 am

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v111003 / Package Class: s2Member...

Postby System Robot » October 3rd, 2011, 3:44 pm

s2Member v111003
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: October 3, 2011, 1:44 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v111011 / Package Class: s2Member...

Postby System Robot » October 11th, 2011, 2:18 pm

s2Member v111011
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: October 11, 2011, 12:19 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v111017 / Package Class: s2Member...

Postby System Robot » October 17th, 2011, 3:35 pm

s2Member v111017
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: October 17, 2011, 1:35 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v111029 / Package Class: s2Member...

Postby System Robot » October 29th, 2011, 8:31 pm

s2Member v111029
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: October 29, 2011, 9:31 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v111105 / Package Class: s2Member...

Postby System Robot » November 5th, 2011, 7:23 pm

s2Member v111105
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: November 5, 2011, 8:23 pm

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v111206 / Package Class: s2Member...

Postby System Robot » December 7th, 2011, 12:59 am

s2Member v111206
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: December 7, 2011, 12:59 am

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011

s2Member v111220 / Package Class: s2Member...

Postby System Robot » December 20th, 2011, 9:47 am

s2Member v111220
Package Class: s2Member\PayPal\c_ws_plugin__s2member_pro_paypal_form
Docs updated: December 20, 2011, 9:47 am

Open for public discussion.
User avatar
System Robot
Robotic Administrator
Robotic Administrator
 
Posts: 19662
Joined: April 3, 2011


Return to s2Member Codex ( Documentation )

Who is online

Users browsing this forum: No registered users and 0 guests

cron