|
Hey Cristian,
I thought there should be a much better solution for this, I mean posts in the category changes, and I can’t expect a user who has already paid for the category content to pay for it again. As for the solution on how to automatically create category restriction, can you be a little more specific please?
Cheers,
Angela
|
|
I already sent them on Friday. It should point to a http://demo.themobu.com/wordpress/. I’ll send it again if you didn’t get them
|
|
Yes, I am able to access those content without logging in.
|
|
Never mind, found the solution. It worked like this
global $current_user;
get_currentuserinfo();
if(count($current_user->caps) != 0) {
foreach($current_user->caps as $key => $value) {
preg_match("/[0-9]{1,}$/", $key, $course_post_id); //You should match for the string after access_s2member_ccap_*
//Do stuff with the capability names
}
}
|
|
Thanks for the super fast reply :)
|
|
Hi Raam,
I do have the Pro-Form available, but I’m just not sure how I need everything. In this project, I simply need people to be able to use Paypal and Alipay as payment gateway and redirect users away from the backend admin.
Angela
|
|
never mind, I found it. It’s stored as access_s2member_ccap_CAPNAME => 1 in the wp_capabilities field of the usermeta table. No wonder I couldn’t find it in custom fields…
|
|
I was meant to ask what “index” should I save it under. For example, normal custom field provide a field where you enter the label, say comp_name and all entries would be comp_name => apex inc, comp_name => runaway home, etc. What is the label for custom capability in the array?
|
|
but you still haven’t mentioned what is the name of the index I should use (for example, if I create a custom field, I can find the array element using the label which becomes the index key of the array). You guys really should write some documentation on this. It’s extremely vague what you are doing with the data and how you are storing it.
|
|
I forgot to ask, how can I set up a custom capability for the user via script? I know I should either update a meta_value field in the usermeta table, but I’m not sure how to insert a new element into the already serialized array. Also, I wasn’t able to find the custom capability data that I entered, is this even stored somewhere?
|
|
Well, you mentioned that it’s gonna be send to S2member, right? So then, all I need is a filter/hook to grab a copy of the information and update the custom field.
|
|
but every time the user finishes the payment, they would return to the website. (I’m only concerned about the Alipay gateway.) Doesn’t the URL keep some information (like how much they’ve charged) so I can use the appropriate hook/filter to update that information to the custom field value?
|
|
but every time the user finishes the payment, they would return to the website. (I’m only concerned about the Alipay gateway.) Doesn’t the URL keep some information (like how much they’ve charged) so I can use the appropriate hook/filter to update that information to the custom field value?
|
|
As for the account balance, if it’s not going to be available anytime soon, can you suggest some workarounds or hacks? Thanks
|
|
In addition, I also have a thought for Alipay gateway. Since it doesn’t support recurring payments, I was wondering if I can use S2member to create an account balance feature? This way, users can charge up their S2member account with X RMB, and let it deduct every month rather than ask the user to pay every month. (Returning the amount is currently not a very important feature, I can set up a form for user to fill and return the money manually.)
|
|
thanks for the reply, but I also want to know how can I include the avatar in the profile and give an option to modify it?
|
|
I currently have 2 types of registration:
– Open registration for personal users. They will use the WordPress default method to register. Emails are successfully received.
– Pro API to create trial users for premium levels. These emails are not received (or send I believe), and are not seen on the email logs.
I have no problem receiving other types of emails from this WordPress installation (like notification emails from other plugins, testing email from WP Mail SMTP, as well as logging emails from S2member itself).
I’m not sure if providing the S2member logs will be of any help since there is no transaction.
|
|
I thought I had the problem solved.
I’ve removed the Sinoshare plugin I mentioned (that seems faulty), but all of my users are still complaining of this problem. I tested it again today, and it came back.
I don’t know what to do now. I will disable more plugins, but I’m not optimistic. In addition, I can’t see my S2member badge.
|
|
I’m not sure why, but it seems like one of my recent plugin is causing the problem (even though the problem started a couple of months ago). Anyway, got it to work for now. Thanks for all your helpful inputs.
|
|
I just tried that WP default with no chinese. I only got the form submission email (not even the admin notification email about a new user). So what should I test next?
|
|
Here is a screenshot of my email configuration on the General Options page (see here http://www.flickr.com/photos/74373680@N04/6787727040/sizes/l/in/photostream/)
|
|
Sorry about the late reply. I think I should clear things up a little. The ONLY emails that I (and everyone else) can\’t receive is the username/password email. I can receive the purchase confirmation email (specific page/post or membership purchase) and the notification email for debugging Notification API (despite having Chinese characters in there).
I really don\’t understand. I installed the plugins suggested, but there was NOT a single trace of the email. I think the problem occurred before the email is triggered. I really really need help on this. The site is officially going live in less than 2 weeks, and how will I keep my users if they can\’t even receive sign up emails! Please help. I\’d pay for this if necessary, but I really need to get this going!!!
|
|
Thanks for the update, I thought I might never to be able to update to new version of S2member. I moved my site to a new server with Apache 2.2 (although there is still one site on Apache 1.x), and there are still a little problems here and there. At least I made a backup.
Please let me know when support for Apache 1.x will be removed, so I can prep the migration.
|
|
Jason, You said S2member is not compatible with Apache 1.x, but I didn’t have any trouble running it on version 111223 or below (except that email issue). I can definitely turn off debug mode, but the plugins are still broken and nothing can be fixed by turning off the debug mode.
Eduan, I will definitely try the suggestions you have offered, but I’m not sure this will resolve the problems.
|
|
Anyone can explain why my custom functions file are partially GONE? I know I’m the one to blame to not make backup, but just as I’m patching up the things that S2member broke, it breaks/steals/deletes the code again? You gotta me kidding me. What is going on here?
-
This reply was modified 4 years, 10 months ago by
Angela Zou.
|