Bruce

My Latest Replies (From Various Topics)
Author | Replies |
---|---|
Author | Replies |
Posted: Saturday Nov 24th, 2012 at 7:58 pm #32503 | |
![]() |
|
Hi Cassel, You don’t have the ending ‘); on the third line, but otherwise it should be O.K. |
|
Posted: Saturday Nov 24th, 2012 at 7:56 pm #32501 | |
![]() |
|
Hi Cassel, There are no syntax errors in that code as-is. I suspect that the problem lies in that you have the tags, you do not need to have these tags when you’re putting the code in. Does that fix your issue? |
|
Posted: Saturday Nov 24th, 2012 at 7:48 pm #32498 | |
![]() |
|
Can you please copy the exact error that you’re getting? |
|
Posted: Saturday Nov 24th, 2012 at 7:45 pm #32496 | |
![]() |
|
Hi Cassel,
Yes, when you’re putting a function’s or variable’s data into a PHP string/variable, you want to concatenate the function/variable with the other parts of the variable/string. That’s what those ‘.’s are. |
|
Posted: Saturday Nov 24th, 2012 at 7:36 pm #32493 | |
![]() |
|
Hi Cassel, Try this instead:
|
|
Posted: Saturday Nov 24th, 2012 at 7:30 pm #32492 | |
![]() |
|
Hi there, This is very possible with s2Member. You’ll want to set this up in Dashboard -› s2Member® -› Restriction Options -› Post Access Restrictions and Dashboard -› s2Member® -› Restriction Options -› Page Access Restrictions. |
|
Posted: Saturday Nov 24th, 2012 at 7:26 pm #32490 | |
![]() |
|
Hi Cheryl, That’s interesting. Could you copy the shortcode you’re using to display your form so that I could take a look at it? About how many times out of ten does this happen? |
|
Posted: Monday Nov 19th, 2012 at 7:24 pm #32027 | |
![]() |
|
Hi Alissa, s2Member’s user Import/Export feature is limited by the way that WordPress handles password saving. While these limitations are not noticeable when you’re only backing up users, it can cause problems with the way you’re attempting to use it because it does not move passwords over. WordPress uses a special key that’s in your To get started, you want to download your Edit the following lines:
These lines should be edited to reflect your current SQL setup on your new server environment. Next, you want to export your Keep the default exportation options, and save the downloaded file. Then, go to your new PhpMyAdmin on your new server, and click on the SQL tab at the top of the page, copy all of the data in the downloaded file and submit the SQL: Once this is finished, your user’s Paid Registration ID and other user data will be moved over to your new environment, and you should be good-to-go.
If you run into any errors with your PhpMyAdmin giving you errors, delete the current users and usermeta tables you have in your new server environment, and then follow the importation step.
|
|
Posted: Tuesday Nov 13th, 2012 at 5:09 pm #31488 | |
![]() |
|
Hi Avery, Sorry for the delayed responseCould you try making sure that your field ID (i.e. ‘countries’ in the example code) is correct? Also, you may want to try creating a new User and setting up fields, and calling the function with his ID as the second arguments to ensure that it is not simply trying to get data from the wrong source. You can find the User’s ID easily with WP Show IDs |
|
Posted: Thursday Nov 8th, 2012 at 12:27 am #30997 | |
![]() |
|
BUG REPORT: Moved the KB to the Unofficial Hacks/Extensions forums Fixed a bug where users could not download things from s2Member because it was on the ‘init’ hook. Please change line 18 within your copy of the hack from ‘init’ to ‘plugins_loaded’ |
|
Posted: Thursday Nov 8th, 2012 at 12:25 am #30996 | |
![]() |
|
No Problem and sorry for the mixup. I’ll add a reply to the thread you linked letting others know about the bug. |
|
Posted: Wednesday Nov 7th, 2012 at 11:20 pm #30993 | |
![]() |
|
Hi John, It is likely that the reason that this is not working for Level 2 Members is due to the way I had originally hooked WordPress. I had the plugin set up to automatically log in at the ‘init’ hook, which is one of the first hooks that WordPress fires. I have updated the hack to work on the ‘plugins_loaded’ hook which comes before ‘init’. Try the new code at: http://www.s2member.com/forums/topic/automatic-login-based-on-ip/ This should solve your issue, but if it does not, I would consider changing line 18 to |
|
Posted: Thursday Oct 18th, 2012 at 12:21 am #28799 | |
![]() |
|
Thanks for the heads up |
|
Posted: Friday Oct 12th, 2012 at 10:15 pm #28286 | |
![]() |
|
Hi LG, Thanks for the info.I’ve started an investigation on this. I’m going to get back to you as soon as I can reproduce this issue. |
|
Posted: Thursday Oct 11th, 2012 at 12:19 pm #28142 | |
![]() |
|
Hi LG, Could you please post a list of other plugins you’re running with s2Member? just copy + pasting the list from /wp-admin/plugins.php should suffice. :-) |
|
Posted: Thursday Oct 11th, 2012 at 12:16 pm #28141 | |
![]() |
|
Hi Jim, Just to clarify, s2Member does create ARCHIVED files accordingly, but you should never get this many log files normally which leads me to believe this is a problem outside of WordPress. However, it could be possible that there is a plugin conflict or bug with s2Member causing this. I’m going to put this issue into a case issue to look into for the next major release of s2Member. In the meantime, you may want to disable logging within Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging. Thanks for your patience. |
|
Posted: Thursday Oct 11th, 2012 at 3:07 am #28086 | |
![]() |
|
Hi LG, Thanks for the info.As you can see in the Codex (Source Code Docs), s2Member does
The first file is the class for the recurring payments, and the second is for the signup for the subscription. I’m going to run tests to try to get this to happen in a test environment. For now I suggest using get_user_field (“s2member_auto_eot_time”) – 1 day to display the date that users will be billed again. If this field is not being populated correctly either, then I would suggest disabling all plugins possible (except s2Member) and running test transactions until the problem is resolved. Thanks for your patience. |
|
Posted: Thursday Oct 11th, 2012 at 12:43 am #28077 | |
![]() |
|
Hi cassel,
Yes that’s correct. |
|
Posted: Wednesday Oct 10th, 2012 at 10:45 pm #28074 | |
![]() |
|
You could check first to see if the user is a ‘subscriber’ before starting your Assuming you just want to drip content no matter the level, you can use |
|
Posted: Wednesday Oct 10th, 2012 at 10:42 pm #28072 | |
![]() |
|
Hi Scott, WordPress already has a built-in feature for this. Just change the action=”” portion of your form to include the redirect_to argument:
|
|
Posted: Wednesday Oct 10th, 2012 at 10:37 pm #28070 | |
![]() |
|
No problem! I’ve been meaning to add this hack for awhile now. Let us know if you have any issues with it! :-) |
|
Posted: Wednesday Oct 10th, 2012 at 10:26 pm #28067 | |
![]() |
|
Hello again Cassel, You’ve got a parse error in your above code. Try this:
You can use strtotime() to find how many days it is away. s2member_paid_registration_time() returns a timestamp.
|
|
Posted: Wednesday Oct 10th, 2012 at 10:09 pm #28066 | |
![]() |
|
Hi Tony,
Ah, I didn’t realize you were actually showing users this page through AJAX. In this case, I would definitely take a look at the info Raam Posted here on protecting content outside of WordPress: http://www.s2member.com/kb/protecting-non-wordpress-content-with-s2member/ This way, your AJAX requests won’t fail when JavaScript tries to load the page. Just make sure to protect the file with something like this near the top of the page:
|
|
Posted: Wednesday Oct 10th, 2012 at 9:24 pm #28058 | |
![]() |
|
Hi Tony, You should add this to the top of your PHP page, right underneath the [hilite pre_code] By doing this, your file will check to see if WordPress loaded with it, and if it didn't, it will not load. :-) <blockquote> If you'd like to do it this way, make sure that your file(s) are within their own directory, and within this directory create a .htaccess file with this in it:
deny from all That blocks access to anything within the directory :-)
Keep in mind that using either of these tips will cause the file to not be able to be accessed. You’ll need to
require() or include() the file to see its’ output from now on :-)
|
|
Posted: Wednesday Oct 10th, 2012 at 9:17 pm #28056 | |
![]() |
|
Hi LG, Can you check to see if If that’s not working for you either, please make sure that your PayPal IPN URL is set up correctly within PayPal. If you have logging enabled, you should check out your paypal-ipn.log file to ensure that it is getting populated. If you do not have a paypal-ipn.log file, then this is most likely your issue.
Technically, if your IPN URL is wrong, you could still be getting user signups, because user upgrades/downgrades are done within the PayPal Return processes, or within WP_Cron in
/includes/classes/auto-eots.inc.php . However, this problem, and also a problem where all of your subscription-based members would not be downgraded would occur.
Let us know how that goes :-) |