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.

About: Andrew Peacock

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Show content based on membership dates

By:  Andrew Peacock in: Community Forum

voices: 2
replies: 2

3 years, 9 months ago  Andrew Peacock

Pass S2member ID to embedded webapp

By:  Tammy A in: Community Forum

voices: 2
replies: 1

3 years, 10 months ago  Andrew Peacock

DigiResults Integration

By:  Andrew Peacock in: Community Forum

voices: 1
replies: 0

3 years, 10 months ago  Andrew Peacock

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Show content based on membership dates

By:  Andrew Peacock in: Community Forum

voices: 2
replies: 2

3 years, 9 months ago  Andrew Peacock

Digiresults integration

By:  Andrew Peacock in: Community Forum

voices: 2
replies: 3

3 years, 10 months ago  Cristián Lávaque

DigiResults Integration

By:  Andrew Peacock in: Community Forum

voices: 1
replies: 0

3 years, 10 months ago  Andrew Peacock

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Tuesday Mar 26th, 2013 at 6:52 am #45719

Thanks Casel, appreciate the response.
Andy

Posted: Friday Mar 1st, 2013 at 5:06 am #43454

Hi Tammy,

Application Craft rocks! I’d not heard of it before, so thanks for sharing :-)

So…

To get the user ID from S2, use the PHP constant S2MEMBER_CURRENT_USER_ID

You’ll need to expose that to the HTML so you can embed the code from Application Craft:

<script src="http://ayb.applicationcraft.com//live/userlive.js" type="text/javascript"></script>
<script type="text/javascript">
   waInitForm("APP_CODE_GOES_HERE", 
     757, 811, "id=ID_GOES_HERE");
</script>

The only way I know of doing that in WP is to use a plugin like Allow PHP in Posts and Pages, Shortcode Exec PHP, or Shortcode Exec PHP

Which will end up like this

<script src="http://ayb.applicationcraft.com//live/userlive.js" type="text/javascript"></script>
<script type="text/javascript">
   waInitForm("APP_CODE_GOES_HERE", 
     757, 811, "user_id=<?php echo S2MEMBER_CURRENT_USER_ID; ?>");
</script>

Then, in Application Craft, go to the Code view and you can get the user id like this:

var user_id = app.getInputParameters("user_id");

After that, it’s up your specific app what it does with the ID, so i can’t help with that bit, sorry.

One thing to think about – what’s to stop me using that same HTML and just swapping the ID’s about until I find someone else’s data? The answer is “nothing” at the moment, so it might be worth thinking about an additional key that is passed between S2Member and ApplicationCraft, and use AC’s SSJ (Server-side Javascript) to validate that key.

Hope that helps,
Any

Posted: Friday Mar 1st, 2013 at 3:59 am #43451

Moved to custom support forum…

Posted: Thursday Feb 28th, 2013 at 12:02 pm #43422

Ah, think I’ve answered my own question.

For anyone else: s2Member Pro includes the ability to use the Paypal IPN (which Digiresults also offer). You can either use the Paypal IPN for transactions direct through paypal, or for transactions posted to S2member via other ecommerce platforms (ie, digiresults, who support both Clickbank and Paypal IPN).

So, I think you need to set up the 3rd party Paypal IPN, and it should work.

I’ve just purchased s2 pro, but need to get it set up on my proper domain, rather than my local desktop, to test. I’ll do that later, and share the results.

Regards,
Andy

Viewing 4 replies - 1 through 4 (of 4 total)

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.