krumch
Forum Replies Created
-
Any non-restricted with s2M post is a “public” one, everybody can access it.
Registration process is not handled by s2M, but by WP, so no such shortcode here. Instead, you may use some plugin for widgets and login/register forms, there is lot of them.
Seems this forum helps as well 🙂
Generally no way, as the cookie stay in your browser, while s2M on the server goes to the URLs in Notifications. So actually s2M is the client for these “clicks”. So you must find a way to “stalk” the user’s clicks. I am did such things before, solution depends of the exactly case.
Are you logged in, when access the restricted URL?
Hi @ecullu,
Try to remark your code row by row, and check at which row you will not get this error. Code maybe will produce different errors, but you look only for “that” one – we hunt for it. This way you will have better understanding where the problem comes from.
Also I would use “floor($difference/(60*60*24))” at the last row.
Yet also, endure that your code runs well in “pure PHP” first, before to give it to the plugin.
Hope that helps.
That is possible, and easy, but works with s2M Pro. With Pro Forms you can set a coupon field, and can set coupons in s2M admin panel.
Where you set $user_id value?
Print (or mail to yourself) the value of $s2member_last_payment_time to see what you actually get. May be an error object. Or another surprise…
I don’t know the problem, but this is the way I fix unknown problems.
You can do that by s2M Proforms, set sum to $0. But in this case people must register by s2M, not by BP.
Another way is to hook a function to the “user_register” hook, to change the s2M level just after the user registers.
Install the plugin I suggest and tell me the difference.
Sorry, you didn’t ask that. For 35+ years with computers I learn how to read minds over Internet, but the magic works only with a computer’s minds… 🙂
Well, a joke. The info you explain is not enough to understand why the menu hiddes. Means, there is something hidden, you must dig around…
You must set PHP to be executed at the exactly page. Try “Easy PHP” plugin. Or something similar, I type by memory…
Sure, but the variable value must be imported to your function, like every other variable value to any PHP function. You should find where you can get it from. Maybe user’s metas…
This is the “Unix time” record, means number of seconds from the start of “Unix epoch”.
It is easy to convert to human readable by PHP “date” function like this:
date('YYYY-mm-dd', $UnixTime);That’s all the magic…
In your second code: where $s2member_last_payment_time gets value?