Raam Dev

My Latest Replies (From Various Topics)
Author | Replies |
---|---|
Author | Replies |
Posted: Monday Nov 12th, 2012 at 5:39 pm #31364 | |
![]() |
|
Hi Tyron, As Jean-Michel explained, you can use the s2Member conditionals (Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals and Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals) to restrict access to content, but there is not currently any feature for specifying a CSS class that should be restricted. |
|
Posted: Monday Nov 12th, 2012 at 5:38 pm #31363 | |
![]() |
|
Michelle, You are correct that it’s most likely a JavaScript issue. I have tested the Custom Capability Buy Now form on my test installation (a fresh install of WordPress + s2Member Pro running the default TwentyEleven theme) and the fields do pre-populate as expected.
You might be able to hack the Pro-Form template for the Custom Capability Buy Now form and go from there, but that’s really not the best course of action. As I mentioned above, the feature works as expected in all except your environment, so there’s something in your setup that’s causing this conflict.
Yes, that’s correct. This is the only way to sell a ccap without changing their subscription. If you wanted to simply add ccaps, without charging the user, you could create your own custom feature that does this. Could you please test this problem with the default TwentyEleven theme, instead of a BuddyPress theme? It’s even possible that BuddyPress itself is causing the JavaScript conflict (in which case temporarily disabling BuddyPress to test that theory would be the next best step). |
|
Posted: Monday Nov 12th, 2012 at 5:30 pm #31361 | |
![]() |
|
Hi Tyron, You can create Custom Registration/Profile fields in Dashboard -› s2Member® -› General Options -› Registration/Profile Fields and then when you display a Pro-Form (Dashboard -› s2Member® -› PayPal® Pro Forms -› Quick Start Guide) those fields will appear there. |
|
Posted: Monday Nov 12th, 2012 at 5:26 pm #31359 | |
![]() |
|
Hi Austin, I’ve updated that thread with your quoted text. Thank you very much for sharing what you learned!
Awarded Dean Keeler the Helpful badge.
|
|
Posted: Monday Nov 12th, 2012 at 5:20 pm #31356 | |
![]() |
|
Hi Gary, s2Member includes a feature called Custom Registration/Profile Fields. That allows you to create custom profile fields and display them during registration. Those fields are editable through the Edit User option within the WordPress Dashboard. You can also use the inline s2Member Profile Modification form (Dashboard -› s2Member® -› General Options -› Member Profile Modifications) to give your users the ability to edit their profile. |
|
Posted: Monday Nov 12th, 2012 at 5:17 pm #31355 | |
![]() |
|
That’s great to hear, Colin! Thanks for the update. :) |
|
Posted: Monday Nov 12th, 2012 at 5:10 pm #31353 | |
![]() |
|
Hi Chris, Thank you very much for all the detailed information. I’m going to forward this thread to Jason, the lead developer, to get his input. To my knowledge, PayFlow is only applicable to recently opened PayPal Pro accounts. A few months ago PayPal changed the API for newly created PayPal Pro accounts, while leaving older PayPal Pro account running under the older API. As a result, s2Member needed to accomodate both scenarios (old PayPal Pro accounts and new PayPal Pro accounts), which is why you see both options in there. If you have a Payflow account, you simply ignore the PayPal Account Details section and fill in the Payflow Account Details section. If you see a DPRP is disabled error, I believe that indicates that your PayPal account doesn’t have the service required for what you’re trying to do. If you’re trying to process a recurring subscription with your PayPal Pro account, please contact PayPal and make sure that your PayPal Pro account also has the Recurring Billing option (it’s an add-on to PayPal Pro and must be specifically requested). So at this point it looks like the latter may be your only problem. If you successfully created a PayPal Subscription using the Payflow settings, that would indicate that you do have a Payflow account. Since credit card subscriptions did not work and you received the DRP is disabled error, I suggest contacting PayPal with this error message and asking them to confirm your account has everything it needs. I do not currently know of any issues with s2Member’s PayPal integration, whether using PayPal Express, PayPal Pro, or Payflow. However, I will forward this message to Jason to see if he can offer any further advice. He’s a lot more familiar with the various gateway integrations and should be able to explain things with more detail than I can. Thank you for your patience. |
|
Posted: Monday Nov 12th, 2012 at 4:53 pm #31350 | |
![]() |
|
Woohoo! Glad to hear it, Mike! :) |
|
Posted: Monday Nov 12th, 2012 at 4:53 pm #31349 | |
![]() |
|
Hi Quentin, Thank you very much for the screenshot. Could you please also show us exactly what code you’re using for this hack? I would like to double-check that there are no bugs that might be causing this problem. |
|
Posted: Friday Nov 9th, 2012 at 12:37 pm #31151 | |
![]() |
|
Hi Cory, The s2Member shortcodes have attributes that specify things like the price, subscription duration, etc. With a little bit of PHP code, you can dynamically set the attributes, thereby creating one PayPal button that automatically adjusts itself depending on what shortcode attributes were set. So, on one page you might ask how many units the person has. Then, when they submit that form, some PHP would read the number they submitted and then set the shortcode attributes for the PayPal button so that the button is configured to charge the correct amount (e.g., $200 if they entered 100). You can read more about dynamic shortcode attributes here. Also, instead of separating things out into membership levels, you might want to use the more flexible Custom Capabilities feature. It will really all depend on your requirements. |
|
Posted: Friday Nov 9th, 2012 at 12:29 pm #31149 | |
![]() |
|
Hi Gary, The majority of your integration and above questions revolve around the usage of the Gravity Forms plugin. I’m not familiar with how that plugin works, so I cannot comment on its usage. However, I can say that s2Member uses the WordPress userbase, meaning all s2Member users are effectively WordPress users with an s2Member “Role” (i.e., s2Member Level). For giving each member different capabilities, you can use the s2Member Custom Capabilities feature. Any validations you need to do with regards to checking if a user ID exists would be done using WordPress functions (e.g., username_exists(), docs here). With s2Member Pro, you can also use our Import/Export feature to build a Excel CSV file that contains all your user data and import everything all at once. Let us know if you have any other questions. |
|
Posted: Friday Nov 9th, 2012 at 12:23 pm #31147 | |
![]() |
|
Glad I could help, Gary! :) |
|
Posted: Friday Nov 9th, 2012 at 12:17 pm #31144 | |
![]() |
|
Hi Mike, Yes, you are correct that it’s not working because you’re using the Authorize.net forms. The code in that original post is for customizing the default WordPress registration page (you can tell because it hooks into the login_head action). However, since writing that post, I’ve also customized this hack to work on a PayPal Pro-Form on my website; you can see that code below:
You’ll notice that the main difference is at the top, where you can see the action being hooked into (ws_plugin__s2member_pro_before_sc_paypal_form). That causes this code to run on the PayPal Pro-Forms for membership levels (Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms). You will need to locate the correct hook for the Authorize.net form that you’re using (probably ws_plugin__s2member_pro_before_sc_authnet_form) and change that in the hack. You’ll also need to do “view source” when displaying your Authorize.net Pro-Form on a page and locate the correct names of the email and username fields (e.g., input#s2member-pro-paypal-checkout-email should be changed to whatever it’s called on the Authorize.net Pro-Form) and then update those names in the hack. Finally, you’ll notice that I commented out the following on lines 44 and 48:
That code hides the Username section. I recommend leaving those lines commented out so that you can see if the username is actually being automatically generated when you type in the email address. Then, once you’re sure that it’s being generated, you can hide that section by uncommenting those lines (remove the leading //). This code should go in a PHP file in your wp-content/mu-plugins/ folder. If that folder doesn’t exist, you should create it. You can call the PHP file anything, but I recommend naming it s2hacks.php. Any PHP files in that directory will automatically be loaded every time you load a WordPress post/page.
The mu-plugins directory holds Must Use Plugins. These plugins are activated and run automatically with WordPress and do not require manual activation.
|
|
Posted: Friday Nov 9th, 2012 at 11:38 am #31140 | |
![]() |
|
Hi Joakim, You can create PayPal buttons that provide a specific duration of access (e.g., 3 months), but buttons that charge a recurring fee for a set number of days and then end (i.e., installment plans) are not currently supported. You should, however, be able to integrate the PayPal-hosted buttons with s2Member (see Using PayPal created buttons). |
|
Posted: Friday Nov 9th, 2012 at 11:34 am #31139 | |
![]() |
|
Glad to hear you solved this, Jason. I will go ahead and close this ticket. |
|
Posted: Friday Nov 9th, 2012 at 11:33 am #31138 | |
![]() |
|
Glad I could help! :) |
|
Posted: Friday Nov 9th, 2012 at 11:32 am #31137 | |
![]() |
|
Hi Donn, s2Member does not currently have a renewal notifications feature, but we’re working on it for the next major release of the plugin. For now, you may want to use MailChimp or AWeber schedule renewal notifications or you might want to try one of the renewal notifications hacks created by other s2Member users (here and here). |
|
Posted: Friday Nov 9th, 2012 at 11:30 am #31136 | |
![]() |
|
Hi Mary, Your latter idea definitely makes more sense. Unless you have a very good reason to have two separate WordPress sites, you should keep everything on one site. (The two sites won’t be able to talk to each other if you have two of them.) I recommend just adding s2Member to your existing site and then restricting the pages you want to restrict. |
|
Posted: Thursday Nov 8th, 2012 at 6:26 pm #31079 | |
![]() |
|
Genie, The URL that comes up after checkout contains extra information about the transaction. It’s not going to be the exact same URL that you enter in s2Member. So, that part is correct. Nothing wrong there. You have enabled logging. Good. Now we need to look at those log files to see if they can offer us any clues as to what is going on here. The log files are located in wp-content/plugins/s2member-logs/. Can you please use FTP, download the log files in that directory, open them up with a text editor (such as Notepad), and locate the entries related to your test transactions. The best way to locate those entries is by searching for the Transaction ID or Subscription ID associated with the transaction. Then, you can copy/paste them here (please enclose the entries in code tags to keep the formatting). |
|
Posted: Thursday Nov 8th, 2012 at 6:13 pm #31075 | |
![]() |
|
Hi Christopher, I’m not sure which button you’re referring to. Are you talking about the yellow “Checkout with PayPal” button that appears on the Pro-Forms? If so, that cannot be changed (PayPal’s rules). However, if you’re referring to the graphic that shows up when you generate a PayPal button inside s2Member (Dashboard -› s2Member® -› PayPal® Buttons), then you can use the image=”” shortcode attribute to specify your own image. Please see Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes (Explained). |
|
Posted: Thursday Nov 8th, 2012 at 6:08 pm #31073 | |
![]() |
|
Hi Johnny,
Can you copy/paste here the URL to the login page that’s give you the 404 error?
No, it’s not mandatory. Please see the following from Dashboard -› s2Member® -› PayPal® Pro Forms -› Quick Start Guide:
|
|
Posted: Thursday Nov 8th, 2012 at 6:04 pm #31072 | |
![]() |
|
Hello, I will forward this inquiry to our billing department right away and they will look into it for you. In the meantime, could you please give us your username for the other account? |
|
Posted: Thursday Nov 8th, 2012 at 6:03 pm #31071 | |
![]() |
|
Johnny, You don’t want files to be downloaded inline… inline means it will try to load in the web page or in the default player. Try removing everything from Dashboard -› s2Member® -› Download Options -› Inline File Extensions and testing again. |
|
Posted: Thursday Nov 8th, 2012 at 5:54 pm #31070 | |
![]() |
|
Hi Keane, This modification will require familiarity with the WordPress templating system. A WordPress theme is split into many different parts and then “put together” dynamically when you load the site. The comments section of a post/page is usually loaded through the comments.php template file. Each WordPress theme is coded differently, so I cannot explain exactly what you need to edit. If you’re not comfortable with PHP or WordPress you may want to post a job on jobs.wordpress.net or ask your question on wordpress.stackexchange.com or the WordPress.org Support Forums. What you’ll need to do is add a conditional around the block that loads the comments, checking if the user has access (you can use the s2Member Advanced PHP Conditionals for that: Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals) and then load the comments if they have access or show a message (or nothing) if they don’t have access. |
|
Posted: Thursday Nov 8th, 2012 at 5:46 pm #31068 | |
![]() |
|
Hi Emmanuel, There might be a problem with the umask on your web hosting account. I suggest contacting your web hosting company to see if they can fix it for you. You can try changing the permissions on the folder yourself by taking a look at what permissions are assigned to the wp-content/plugins/s2member-files/ folder and copying those. Also, please keep in mind that for this line:
you must use the full path to the folder, not the relative path. You cannot use /wp-content/uploads/members/. You must use the full path, such as /home/username/www/wp-content/uploads/members/. If you don’t know the full path, you can get that from your web hosting company. |