Community Support Forums — WordPress® ( Users Helping Users ) — 2011-07-08T20:43:23-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10303 2011-07-08T20:43:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=22712#p22712 <![CDATA[Re: Generate HTML for pro-forms]]>

Statistics: Posted by Cristián Lávaque — July 8th, 2011, 8:43 pm


]]>
2011-07-08T16:10:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=22682#p22682 <![CDATA[Re: Generate HTML for pro-forms]]> Statistics: Posted by Jason Caldwell — July 8th, 2011, 4:10 pm


]]>
2011-07-07T01:57:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=22517#p22517 <![CDATA[Re: Generate HTML for pro-forms]]>

Thank you guys for all the pointers and help. I have now released an updated version of the affiliate plugin and integrating this version with the s2Member is super easy. The customer essentially have to activate these two plugins and check a few checkboxes and thats it. Here is the updated integrated instruction:

http://www.tipsandtricks-hq.com/wordpre ... ftware-368


:)

Statistics: Posted by Cristián Lávaque — July 7th, 2011, 1:57 am


]]>
2011-07-03T14:07:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=22199#p22199 <![CDATA[Re: Generate HTML for pro-forms]]>
Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_action 
("ws_plugin__s2member_before_sc_paypal_button_after_shortcode_atts", "wp_aff_s2member_integration");
add_action ("ws_plugin__s2member_pro_before_sc_paypal_form_after_shortcode_atts", "wp_aff_s2member_integration");
function wp_aff_s2member_integration ($vars = array ())
    {
        $cookie_value = esc_html ($_COOKIE["ap_id"]);
        $vars["__refs"]["attr"]["custom"] .= "|" . $cookie_value;
    }
?>

Statistics: Posted by Jason Caldwell — July 3rd, 2011, 2:07 pm


]]>
2011-07-03T13:17:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=22190#p22190 <![CDATA[Re: Generate HTML for pro-forms]]>
Code:
custom="mysite.com|<?php echo $_COOKIE['ap_id']; ?>"

He believes the PHP tag here is NOT being processed successfully. Do you have a PHP execution plugin installed? If so, please run a quick test inside one of your Pages/Posts to be sure it's working as expected. Try testing a PHP tag like this please.
Code:
<?php echo 'Hello world.'; ?>

PHP Execution Plugin ( required for PHP tags ):
http://wordpress.org/extend/plugins/php ... on-plugin/

Statistics: Posted by Jason Caldwell — July 3rd, 2011, 1:17 pm


]]>
2011-07-03T01:35:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=22151#p22151 <![CDATA[Re: Generate HTML for pro-forms]]>

Statistics: Posted by Cristián Lávaque — July 3rd, 2011, 1:35 am


]]>
2011-07-03T00:52:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=22150#p22150 <![CDATA[Re: Generate HTML for pro-forms]]>
Just a follow-up... Any progress on this?


Thanks!

Statistics: Posted by ifanatics — July 3rd, 2011, 12:52 am


]]>
2011-06-30T15:04:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21996#p21996 <![CDATA[Re: Generate HTML for pro-forms]]> Statistics: Posted by Jason Caldwell — June 30th, 2011, 3:04 pm


]]>
2011-06-30T01:41:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21975#p21975 <![CDATA[Re: Generate HTML for pro-forms]]> Statistics: Posted by Cristián Lávaque — June 30th, 2011, 1:41 am


]]>
2011-06-29T18:43:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21953#p21953 <![CDATA[Re: Generate HTML for pro-forms]]>
Thanks for the follow up on this. I look forward to finding a solution.

Statistics: Posted by ifanatics — June 29th, 2011, 6:43 pm


]]>
2011-06-29T17:33:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21948#p21948 <![CDATA[Re: Generate HTML for pro-forms]]> %%cv1%% Replacement Code should be available there with both Button and/or Pro Form integration.

** If the developer needs a copy of s2Member Pro to complete his tests, we'll be happy to offer that.

Statistics: Posted by Jason Caldwell — June 29th, 2011, 5:33 pm


]]>
2011-06-28T08:56:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21879#p21879 <![CDATA[Re: Generate HTML for pro-forms]]>
Thanks for the reply. I have confirmed that everything is correct, in the shortcode and in the payment notification url.

The value does get passed through, as I can see the affiliates name on the paypal order details. It reads: "custom: name". But the referring affiliate is not credited with the sale. When asking the providers of the affiliate software, they said it was not compatible with s2member pro forms... which seems strange to me also as it all looks like it *should* work.

I'm beating my head against the wall on this one. I had no idea that this was going to be a problem before deciding to use this affiliate software, but I spent a lot of time setting it up and I do like the interface. Would really like to get it working if you have any further ideas.

Thanks again.

Statistics: Posted by ifanatics — June 28th, 2011, 8:56 am


]]>
2011-06-27T23:48:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21846#p21846 <![CDATA[Re: Generate HTML for pro-forms]]> Thanks for the excellent question.
~ and thanks for bringing this to my attention Cristián.


Here's what I'm doing currently (with the shortcode):
custom="mysite.com|<?php echo $_COOKIE['ap_id']; ?>"

This is the correct way to handle this with s2Member Pro Forms. No, there is no way to render an s2Member Pro Form with raw HTML, at least not like you can with a PayPal Button. A Pro Form is very dynamic, and requires much more than just a code snippet to function properly, thus, a code snippet is not provided for Pro Forms; you should always use the Shortcode format for Pro Forms.

Based on the instructions provided here, I see no reason why the Shortcode would not work. I would suggest going back over your integration of the affiliate software, and just double check that you've got all the Replacement Codes entered properly in your Payment Notification URL. Also, be sure that $_COOKIE['ap_id'] actually has a value. If that variable is empty, tracking will not work as intended.

Correct solution ( use Shortcode )
Code:
custom="mysite.com|<?php echo $_COOKIE['ap_id']; ?>"

Statistics: Posted by Jason Caldwell — June 27th, 2011, 11:48 pm


]]>
2011-06-27T15:44:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21816#p21816 <![CDATA[Re: Generate HTML for pro-forms]]> /wp-content/plugins/s2member-pro/includes/templates/forms/ directory and paste it in your theme's directory. You can name it whatever you want, make it .php instead of .html even. Edit the template the way you need it and then tell the shortcode to use that file as the template for the form using the template attribute. WP Admin -> s2Member -> PayPal Pro-Forms -> Shortcode Attributes (Explained) -> template

Statistics: Posted by Cristián Lávaque — June 27th, 2011, 3:44 pm


]]>
2011-06-27T04:04:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21796#p21796 <![CDATA[Re: Generate HTML for pro-forms]]> <input type="hidden" name="custom" value="mysite.com|<?php echo $_COOKIE['ap_id']; ?>" /> is meant to REPLACE:
<input type="hidden" name="custom" value="www.example.com" />

Therefore, it seems to me that it needs to happen before the PayPal button is pushed?

The instructions explaining this integration from the Affiliate Software can be found here: http://www.tipsandtricks-hq.com/wordpre ... mment-1545

Thanks.

Statistics: Posted by ifanatics — June 27th, 2011, 4:04 am


]]>
2011-06-26T22:22:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21789#p21789 <![CDATA[Re: Generate HTML for pro-forms]]> <?php echo $_COOKIE['ap_id']; ?> in the page, outside of the shortcode, does it echo what it should? Have you tried the Notification API to a custom script to see how the $_COOKIE['ap_id'] string cames through?

Statistics: Posted by Cristián Lávaque — June 26th, 2011, 10:22 pm


]]>
2011-06-26T21:21:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21786#p21786 <![CDATA[Re: Generate HTML for pro-forms]]>
I like the shortcode function, but in order for my affiliate software to work properly, I need to render a specific field in HTML. It is not working properly when trying to use it in the shortcode.

Here's what I'm doing currently (with the shortcode):
custom="mysite.com|<?php echo $_COOKIE['ap_id']; ?>"

Here's what I need to do in order for the affiliate software to work properly:
<input type="hidden" name="custom" value="mysite.com|<?php echo $_COOKIE['ap_id']; ?>" />

Yes, I'm using the PHP Exectution Plugin.

For whatever reason, this will not work with the shortcode. It needs to be in regular HTML to work... proven by the fact that it works with paypal buttons (when using the long-code), but I need to get this to work with pro-forms.

Any solutions to get this working properly would be greatly appreciated.

Statistics: Posted by ifanatics — June 26th, 2011, 9:21 pm


]]>
2011-06-26T18:51:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21766#p21766 <![CDATA[Re: Generate HTML for pro-forms]]> Statistics: Posted by Cristián Lávaque — June 26th, 2011, 6:51 pm


]]>
2011-06-26T09:13:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10303&p=21749#p21749 <![CDATA[Generate HTML for pro-forms]]>
I need to try to generate HTML code (instead of shortcode) for pasting pro-forms into a page. This is easy to do with buttons because it offers you both the shortcode and the HTML code. How can I get the equivalent for pro-forms?


Thanks.

Statistics: Posted by ifanatics — June 26th, 2011, 9:13 am


]]>