latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Raam Dev

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 2,376 through 2,400 (of 2,567 total)
Author Replies
Author Replies
Posted: Friday Mar 9th, 2012 at 5:53 pm #7804
Raam Dev
Username: Raam
Staff Member

Hi Kevin,

I’m not sure what you’re referring to, as s2Member doesn’t add any buttons to the WordPress TinyMCE editor. Could you post a screenshot?

Posted: Friday Mar 9th, 2012 at 5:47 pm #7803
Raam Dev
Username: Raam
Staff Member

Hello Ohm,

You’ll need to make some customizations to achieve that exact functionality, but yes, it’s possible.

To limit the amount of customization, I would recommend requiring visitors to register before downloading files and then have them login to your site and choose from the downloads they want.

With s2Member, you can restrict WordPress posts/pages to specific levels. In your scenario, you could create a post/page that lists all of the downloads and then restrict that page to Level 0 (free subscriber). Then when a user registers and logs in, they will gain access to that download page.

Posted: Friday Mar 9th, 2012 at 5:42 pm #7802
Raam Dev
Username: Raam
Staff Member

Hello,

The Pro-Forms can be used for both recurring and non-recurring (Buy Now) transactions. You’ll see all the Pro-Form generators listed in the PayPal Pro-Forms section: Dashboard -› s2Member® -› PayPal® Pro Forms

Posted: Friday Mar 9th, 2012 at 5:39 pm #7800
Raam Dev
Username: Raam
Staff Member
Posted: Friday Mar 9th, 2012 at 5:27 pm #7797
Raam Dev
Username: Raam
Staff Member

Hi Ryan,

WordPress requires a username, however you can work around this by dynamically generating a username based on the email address and then hide the Username field (so when the user registers, they will actually get a username — they just won’t know what it is and they won’t see that field).

Then, you can use the WP Email Login plugin to allow your users to login with their email address.

You’ll also need to tweak any emails that go to the user so they don’t mention the username.

Please see this thread from the old forum that explains how I achieved this: http://www.primothemes.com/forums/viewtopic.php?f=4&t=15672&p=49082#p49082

To do something similar on the Pro-Forms during checkout, you can hook into the Pro-Form as follows (this would go in a .php file inside your mu-plugins folder, as described in the aforementioned thread):

<?php
add_action ("ws_plugin__s2member_pro_before_sc_paypal_form", "s2_customize_pro_form", 1000);
function s2_customize_pro_form ($vars = array())
    {
	/*  Don't pre populate when/if the Pro Form has just been POSTd, and/or if it's a Modification Form 
		with modify="1", because s2Member already pre populates Pro Forms in that scenario, with the 
		User's existing Email and Username. */
	if(empty ($_POST["s2member_pro_paypal_checkout"]) && empty($vars["attr"]["modify"])) {
?>
        <script type = "text/javascript">
		function getParameterByName(name)
		{
		  name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
		  var regexS = "[\\?&]" + name + "=([^&#]*)";
		  var regex = new RegExp(regexS);
		  var results = regex.exec(window.location.href);
		  if(results == null)
		    return "";
		  else
		    return decodeURIComponent(results[1].replace(/\+/g, " "));
		}
		
            (function ($) /* Wraps this `$ = jQuery` routine. */
                {
                    $.fn.swapWith = function (to) /* Utility extension for jQuery. */
                        {
                            return this.each (function ()
                                {
                                    var $to = $ (to).clone (true), $from = $ (this).clone (true);
                                    $(to).replaceWith ($from), $ (this).replaceWith ($to);
                                });
                        };
                    /**/
                    $(document).ready (function () /* Handles email-to-username on keyup. */
                        {	
								
						/* Generate random number to append to username, 
                        hopefully making it unique (yes, this isn't perfect!) */
                        var randomNum = Math.ceil(Math.random()*999);

                        if($('input#s2member-pro-paypal-checkout-email').length) {
							var email = 'input#s2member-pro-paypal-checkout-email';
							var login = 'input#s2member-pro-paypal-checkout-username';
							$('#s2member-pro-paypal-checkout-form-username-div').hide();
						} else {
							var email = 'input#s2member-pro-paypal-registration-email';
							var login = 'input#s2member-pro-paypal-registration-username';
							$('#s2member-pro-paypal-registration-form-username-div').hide();
						}
						

                        /* Fill hidden username field with first part of email address
                            and append randomNum to hopefully make it unique. */
                        $ (email).keyup (function ()
                            {
                                $(login).val ($.trim ($ (email).val ().split (/@/)[0].replace (/[^\w]/gi, '')) + randomNum.toString());
                            });								
                        });
                }) (jQuery);
        </script>
<?php
		}
    }
?>
Posted: Friday Mar 9th, 2012 at 5:08 pm #7785
Raam Dev
Username: Raam
Staff Member

Hi Bendix,

There is no “button version” of the Pro-Forms. However, the Pro-Forms should automatically fill in with the existing users information during checkout; there should be very little (if any) input needed from the user.

Also, the Pro-Forms do not require PayPal Pro; see below:

*PayPal® Pro is NOT Absolutely Required* s2Member is very flexible. It is now possible to integrate Pro Forms without a PayPal® Pro account, whereby the enhanced Form Shortcodes that s2Member provides can be integrated ONLY with PayPal® Express Checkout. In other words, if you get declined for PayPal® Pro service, you can still use s2Member Pro Forms. Ask PayPal® to activate Express Checkout for you. ( it’s free ). Once Express Checkout is enabled, you will have access to your PayPal® API Credentials. Log into your PayPal® account, and navigate to Profile -> API Access (or Request API Credentials). You’ll choose ( Request API Signature ). Now … here is the tricky part; whenever you generate a Pro Form Shortcode with s2Member, be sure to change accept=”paypal,visa,mastercard,amex,discover,maestro,solo” to just accept=”paypal”; thereby excluding the on-site credit card processing functionality; which is available only with PayPal® Pro.

Posted: Friday Mar 9th, 2012 at 3:46 pm #7747
Raam Dev
Username: Raam
Staff Member

You’re most welcome! :)

Posted: Friday Mar 9th, 2012 at 3:46 pm #7746
Raam Dev
Username: Raam
Staff Member

Hi Eric,

A quick clarification: I wasn’t suggesting that you “deactivate” the theme; I was suggesting that you change your active theme to one of the defaults that comes with WordPress (e.g., TwentyEleven). However, if you’re using the s2Clean Theme, then it’s most likely not the theme that’s causing the problem.

A sever-side cache only exists if you’re running a caching plugin in WordPress (such as QuickCache or WP SuperCache). If you’re not running a caching plugin, you can ignore that suggestion.

It could be a problem with mod_security on your server. Could you please try the suggestion here related to adding SecFilterEngine Off and SecFilterScanPOST Off to an .htaccess file in the web root. : Knowledge Base » Mod Security, Random 503/403 Errors

Posted: Friday Mar 9th, 2012 at 3:41 pm #7745
Raam Dev
Username: Raam
Staff Member

In that case I would suspect a conflicting plugin. Have you tried disabling all other plugins?

Posted: Thursday Mar 8th, 2012 at 8:14 pm #7676
Raam Dev
Username: Raam
Staff Member

Hi Dina,

That would be in Dashboard -› s2Member® -› API / Notifications -› Payment Notifications.

Posted: Thursday Mar 8th, 2012 at 7:50 pm #7669
Raam Dev
Username: Raam
Staff Member

Hi Roger,

You can do that by redefining the function that sends the new user email.

First, you’ll need to disable the existing function, wp_new_user_notification() by creating the following file and adding the code below: /wp-content/mu-plugins/disable-new-user-notify.php

<?php
// Disable wp_new_user_notification() so we can 
// create our own custom function in functions.php
if( !function_exists('wp_new_user_notification') ) {
	function wp_new_user_notification(){}
}
?>

Now inside your theme’s functions.php file (e.g., /wp-content/themes/theme_name/functions.php), you can add a function like the following:

add_action ("ws_plugin__s2member_during_configure_user_registration", "my_email_function");
function my_email_function ($vars = array ())
{
	$email = $vars["email"];
	$first_name = $vars["fname"];
	$last_name = $vars["lname"];
	$full_name = $vars["name"];
	$username = $vars["login"];
	$password = $vars["pass"];
	$level = $vars["level"];

	$from = "admin@example.com";
	$subject = "Your username and password";

	if($level == "0") {
		$message = "Username: " . $username . "\nPassword: " . $password . "\nName: " . $full_name. "\nEmail: " . $email;
	}
	elseif($level == "1") {
		$message = "Username: " . $username . "\nPassword: " . $password . "\nName: " . $full_name. "\nEmail: " . $email;	
	}
	elseif($level == "2") {
		$message = "Username: " . $username . "\nPassword: " . $password . "\nName: " . $full_name. "\nEmail: " . $email;	
	}	
	else { // default message if none of the above levels match
		$message = "Username: " . $username . "\nPassword: " . $password . "\nName: " . $full_name. "\nEmail: " . $email;		
	}


   mail ($email, $subject, $message, "From: $from\r\nContent-Type: text/plain; charset=utf-8", "-f $from");
}
  • This reply was modified 4 years, 10 months ago by  Raam Dev. Reason: Revised code
  • This reply was modified 4 years, 10 months ago by  Raam Dev.
  • This reply was modified 4 years, 10 months ago by  Raam Dev.
  • This reply was modified 4 years, 10 months ago by  Raam Dev.
Posted: Thursday Mar 8th, 2012 at 7:01 pm #7667
Raam Dev
Username: Raam
Staff Member

You’re most welcome! Thank you for the KUDOS, Zets! :)

Posted: Thursday Mar 8th, 2012 at 7:16 am #7614
Raam Dev
Username: Raam
Staff Member

Hi Angela,

Does the EMail Log plugin show the New User email being sent by WordPress? If not, can you please enable logging (WP Admin -> s2Member -> PayPal Options -> PayPal Account Details -> Enable Logging Routines?), conduct another test, and then share any relevant log entires related to the transaction(s) in question? Please x-out any private information before posting the logs here (e.g., email addresses).

Also, can you verify that you’re running the latest versions of WordPress and s2Member?

  • This reply was modified 4 years, 10 months ago by  Raam Dev.
Posted: Thursday Mar 8th, 2012 at 7:11 am #7613
Raam Dev
Username: Raam
Staff Member

Lee,

Could you please enable logging (WP Admin -> s2Member -> CCBill Options -> CCBill Account Details -> Enable Logging Routines?), conduct another test, and then share any relevant log entries from /wordpress/wp-content/plugins/s2member-logs related to the transaction(s) in question? Please x-out any private information before posting here (e.g., email addresses).

Posted: Thursday Mar 8th, 2012 at 7:05 am #7612
Raam Dev
Username: Raam
Staff Member

Hi Zets,

Please see below:

1. So you’re saying that we can sell products with S2M via PayPal button. This is also true for downloadable/digital content. Can you explain how it works? Are products listed in tables? Can we track what products are sold and how many copies inside S2M administration?

s2Member can sell downloadable/digital content through the sale of Specific WordPress Posts/Pages. You provide the download link on a specific WordPress post/page (s2Member can protect downloads from being reused as well) and then visitors can purchase those posts/pages. After they’ve made the payment, they will receive an email with a special URL that gives them limited access to that post/page (depending on what access you’ve defined).

While s2Member has many shopping cart features, it’s designed as a membership plugin for WordPress. There are no separate tables for products and it’s not possible to track within s2Member how many products were sold. We’re working on improving this functionality in the next major release of the plugin.

2. Can S2M help us protect video stream from downloading with programs like Real Player and similar programs that people use for downloading video files?

s2Member supports real-time streaming through Flash along with several fallback options if the real-time streaming doesn’t work for the visitor. If you force real-time streaming and leave out the fallback options, you can prevent people from downloading the videos. Please see Video » s2Member® File Downloads (Amazon S3/CloudFront/JW Player) for more details.

3. I’m sure that I’ve red somewhere on your site that S2M supports recurring payment for affiliates. If this is true, can you please provide more info on how this works?

s2Member supports recurring payments, yes, but s2Member does not have an affiliate system. The recurring payments option is designed for members who signup through s2Member for access to some content on the site.

4. About S2M/bbPress/BuddyPress integration. I gues those plugs have to be instaled where S2M is and not on subdomain/subdirectory. But what if we activate S2M on child blog/site together with those two plugins? Will their integration be possible?

While s2Member is compatible with WordPress Multisite Networking, the sites within a WordPress network are separate and not interconnected. That means you cannot share users, logins, or other data across the sites.

Please see the following from WordPress.org:

The sites in a multisite network are separate, very like the separate blogs at WordPress.com. They are not interconnected like things in other kinds of networks (even though plugins can create various kinds of interconnections between the sites). If you plan on creating sites that are strongly interconnected, that share data, or share users, then a multisite network might not be the best solution.

The s2Member Multisite feature allows you to offer the s2Member plugin to sub-sites, giving your sub-sites the ability to setup and use s2Member on their own. Things like access restrictions on one domain are not shared across domains (again, the WordPress Multisite feature itself isn’t designed to work like that). When you upgrade s2Member on the primary site, the s2Member plugin is automatically updated for all your sub-sites.

Since the s2Member plugin availability is extended to the sub-sites, and the plugin on each site would operate independently from each other, you’d need to install bbPress/BuddyPress separately on each of the sub-sites and then integrate it with s2Member.

Posted: Wednesday Mar 7th, 2012 at 11:02 pm #7599
Raam Dev
Username: Raam
Staff Member

Hi Phillip,

s2Member does not currently have any sort of daily reporting functionality. However, EOT reminders (notifications of when a member is going to expire) is something we have in the works for the next major release of the plugin.

You could certainly write your own plugin that extracts the member information from the database and then generates a report. The data you’ll need to extract can be found in the wp_usermeta table. (You’ll want to search for rows that begin with a meta_key of wp_s2member.)

Posted: Wednesday Mar 7th, 2012 at 10:54 pm #7598
Raam Dev
Username: Raam
Staff Member

Hi Joe,

s2Member does not keep a running log of user logins or show a history of logins/access. This is something we will be looking to possibly include in the next major release of the plugin.

Posted: Wednesday Mar 7th, 2012 at 10:52 pm #7597
Raam Dev
Username: Raam
Staff Member

Hi Eric,

I’ve only seen that problem caused by conflicting plugins and/or themes that contain conflicting JavaScript. It can also occur if the browser’s cache of the JavaScript files somehow becomes corrupt or if there’s a server-side cache that’s holding a corrupt copy of the page.

The things to try in that case would be clearing your browser cache, clearing any server-side cache you may be running with a plugin, disabling all plugins except s2Member, and switching to the default WordPress theme.

If none of those work, then I would suspect either malware on your local computer that’s causing issues with your browser or something strange going on with the plugin files themselves on your server or even a problem with the server configuration.

Posted: Wednesday Mar 7th, 2012 at 2:01 pm #7566
Raam Dev
Username: Raam
Staff Member

Hi Zets,

There are several features you describe that can be achieved with s2Member (coupon codes, premium memberships, recurring payments, selling digital downloads), however there are many features that your scenario would require lots of custom coding and/or integration with other plugins to achieve (both of which we do not support).

1. What Affiliate solution you suggest to use so we can track from which child site/blogs did new premium member came from? Plugin or something. Please don’t say iDev or ShareASale because it is way too complicated for us to maintain another web service account.

s2Member does not have any built-in affiliate system, but we do support iDevAffiliate and ShareASale. Your scenario sounds like it involves heavy integration between the membership plugin on the main site, an affiliate system, and possibly other plugins on the sub-sites. In this case, s2Member would not be an all-in-one solution for your scenario.

2. Can we force our visitors to use coupons or some other code before their register to our site? For example, if there isn’t an affiliate solution that would work in this situation we would assign a coupon code to every child blog/site owner/admin so whenever someone gets forwarded from their site to main site he would have to use that coupon code to register. That way we would know which new member’s payment we should split with the particular site admin.

It’s not currently possible to ‘force’ the usage of a coupon during registration. Also, the integration between the coupon and the making of the correct affiliate payment to the sub-site admin would require custom integration with whatever affiliate software makes those payments.

3. Maybe this has nothing to do S2M but I’ll ask anyway. As I’ve mentioned above, site admins would also sell digital downloads. Is there a way to track those sales so we can split payed amount between site admin and us? Is there a shopping system that works well with S2M?

s2Member allows the sale of digital downloads through the sale of Specific Pages/Posts (see Dashboard -› s2Member® -› PayPal® Buttons -› Specific Post/Page (Buy Now) Buttons) and you can use the s2Member Tracking API (see Dashboard -› s2Member® -› API / Tracking) to alert a 3rd-party system (such as an affiliate system; we support iDevAffiliate and ShareASale) about those transactions.

Again, s2Member is not an affiliate system, so the splitting of payments and payments to affiliates would need to be handled elsewhere.

4. Do you have any other suggestion on how to setup this kind of website?

Based on your requirements it sounds like you need more of an affiliate system than a membership system. As you’re already aware, s2Member isn’t designed to restrict access to content on sub-domains (due to the way WordPress Multisite works, there is no heavy integration between sub-sites).

Posted: Wednesday Mar 7th, 2012 at 1:36 pm #7565
Raam Dev
Username: Raam
Staff Member

Hi James,

You can find an example of the CSV export/import fields here: Pre Sale FAQs » Can I import Users/Members from software I was using previously?

While it is possible to export/import custom fields, there are no options for filtering what gets exported. You’ll need to export all users and then do your sorting/filtering from within a spreadsheet program.

Posted: Wednesday Mar 7th, 2012 at 1:33 pm #7564
Raam Dev
Username: Raam
Staff Member

You’re most welcome! Happy to help. :)

Posted: Wednesday Mar 7th, 2012 at 1:32 pm #7563
Raam Dev
Username: Raam
Staff Member

Thank you for the suggestion, Jean-Michel. That’s a great idea!

Posted: Wednesday Mar 7th, 2012 at 1:30 pm #7562
Raam Dev
Username: Raam
Staff Member

Hi Erin,

Please try following these steps: Knowledge Base » Troubleshooting Email Delivery Problems

Posted: Wednesday Mar 7th, 2012 at 1:29 pm #7561
Raam Dev
Username: Raam
Staff Member

Hi Stephen,

– Are you using any URI Access Restrictions? (Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions)
– Do you have Open Registration turned on or off? (Dashboard -› s2Member® -› General Options -› Open Registration)
– Have you tried changing the URL Shortening Service to something other than TinyURL? (Dashboard -› s2Member® -› General Options -› URL Shortening Service)

Posted: Wednesday Mar 7th, 2012 at 1:21 pm #7559
Raam Dev
Username: Raam
Staff Member

Hi Penny,

I’m not sure which image you’re referring to. Could you take a screenshot and/or describe it some more?

Viewing 25 replies - 2,376 through 2,400 (of 2,567 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.