Community Support Forums — WordPress® ( Users Helping Users ) — 2012-02-07T01:46:55-05:00 http://www.primothemes.com/forums/feed.php?f=4 2012-02-07T01:46:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17003&p=62333#p62333 <![CDATA[Re: Custom Coupon Codes]]> accept_coupons=1"0" but should be accept_coupons="1".

The affiliate tracking setting is wrong too. The suffix chars are just that, the suffix to know what part of the coupon code is the affiliate's ID. The default suffix is -A: so s2Member will know that what comes after that is the affiliate's ID.

You defined your coupon code under WP Admin -> s2Member -> Pro Coupon Codes -> Configuration. Now, under WP Admin -> s2Member -> Pro Coupon Codes -> Affiliate -> Suffix, you can leave the default -A: change it to something else if you prefer it.

Now, your affiliates 123 can use the share the coupon SAVE-25-A:123.

If you need to track this with some other script, like iDevAffiliate, you can enter that in the field WP Admin -> s2Member -> Pro Coupon Codes -> Affiliate -> Tracking.

I hope that helps.

Statistics: Posted by Cristián Lávaque — February 7th, 2012, 1:46 am


]]>
2012-02-06T15:50:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17055&p=62332#p62332 <![CDATA[Re: Custom registration fields missing]]> I would advise taking a look at this article just to rule it out.
viewtopic.php?f=36&t=14787

Statistics: Posted by Jason Caldwell — February 6th, 2012, 3:50 pm


]]>
2012-02-06T15:17:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2530&p=62331#p62331 <![CDATA[Re: RSS feeds not protected in Google Reader]]> Thanks for the follow-up.

1. Protect the category with s2Member.
See: Dashboard -> s2Member -> Restriction Options -> Categories.

2. Enable s2Member's Alternative View Protection for feeds.
See: Dashboard -> s2Member -> Restriction Options -> Alternative Views.

Statistics: Posted by Jason Caldwell — February 6th, 2012, 3:17 pm


]]>
2012-02-06T15:05:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17107&p=62330#p62330 <![CDATA[Re: Change profile custom fields values]]> Thanks for the heads up on this thread.

I would suggest this article to you as a primer as Hooks/Filters for WordPress.
http://codex.wordpress.org/Plugin_API#H ... our_Filter

The reason you're getting an empty array is because you're only requesting one function argument.

Try it like this please.
Code:
add_filter ("ws_plugin__s2member_during_profile_during_fields_display_custom_fields", "my_function", 10, 2);
function my_function ($bool, $vars = array ())
    {
        var_dump($vars);
      return $vars;
    } 

Statistics: Posted by Jason Caldwell — February 6th, 2012, 3:05 pm


]]>
2012-02-06T14:58:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17091&p=62329#p62329 <![CDATA[Re: Trouble purchasing license key]]> Thanks for the heads up on this thread.

10554 Filter Decline
This transaction cannot be processed.
The transaction was declined because of a merchant risk filter for AVS.
Specifically, the merchant has set to decline transaction when the AVS returned a no match (AVS = N).
In other words, we were unable to verify the supplied billing address with the one matching your credit card billing statement. Please check your billing statement and just be sure it's the same as the one you entered on-site. If you have any further trouble, please let us know.

Statistics: Posted by Jason Caldwell — February 6th, 2012, 2:58 pm


]]>
2012-02-06T14:46:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16510&p=62328#p62328 <![CDATA[Re: Flowplayer got error after s2member update to 111220]]> Hi there. Thanks for the follow-up in this thread.
~ I received your email as well.

Please check your email for my reply.

Statistics: Posted by Jason Caldwell — February 6th, 2012, 2:46 pm


]]>
2012-02-06T14:40:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17077&p=62327#p62327 <![CDATA[Re: User registration via WordPress API on non-multisite]]> Thanks for your inquiry.

Hmm, I'm not sure which comments they are referring to exactly. I can confirm though, s2Member does already make full use of the WordPress API for user registration, and the user_register Hook is what powers most of the s2Member registration process (i.e. this Hook is definitely fired each time a user/member/customer registers).

See file: /s2member/includes/classes/registrations.inc.php
Code:
/**
                * Configures all new Users.
                *
                * The Hook `user_register` is also fired by calling:
                * ``c_ws_plugin__s2member_registrations::ms_create_existing_user()`` and/or ``wpmu_create_user()``.
                *
                * This function also receives hand-offs from s2Member's handlers for these two Hooks:
                * `wpmu_activate_user` and `wpmu_activate_blog`.
                *
                * @package s2Member\Registrations
                * @since 3.5
                *
                * @attaches-to ``add_action("user_register");``
                *
                * @param int|str $user_id A numeric WordPress® User ID.
                * @param str $password Optional in most cases. A User's plain text Password. If unspecified, attempts are made to collect the plain text Password from other sources.
                * @param array $meta Optional in most cases. Defaults to false. An array of meta data for a User/Member.
                * @return null No return value. Returns `null` in possible every scenario.
                *
                * @todo Impossible to delete cookies when fired inside: `/wp-activate.php`?
                */
                public static function configure_user_registration ($user_id = FALSE, $password = FALSE, $meta = FALSE) 

Statistics: Posted by Jason Caldwell — February 6th, 2012, 2:40 pm


]]>
2012-02-06T14:33:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16997&p=62326#p62326 <![CDATA[Re: Maximum Members - Practical Limitations]]> Thanks for the heads up on this thread.

This query you reported looks like it comes from an older version of WordPress? Starting with WordPress v3.1, this was deprecated in favor of WP_User_Query.

Please confirm which version of WordPress that you were running.

If it was prior to WordPress v3.1, I would highly recommend that you upgrade. There were several improvements in v3.1 in this respect, making WordPress a more solid choice for a large userbase.

Each site is unique, but I can tell you that I've seen WordPress/s2Member power sites with as many as 30K users. Beyond that you will likely need a database and object cache, along with lots of RAM. Of course, much of this depends on how active your users are, and on what other plugins you're running.

From older version of WordPress,
now inside: wp-admin/includes/deprecated.php
Code:
    function prepare_query() {
        global $wpdb;
        $this->first_user = ($this->page - 1) * $this->users_per_page;

        $this->query_limit = $wpdb->prepare(" LIMIT %d, %d", $this->first_user, $this->users_per_page);
        $this->query_orderby = ' ORDER BY user_login';

        $search_sql = '';
        if ( $this->search_term ) {
            $searches = array();
            $search_sql = 'AND (';
            foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col )
                $searches[] = $wpdb->prepare( $col . ' LIKE %s', '%' . like_escape($this->search_term) . '%' );
            $search_sql .= implode(' OR ', $searches);
            $search_sql .= ')';
        }

        $this->query_from = " FROM $wpdb->users";
        $this->query_where = " WHERE 1=1 $search_sql";

        if ( $this->role ) {
            $this->query_from .= " INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id"; 


WP_User_Query introduced in WordPress v3.1
http://codex.wordpress.org/Class_Refere ... User_Query

Statistics: Posted by Jason Caldwell — February 6th, 2012, 2:33 pm


]]>
2012-02-06T14:07:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17020&p=62325#p62325 <![CDATA[Re: Custom Paypal Button - Unexpected txn_type/status' error]]> Thanks for the heads up on this thread.

It sounds like you are trying to custom code some things to make this work in a specific way. You might take a look at this method provided by s2Member, which is documented here: http://www.s2member.com/codex/stable/s2 ... _link_gen()

For example... you might create a script that generates access links to Specific Posts/Pages in clever ways, and then integrate it into the larger picture that you're trying to customize.
Code:
<?php
$post_id 
= 3;
$access_link = c_ws_plugin__s2member_sp_access::sp_access_link_gen($post_id);
wp_redirect($access_link); exit();
?>

Statistics: Posted by Jason Caldwell — February 6th, 2012, 2:07 pm


]]>
2012-02-06T14:02:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6204&p=62324#p62324 <![CDATA[Re: Members not degrading after failed payments]]> Thanks for the follow-up with these log entries.

I can see here what the issue is. s2Member is stopping on a failure to locate the item_number associated with the original transaction.

I suspect this is because your customer originally purchased access to your site while you were running an older version of s2Member. Unfortunately, this particular type of IPN that PayPal sends to s2Member, does not include the rp_invoice_id, or the PROFILEREFERENCE. This forces s2Member to keep a copy of this data locally, so it can reference this vital information and process the EOT.

s2Member started keeping this information locally, starting with version 110927. So if this particular customer signed up originally under a release prior, this could be the result. Unfortunately, there's not much we can do about this now. PayPal changed the rules on us a bit, and we had to adapt accordingly. Members that signed up in earlier versions of s2Member may fail to expire in certain circumstances. Yours being one of these. This issue affected certain types of transactions where the storage of IPN Signup Vars was required by s2Member in order to fulfill its obligation later on, in being able to properly terminate access upon receipt of this IPN from PayPal. Newer versions of s2Member resolve this issue.

If you have several members this is affecting, my suggestion would be a manual EOT Time through your Dashboard. In your Dashboard you can set the EOT Time for certain customers, and s2Member will be perfectly capable of processing EOTs at the times you set, regardless of this issue. Of course, for any customer that originally paid you under a release of s2Member v110927+, you won't need to do this.
Code:
  array (
    0 => 'IPN received on: Tue Jan 31, 2012 10:41:54 am UTC',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
  ),
  'subscr_gateway' => 'paypal',
  'subscr_id' => 'I-NPR3...',
  'period1' => '0 D',
  'period3' => '1 D',
  'item_number' => false,
)

Statistics: Posted by Jason Caldwell — February 6th, 2012, 2:02 pm


]]>
2012-02-06T13:24:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14359&p=62323#p62323 <![CDATA[Re: slow resource loads]]> Statistics: Posted by Jason Caldwell — February 6th, 2012, 1:24 pm


]]>
2012-02-04T16:51:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17065&p=62319#p62319 <![CDATA[Re: Specific access and post types?]]>
Custom capabilities are equivalent to "special rights" a user can purchase regardless of its restriction level, like buying tickets to special rides in an amusement park.

Custom capabilities are not stored like categories, so any ccap could be purchased by a user if we created a button for it, and therefore, the PayPal buttons to purchase those could be created programmatically. We could have a PayPal button on each page that sells a capability named after the page ID, and check for each page if that ID capability was purchased.

The procedure would be the following:
- Put some conditionnal code that checks if the user has capability "show_[show id]"
- If he does, show the show. If not, put a message with a PayPal button
- After the user has paid for the show, he is prompted to login or create his account.
- The user can now watch the show.

Am I correct so far?

Statistics: Posted by n1c0_ds — February 4th, 2012, 4:51 pm


]]>
2012-02-04T15:44:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17065&p=62318#p62318 <![CDATA[Re: Specific access and post types?]]> Statistics: Posted by n1c0_ds — February 4th, 2012, 3:44 pm


]]>
2012-02-04T13:57:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17124&p=62317#p62317 <![CDATA[Re: Performance issues]]>
Raam Dev wrote:
I will escalate this to the lead developer to see if he can shed some light. In the meantime, this information may be helpful: viewtopic.php?f=4&t=14359&p=32934#p33441


"if your WordPress installation has MANY plugins, or is otherwise slow for one reason or another, it can appear that s2Member itself is lagging"

As I mentioned above, in this case I ran a test on my test site which had two plugins enabled: s2Member and P3 Plugin Profiler.

I'll try some of the other tips, thanks.

Statistics: Posted by GDLTD — February 4th, 2012, 1:57 pm


]]>
2012-02-04T12:54:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17162&p=62316#p62316 <![CDATA[Re: Free access to a large group of new users]]> Statistics: Posted by s_d_p — February 4th, 2012, 12:54 pm


]]>
2012-02-04T11:50:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17168&p=62315#p62315 <![CDATA[immediate failure]]> I downloaded the s2member plugin, unzipped it, FTPed it to the wp-content/plug-ins directory, went to the WP dashboard and Activated it. Went to the Setup link and got a 403 Forbidden Page error. The s2member options menu shows up on the left of the dashboard, but no matter what I click on that, I get the same error :(

Any help?
Thanks in advance.

Statistics: Posted by Russ Smith — February 4th, 2012, 11:50 am


]]>
2012-02-04T11:46:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17167&p=62314#p62314 <![CDATA[Re: Restrict a text from all the posts]]> Statistics: Posted by cristiandark — February 4th, 2012, 11:46 am


]]>
2012-02-04T11:36:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17167&p=62313#p62313 <![CDATA[Re: Restrict a text from all the posts]]>
I'm gonna give you some examples so that you can use them:
The following code will show you where to put the level 4 content:
Code:
[s2If current_user_is(s2member_level4)]
    Some premium content for Level 4 Members only. This is where the download link will go.
[/s2If]
This code will only show the download link to level 4 members. You can modify the number on top to protect content on different levels.

Hope this is understandable. :)

Statistics: Posted by Eduan — February 4th, 2012, 11:36 am


]]>
2012-02-04T11:21:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17167&p=62312#p62312 <![CDATA[Re: Restrict a text from all the posts]]> Statistics: Posted by cristiandark — February 4th, 2012, 11:21 am


]]>
2012-02-04T11:15:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17167&p=62311#p62311 <![CDATA[Re: Restrict a text from all the posts]]> WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals.

You can find the PHP versions under WP Admin -> s2Member -> API / Scripting -> Advanced/PHP Conditionals. For these you will need the Exec-PHP plugin or any other WordPress plugin that allows you to insert PHP into posts/pages.

Hope this helps. :)

Statistics: Posted by Eduan — February 4th, 2012, 11:15 am


]]>
2012-02-04T11:08:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17167&p=62310#p62310 <![CDATA[Restrict a text from all the posts]]>
Example: I want to hide "Download" text, the "Download" text will contain a url to the a file. I've tryed with URI but is not working. If download text have the url to http://85.25.000.00/download/february/test-file.mp3 i puttet on URI /download/ also /download, /february/ , etc. And is still visible.

So is there any solution to hide Download from guest, and to be avanible only to Leve 4 users? And also to be done automatically, without addig [private][/private] and things like that. Sorry for my bad english :)

Statistics: Posted by cristiandark — February 4th, 2012, 11:08 am


]]>
2012-02-04T06:30:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17166&p=62308#p62308 <![CDATA[Sell Access to each Category]]>
I have a website where I offer digital information in the form of videos and articles.

Let's say I have 20 categories - I am planning to sell access to each category separately. My main website is simply a store front, all my categories containing the articles and videos are "hidden" by not being displayed on the navigation menus or home page. Therefore, the only way customers can access these is for them to have the correct link to the category.

My question is, if a customer buys access to Category 2 am I able to automatically send them an email link to Category 2. If so, what about if they bought access to several categories is one transaction, would I then be able to send multiple emails with links to Category 2, 5 and 10 for example?

Does anyone know if this is possible? If so, how? If not, do you know another way I could accomplish this? Any other software etc, is Paypal alone capable of this?

Any advice would be excellent,
Thanks
Rich
:D

Statistics: Posted by uncleslinky — February 4th, 2012, 6:30 am


]]>
2012-02-04T06:10:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17078&p=62307#p62307 <![CDATA[was Re: S2 Member registration...Eventbrite & Event Espresso]]>
Okay, the dev person seems to have disappeared, so I need to find someone else to help me with things.
But in the meantime things are changing with the client - they are now looking at these two services:

http://eventespresso.com/features
http://wordpress.org/extend/plugins/eve ... -calendar/

Are there any problems with these that you know of in terms of S2 Member? I am also asking the same thing of the theme author, because the first Events plugin I used may be the one that's causing the problem...

Thanks for your advice on this,

best,
Terri

Statistics: Posted by tokyoterri — February 4th, 2012, 6:10 am


]]>
2012-02-04T05:33:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6357&p=62306#p62306 <![CDATA[Re: Got email from Paypal, Have no clue. That's why I ask yo]]> Statistics: Posted by Deyson — February 4th, 2012, 5:33 am


]]>
2012-02-04T05:24:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17083&p=62305#p62305 <![CDATA[Re: Deny Usernames with Special Characters]]>
I do not have the pro version of s2member. Does the pro version allow for any letters to be used?

I do not any example as it is my clients that complain they can't register, and when I tell them not to use capitals, they reply that this WAS the problem, they were using capitals.

Back to the point: How can I add a note to that page? Or, will the problem be solved if I buy the pro version?

Statistics: Posted by dimitriosvasileiou — February 4th, 2012, 5:24 am


]]>