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.

Home Forums Bruce

Bruce

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 1,101 through 1,125 (of 2,703 total)
Author Replies
Author Replies
Posted: Tuesday Apr 30th, 2013 at 8:15 pm #48839
Bruce
Username: Bruce
Staff Member

Thanks for posting the log file, but that’s not the log file we need to see. Could you send us a Dashboard Login so we can take a look at all your logs? You can do that here:

s2Member® » Private Contact Form

Posted: Tuesday Apr 30th, 2013 at 8:14 pm #48838
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

– My client needs to manually approve members to the website by looking at their experience and profile info provided during the sign-up process.
– Only when a prospective member is manually approved by the admin, should they be charged the recurring membership fee.

You can have your client upgrade members through the Dashboard after reviewing their profile. However s2Member doesn’t save credit card information or the like for security reasons (mostly PCI Compliance). You could, however, have Users sign up through a Pro Form with a 1-week trial, and as long as your client reviews their profile within a week, they can cancel the subscription before the User is charged.

– Do I need PayPal Pro for this if its at all possible or will the PayPal Standard Business version suffice.

This depends on if you want to process credit cards on or off site. If you’re okay with sending Users to PayPal for all transactions, then PayPal Pro isn’t needed.

Posted: Tuesday Apr 30th, 2013 at 8:10 pm #48837
Bruce
Username: Bruce
Staff Member

Please also extend my thanks to Jason.

Will do. :-)

As an additional suggestion, it might be worth considering future integration with a service like recur.ly which, as I understand it, could eliminate the need for PCI-compliant hosting.

I’ll ask our development team about this. We’re looking at a couple new payment gateways for the next major version of s2Member, as well as making integrating new payment gateways easier.

You guys are the best. I have been pleasantly surprised with the level of integration that S2Member provides and the level of support you offer. Keep up the good work…and thanks again.

Thanks for the kudos!

Posted: Tuesday Apr 30th, 2013 at 8:08 pm #48836
Bruce
Username: Bruce
Staff Member

Anyway as far as hooks, I meant that if I write something in PHP can I pass the logged in use from S2 login to my PHP script?

Yes you can use PHP GET variables and pass the information you want to your script like this:

http://example.com?user_login=%%current_user_login%%/

Then you could get the variable like this:

<?php $user_login = $_GET['user_login']; ?>

See: http://php.net/manual/en/reserved.variables.get.php

Posted: Tuesday Apr 30th, 2013 at 7:51 pm #48833
Bruce
Username: Bruce
Staff Member

Then when those access has been used the user has to login or register (then reset then month after for other 10 access). Is it possible with s2member to achieve that?

I’d say it’s possible to do this with some use of PHP Cookies, or IP addresses on a small scale, but when you’re talking about 10 months, I just don’t see how that’s possible at all without having a User log in so you can keep track of them for that long period of time. I’m unaware of any way you could accomplish this, sorry.

Posted: Tuesday Apr 30th, 2013 at 7:49 pm #48831
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

We appreciate your patience.

1. When someone goes to http://agentdomain.com, I want them to be shown a login page and NOT have access to any of the page content. What is the best way to set this up?

The easiest way to do this would be put the URI restriction “/” in the first box here to restrict access to your site (except the Membership Options Page) to Users that are not logged in:

Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions


For your homepage, s2Member does not have any way to protect this, and it’s normally not required. The only way you could do this is using s2Member’s Advanced PHP Conditionals. You can create a Must-Use Plugin file and put this code in it:

<?php
add_action('init', 's2hack_protect_homepage');
function s2hack_protect_homepage() {
	if(is_home() && !is_user_logged_in()) { // If the User isn't logged in on the home page...
		wp_redirect(S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL); // ... redirect to the Membership Options Page
		exit();
	}
}
&#91;/hilite&#93;

<blockquote>
2. After they are logged with level 0 they will have pages that are custom for them using the %%current_user_login%% replacement codes. So basically I will build a custom page for each agent, with tools that access their information. Is there an api that will allow me to pass hooks to my tools from the agents custom page?
</blockquote>

I'm not sure what you mean by "pass hooks" here. Could you clarify what exactly you're looking or?

s2Member does allow some replacement codes to pass to a custom Login Welcome Page URL, which you can use with some PHP on the WordPress Page is redirects to. You'll need a PHP Execution Plugin.

See: <a href="http://www.s2member.com/kb/ezphp-plugin/">Knowledge Base » ezPHP Plugin for WordPress®</a>
See Also: Dashboard -› s2Member® -› General Options -› Login Welcome Page

3. When the agent updates their profile is there an api I can use on another website (my real estate company site) that will get the agents profile from http://agentdomain.com so I can post it on http://realestatebroker.com site?

No, s2Member doesn’t have anything like this, really. You could try something with s2Member’s API Notifications and Remote Operations, but this won’t update when a User modifies their profile.

See: Knowledge Base » Building An API Notification Handler
See Also: Dashboard -› s2Member® -› API / Scripting -› Remote Operations API

Also I would like to set http://agentdomain.com/%%current_user_login%%/ as the home page after login, but how do I do this in WordPress?

You could use a hack similar to the one I posted for your first question. WordPress doesn’t have any functionality like this.

Posted: Tuesday Apr 30th, 2013 at 7:35 pm #48830
Bruce
Username: Bruce
Staff Member

When a Payment Notification gets triggered and I have a MU Script that does some calc, how do I pass the data back to iDevaffiliate or S2Member?

You’d want to connect to iDevAffiliate the same way s2Member would directly. iDevAffiliate provides you URLs like this that let it record purchases:

http://www.example.com/idevaffiliate/sale.php?profile=123&idev_saleamt=%%initial%%&idev_ordernum=%%subscr_id%%

You’d want to generate an 1×1 pixel image filling in this URL with the correct information, as shown here:

Dashboard -› s2Member® -› API / Tracking -› Integrating iDevAffiliate®

Posted: Tuesday Apr 30th, 2013 at 3:35 pm #48816
Bruce
Username: Bruce
Staff Member

Your suggestion doesn’t work. But I have try before to copy the plugin CSS and JavaScript directly to my theme folder, thus I would like to know which s2member pro CSS and JS should be copied over if I want to try.

Sorry to hear that. s2Member has PHP in its JavaScript and CSS, and it requires that you use s2Member’s processes here to load it:

s2member/includes/classes/css-js-in.inc.php
s2member/includes/classes/css-js-themes.inc.php
Posted: Tuesday Apr 30th, 2013 at 3:33 am #48784
Bruce
Username: Bruce
Staff Member

This is the message we’re getting when we attempt to access your site:

The information in the message does not allow me access.
Posted: Tuesday Apr 30th, 2013 at 3:24 am #48781
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

I went over this in this post:

http://www.s2member.com/forums/topic/hidden-custom-field-to-store-affiliate-id/#post-48777

Posted: Tuesday Apr 30th, 2013 at 3:22 am #48780
Bruce
Username: Bruce
Staff Member

I’m sure I can export from WP database etc….but is there something I’m missing built into s2member?

I fulfill “physical” material by mail to my members, so I’ll need regular (monthly or better) “mailing lists” for active
subscribers at each level.

s2Member’s User Export is the closest you’re going to get this. You can find that here:

Dashboard -› s2Member® -› Import/Export -› User/Member Exportation

We’re hoping to extend the functionality of this section of s2Member soon, but at this time if this doesn’t accomplish what you need you’ll have to find a different solution for this. Sorry about that.

Posted: Tuesday Apr 30th, 2013 at 3:20 am #48779
Bruce
Username: Bruce
Staff Member

Hi, I’m probably going to have a “join the membership” tab on my menu that non-members will see on the page before they become paying members. But once they are paying members, I’d love to see that tab vanish (much like certain pages are hidden for non-members). Is this possible to do?

Yes. You can do this but you’ll need to use s2Member’s Advanced PHP Conditionals to accomplish this. You can find documentation on these here:

Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals

Posted: Tuesday Apr 30th, 2013 at 3:19 am #48778
Bruce
Username: Bruce
Staff Member

So, How can I program the following?: “Level 3 all site, Level 2 can access all the site except URI /example/, Level 1 can ONLY access 2 pages, 2 posts, and 1 group of buddypress.”

s2Member doesn’t currently support this functionality, instead it’s the other way around. Unfortunately you’ll have to protect all your content separately to achieve this. URI Restrictions could be useful for you here, though.

See: Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions

Posted: Tuesday Apr 30th, 2013 at 3:17 am #48777
Bruce
Username: Bruce
Staff Member

Is there a way i could read the cookie value in the payment notification script? Or i need to add the affiliate id to the user profile upon registration? If so then what would be the best way of storing the affiliate id with the customer profile so that i can read it from ther user instance in the payment notification script?

You could use the information provided in this Knowledge Base Article to pass the affiliate ID on checkout as a custom value through your payment gateway.

See: Knowledge Base » Using Variables In A Shortcode

From the docs
(Dashboard -› s2Member® -› PayPal® Pro Forms -› Shortcode Attributes (Explained)):

custom=”example.com” must start with your domain. Additional values can be piped in (ex: custom=”example.com|cv1|cv2|cv3|etc”). Not valid when cancel=”1″.

Note that you’ll need to save this information using one of the solutions provided in API / Tracking or API / Notifications.

See: Knowledge Base » Building An API Notification Handler

Posted: Tuesday Apr 30th, 2013 at 3:14 am #48776
Bruce
Username: Bruce
Staff Member

HI guys! I have a read if here somewhere that you do support the new 1.3 API which is great, thank you! Just making sure that we don’t have to do anything apart from downloading your latest version – do I need to do any changes in the admin panel?

No, you don’t need to change anything in your Dashboard. If you’ve got your ClickBank set up you’re good. :-)

Posted: Tuesday Apr 30th, 2013 at 2:15 am #48771
Bruce
Username: Bruce
Staff Member

I have checked this is the theme conflict. Actualy, the theme is a free version but I found it has used the base64 encrypted that I cannot make change on it. I would like to seek your advise, how to override this problem?

The best course of action would be to contact the theme developer, but if that’s out of the equation, I might suggest adding these lines to the bottom of your header.php file (within PHP tags, of course):

c_ws_plugin__s2member_css_js_in::css();
c_ws_plugin__s2member_css_js_in::js_w_globals();

If that doesn’t work, I’m unsure what else you can do. You need to have s2Member load in its CSS and JavaScript at some point during its load.

Posted: Tuesday Apr 30th, 2013 at 2:06 am #48770
Bruce
Username: Bruce
Staff Member

Is there anyways to get the last payment date?

s2Member saves that in the wp_s2member_last_payment_time usermeta field. You’d get it like this:

$s2member_last_payment_time = get_user_field ("s2member_last_payment_time");
Posted: Tuesday Apr 30th, 2013 at 2:04 am #48769
Bruce
Username: Bruce
Staff Member

But to come back to the issue I started with. The EOT I filled manually is not in the export and that is really what I need.

What export are you talking about exactly? The export here?

Dashboard -› s2Member® -› Import/Export -› User/Member Exportation

Posted: Tuesday Apr 30th, 2013 at 2:02 am #48768
Bruce
Username: Bruce
Staff Member

Thank you very much, you are being really helpful. I just filled in the form and sent through the details for you to login to the admin. Much appreciated.

Thank you for the information. We received it and I was about to take a look at your installation on behalf of Cristian, but it appears that you have another method of validation on your site with a browser popup, and none of the credentials that you provided work here. Could you send us another Private Message with the information to get past this?

See: s2Member® » Private Contact Form

Posted: Tuesday Apr 30th, 2013 at 1:58 am #48766
Bruce
Username: Bruce
Staff Member

yes, download history shows products purchased. but Recurring Payments DO NOT SHOW WHAT PRODUCT THE PAYMENT IS FOR! Not even the sub#.

anyone else run into this when downloading history from PayPal and trying to do accounting?

That’s something on PayPal’s side of things, and I’d recommend contacting PayPal directly on how you might accomplish what you need here. If PayPal has a way (which I’m pretty much certain they do not, as they’re processing the recurring payments on their side) to provide that information in recurring payments, let us know and we’ll have our development team look into it.

Alternatively, if you’d like to have a cleaner way of keeping your records, you might have a developer look into setting up a Payment Notification handler with s2Member. s2Member does get the Subscription ID for these payments, and you can use this information if you know a bit of PHP.

See: Dashboard -› s2Member® -› API / Notifications -› Payment Notifications
See Also: Knowledge Base » Building An API Notification Handler

Posted: Tuesday Apr 30th, 2013 at 1:55 am #48765
Bruce
Username: Bruce
Staff Member

Can I have one single PayPal account that each sub-domain connects to and processes my payments? I’m wondering if it would be an issue because each s2member install requires giving a unique IPN and PDT URL to paypal and obviously one account of Paypal will only accept one set of credentials. And, if possible would there any drawbacks (non-bookkeeping) to such a setup?

s2Member’s fully prepared for this. You can find out the information you need here:

Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration -› More Information

From the docs:

*Quick Tip* In addition to the default IPN settings inside your PayPal® account, the IPN URL is also set on a per-transaction basis by the special PayPal® Button Code that s2Member provides you with. In other words, if you have multiple sites operating on one PayPal® account, that’s OK. s2Member dynamically sets the IPN URL for each transaction. The result is that the IPN URL configured from within your PayPal® account, becomes the default, which is then overwritten on a per-transaction basis. In fact, PayPal® recently updated their system to support IPN URL preservation. One PayPal® account can handle multiple sites, all using different IPN URLs.

Posted: Tuesday Apr 30th, 2013 at 1:53 am #48764
Bruce
Username: Bruce
Staff Member

Now I know there is a hack to add custom S2 Fields but there is no way of getting my buddypress profile feilds into S2 that are created when someone joins as a free member.

So my Question is How can I call Buddypress x profile fields into the hack that sends extra info to mailchimp instead of the custom fields you can create in S2 Member ?

The answer to your issues here is to use s2Member for creating these profile fields. If you’ll check in your settings here, s2Member allows you to integrate your Custom Registration/Profile fields right into BuddyPress, but BuddyPress won’t allow you to do the same back to s2Member.

Dashboard -› s2Member® -› General Options -› Registration/Profile Fields

That’s the only way that it’s currently possible to get what you want.

Posted: Tuesday Apr 30th, 2013 at 1:50 am #48763
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

The best thing to do here would be to start with a clean integration of Amazon. You can use the information here to wipe these settings, and then start back again.

Knowledge Base » Reset the Amazon S3/CloudFront integration

After that’s completed, make sure that you have your bucket named with all lowercase letters, and try the integration again. If that still does not work, please turn on HTTP logging here and send us Dashboard Credentials so we can take a look.

See: Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration

You can send login information here: s2Member® » Private Contact Form

If you do send Dashboard information, let us know with a reply on this thread.
Posted: Tuesday Apr 30th, 2013 at 1:47 am #48762
Bruce
Username: Bruce
Staff Member

Once I logged out, ran the test, logged back in, and looked at the WP-email-log, it showed that email was sent, however still not received in my inbox. Your suggestion to this was get WP-Mail-SMTP plugin to send emails using SMTP instead of default WordPress setting.

I did this, ran another test, and everything worked perfect!

Thanks for the information! Let us know if you run into any more issues. :-)

Posted: Tuesday Apr 30th, 2013 at 1:46 am #48761
Bruce
Username: Bruce
Staff Member
Viewing 25 replies - 1,101 through 1,125 (of 2,703 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.