Bruce

My Latest Replies (From Various Topics)
Author | Replies |
---|---|
Author | Replies |
Posted: Wednesday Oct 10th, 2012 at 8:34 pm #28047 | |
![]() |
|
Hi Jim, You may also want to make sure your server’s settings are set up correctly. If you could run this Server Check Tool that would be great. Also, if you are contacting your web host, please verify that there is nothing special going on with your server’s On another note, it’s possible that your server’s configuration are not set up to allow PHP to edit files. If nothing else seems to help, you may want to check that. Let us know how that goes. :-) |
|
Posted: Wednesday Oct 10th, 2012 at 8:12 pm #28040 | |
![]() |
|
Hi Jim, Thanks for the heads up on this thread, Eduan
It appears that your server may be archiving changes to your PayPal logs every time there is a change. It sounds that this may have something to do with your backup processes on your server. Whatever service you’re using (Backupbuddy?) is creating a new archived file every time the paypal-api.log file is changed (paypal-api-ARCHIVED-09-10-2012-1347265009.log). The s2Member log is constantly changing, but should not create any number of files (s2Member will archive log files if they reach a certain length, but you should not have too many of these). I would suggest turning off backups for this directory, if possible, and deleting all files within the s2member-logs file, assuming you are not having any problems with your s2Member setup currently. This should fix your problem :-). |
|
Posted: Tuesday Oct 9th, 2012 at 5:23 pm #27931 | |
![]() |
|
Hi there, In the meantime, you can use the hack I posted to do this as well through PHP:
Moved to: http://www.s2member.com/forums/topic/automatic-login-based-on-ip/
|
|
Posted: Sunday Oct 7th, 2012 at 5:01 pm #27749 | |
![]() |
|
Hi Vik, Sorry about this confusion. I had originally had a different code sample there and updated it and it caused an error. I updated this Knowledge Base Article today with all new code samples that should work for you. :-) |
|
Posted: Sunday Oct 7th, 2012 at 3:40 pm #27743 | |
![]() |
|
Hi Bill, Sorry about the confusion.This is a pretty advanced hack so I had only put up the basics originally to keep it simple. However, I now believe that it does make more sense to just list out everything that should be done.
KB Updated: http://www.s2member.com/kb/setting-up-eot-notifications/
Opening comments for technical advice on this post. |
|
Posted: Thursday Oct 4th, 2012 at 11:54 pm #27524 | |
![]() |
|
Hi Michael, It looks like you’re trying to run PayPal Payflow in Sandbox/Developer Testing mode. Currently PayPal Payflow doesn’t have the capability to do this yet (which is rather bothersome). Jason added a post here outlining how you can test transactions with PayPal Payflow for now. Let us know if you have any further problems! :) |
|
Posted: Thursday Oct 4th, 2012 at 11:41 pm #27523 | |
![]() |
|
Hi Bob,
I would strongly recommend setting up a local server for development while you’re working with hacking s2Member (or any WordPress plugin or portion of the WordPress framework). I myself have seen first-hand what working on a live site can bring on, and (trust me) it’s not pretty. I would recommend checking into EasyPHP and setting up a WordPress site with just s2Member installed.
Essentially what So essentially what you’re looking to do is something like this (I recommend just creating a new user with $user_id):
Let me know if that helps you out. |
|
Posted: Thursday Oct 4th, 2012 at 11:15 pm #27522 | |
![]() |
|
Hi Angie, You can stop this from happening by putting the edited version of the class into a Must Use Plugin. s2Member has a check to see if the class is already created both within the class autoloader, and within each class file itself for this purpose. You can create the /wp-content/mu-plugins/ directory if you do not and create a file called s2hack_email-configs_overwrite.php to house this. Keep an eye out for changes to the email-configs.inc.php file in future versions however. If this file does change you’ll want to adapt this file to the new setup. :) |
|
Posted: Wednesday Sep 26th, 2012 at 9:10 pm #26635 | |
![]() |
|
Hi Danny, Try using this:
I created the function As it is set up currently, it is only var_dump()ing the data into your page, you can use the array with a Let me know how it goes. |
|
Posted: Wednesday Sep 26th, 2012 at 8:53 pm #26634 | |
![]() |
|
Great! Glad to hear it! :) |
|
Posted: Wednesday Sep 26th, 2012 at 8:00 pm #26631 | |
![]() |
|
Hi Danny, I’m going to run some tests quickly and create a function for you to do this with. I believe the fastest way to do this would be just to I’ll get back to you shortly. |
|
Posted: Wednesday Sep 26th, 2012 at 7:49 pm #26630 | |
![]() |
|
Hi Grace,
Sorry about the confusion. I believe this is being caused by the way I handled the WordPress database prefix within the hack. You have a database prefix other than ‘wp_’ correct? Try the updated code at http://www.s2member.com/kb/adding-a-sortable-eot-user-column/ Hi Mary,
Unfortunately it’s not possible to change this functionality, as WordPress does not have any specific filters for this, and I was forced to actually edit the mySQL query itself using ‘pre_user_query’. If we find a better way to do this, I’ll update the KB on it. :)
Yes that’s correct, as long as you extract($vars); within your filter/hook. The functionality of get_defined_vars(); really is exceptional. You can check out some documentation on it here: |
|
Posted: Wednesday Sep 26th, 2012 at 1:16 am #26512 | |
![]() |
|
Hi Danny, If you have the function called anywhere (like in a mu-plugin) in your WordPress setup, this error will come up. Because this function already exists within the standard s2Member setup (the post you found was for editing the file directly, which is not recommended) you are getting that error. Try just changing your file to this:
|
|
Posted: Tuesday Sep 25th, 2012 at 7:46 pm #26494 | |
![]() |
|
KB Articles FinishedA post on adding the sortable EOT column to your WordPress Users list has been posted here: http://www.s2member.com/kb/adding-a-sortable-eot-user-column/
Due to the way s2Member handles its Filters and Hooks, there is no specific documentation regarding all of the filters. The Codex documents where these filters and hooks are. s2Member generally passes all of the variables it is using (with In this case, s2Member does your action at line 248 in s2member/includes/classes/auto-eots.inc.php which means you should have a LOT of variables at your disposal, including To use these variables, you’ll want to do something like this:
If you have any further issues with this, please create a new thread for the fastest response. Thanks! |
|
Posted: Tuesday Sep 25th, 2012 at 12:12 pm #26445 | |
![]() |
|
Hi Danny, When PHP gives you that error, it means you have already made that function somewhere else. You can’t have 2 functions with the same name. Either rename the function, or find where you have that function declared somewhere else and delete it. :) |
|
Posted: Monday Sep 24th, 2012 at 8:45 pm #26378 | |
![]() |
|
Hi Cheryl, If you’d like to put a login form within your Membership Options Page, you can use the Membership Options Page variables that s2Member passes when a post is protected. I wrote a Knowledge Base article on using the Membership Options Page Variables not too long ago. You can check that out here: http://www.s2member.com/kb/using-the-membership-options-page-variables/ You can then change the way your login form works by sending the user to the login form at wp-login.php/?redirect_to= and change the redirect_to variable to match the URL the user should be redirected to.
Note that s2Member Pro’s Login Widget will automatically use the Membership Options Page variables if you select the Previous Page option within setup under Redirection After Login.
|
|
Posted: Monday Sep 24th, 2012 at 8:20 pm #26374 | |
![]() |
|
Hi Danny, With the last code snippet you posted, PHP doesn’t allow you to set the default value of parameters with another variable. Do this instead:
|
|
Posted: Monday Sep 24th, 2012 at 8:03 pm #26371 | |
![]() |
|
Hi Bruce, Glad to hear you’ve got it fixed.
I would suspect that this would cause similar errors as it exists now. If you can add a whitelist within the plugin then it may be okay. Just whitelist requests from PayPal. Otherwise, you may want to find the
Doing that would allow the plugin only to function when s2Member is not getting directly queried from PayPal. Closing thread. If you have any further issues please create a new thread.
|
|
Posted: Sunday Sep 23rd, 2012 at 4:10 pm #26224 | |
![]() |
|
Hi Michael, Sorry for the confusion. I believe that Authorize.net is technically available in all countries, but requires US currency and a US Bank Account to use it. I’m pretty sure Google Checkout and Clickbank do support European countries though. I’m not experienced with European payment gateways as s2Member is a US-based software. If Google Checkout and Clickbank don’t work out, you may want to add an additional payment gateway to your WordPress setup. You can get a Freelance developer to do this for you using the information within Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration under IPN w/ Proxy Key ( optional, for 3rd-party integrations ). You can also check out the s2Member Codex, and this section from the FAQs for more information. |
|
Posted: Sunday Sep 23rd, 2012 at 3:55 pm #26220 | |
![]() |
|
Hi Charles, You can find info on Shortcode Conditionals that will help you with this within Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals. Just put the shortcode for Pro Forms within the correct conditional and the other Pro for within another. :) |
|
Posted: Sunday Sep 23rd, 2012 at 3:32 pm #26214 | |
![]() |
|
Glad to hear you got it fixed. :) |
|
Posted: Sunday Sep 23rd, 2012 at 3:31 pm #26212 | |
![]() |
|
Hi Jeff, Thanks for this great question.s2Member does not currently support this as a feature, as it is based around the idea of WordPress Roles and Capabilities. It could be possible through some custom code, however. If you’d like to see about how to set this up through some code, you can check out the Codex, and more specifically the PayPal IPN and PDT/RTN functionality. It may be possible to create a new version (within an Must Use plugin, s2Member allows its classes to be overridden) of the files s2member/includes/classes/paypal-return-in.inc.php and s2member/includes/classes/paypal-notify-in.inc.php, and create a new class to handle this functionality. I’m adding PayPal IPN/PDT methods to the list of things to go over within the Knowledge Base, as well as putting in a feature request with the lead developer for a future version of s2Member. |
|
Posted: Sunday Sep 23rd, 2012 at 3:13 pm #26207 | |
![]() |
|
Hi Michael, BuddyPress takes over on the pages that you have set up within BuddyPress. You can protect these pages within Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions by user role. Keep in mind that changing the slugs of these pages will nullify the restrictions you set up until you update your URI Access Restrictions. |
|
Posted: Sunday Sep 23rd, 2012 at 3:06 pm #26205 | |
![]() |
|
Hi Charles,
Got it. Thanks. Just put this in your style.css file:
That should do it, and keep it from happening from any other forms (whether they be from s2Member or not). |
|
Posted: Sunday Sep 23rd, 2012 at 2:22 pm #26200 | |
![]() |
|
Hi Charles, Your theme should handle this by itself, as s2Member doesn’t set its own color attributes. If you’d like to post a link to your Pro Form, I’d be happy to send you some CSS you can put within your theme’s style.css file. :) |