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.

About: Sarah Hills

Sorry, I've not written a description yet. I'll get to it soon!


My Latest Replies (From Various Topics)

Viewing 25 replies - 1 through 25 (of 26 total)
Author Replies
Author Replies
Posted: Tuesday Feb 12th, 2013 at 1:20 pm #41578

Hi Jason,

Many thanks for the reply and the code you supplied. Sorry for late reply – for some reason I didn’t get the email notification for your update.

I will try the code out and report back with the results…

Thanks,
Sarah

Posted: Wednesday Jan 30th, 2013 at 4:21 am #39995

Thanks Bruce.

The website is using s2Member’s Pro Forms.

So am I right in thinking that the Pro Forms don’t have an effective built in anti-(human)-spam mechanism, but also are unlikely to integrate with 3rd Party anti-spam plugins?

If so, it seems like this is an area that needs some urgent attention. Unless of course there is another solution that I have missed.

Given that the plugin I mention above is able to check against the Akismet DB for registrations, I would assume that s2Member could do something similar??

Thanks,
Sarah

  • This reply was modified 3 years, 11 months ago by  Sarah Hills.
Posted: Monday Jan 28th, 2013 at 5:10 am #39761

Have been doing some more digging. From what I can make out, Akismet does not check for spam user registrations.

There is however a plugin Stop Spammer Registrations Plugin which does appear to check against the Akismet DB (as well as others) for registrations as well as other stuff.

Does anyone have any experience of using this with S2Member? Or any suggested alternatives?

Thanks

Posted: Thursday Dec 13th, 2012 at 1:10 pm #34479

Also… just noticed that with js disabled, I can submit my form without checking my ‘required’ terms and conditions checkbox??

Seems like this is a bit of a loophole to me?

Thanks,
Sarah

Posted: Tuesday Nov 27th, 2012 at 8:15 am #32697

Ok, I’ve worked out what’s causing the issue – I have multiple pro forms on a single page (which I understand S2 doesn’t currently support??). They are both hidden by default, and the user clicks one of two buttons & the corresponding form is shown.

The only difference between the two forms is the level users are registered at. Is there any way of using a single form, but dynamically changing the level depending on which button the user selects?

I don’t want to have to re-direct to another page if I can help it…

Thanks

  • This reply was modified 4 years, 1 month ago by  Sarah Hills.
Posted: Monday Nov 26th, 2012 at 4:54 pm #32644

Ignore that, just sent a message via the contact form…

Posted: Monday Nov 26th, 2012 at 4:51 pm #32642

Sure – can I send it to you in a PM/email? Let me know how…

Thanks,
Sarah

Posted: Thursday Nov 8th, 2012 at 9:47 am #31030

Thanks Raam :o)

Posted: Wednesday Nov 7th, 2012 at 12:40 pm #30921

Thanks for the pointer… for anyone else that might be looking to do the same thing:

add_action( 'set_user_role', 'add_role_change_note', 10, 2);

function add_role_change_note( $user_id, $new_role ) {
  c_ws_plugin__s2member_user_notes::append_user_notes ($user_id, "User role created as/changed to " . $new_role .': '. date ("D M j, Y g:i a T"));
}

Note this appends the note to user record when added via S2Member, demoted via S2Member, or edited in wp-admin. It doesn’t add the note when the user is added via wp-admin.

Posted: Wednesday Nov 7th, 2012 at 7:46 am #30868

Hi Cristian,

Thanks for your help!

Re. 1 – I should have been more clear – the reason I’m wary of copying whole classes over to MUplugins is that I have lots of client websites to maintain, so if at all possible, I try and avoid anything that requires manual checking/upgrading at a later point. Is there any other way to add a user note, when the user account is first created and when the account type is changed?

2 – Thanks – I hadn’t realised the distinction between the two types of separator, that’s great!

Sarah

Posted: Tuesday Nov 6th, 2012 at 12:46 pm #30781

I think what Dan meant is that although the change to the email address isn’t (and shouldn’t be) made, the user is not informed of this fact – rather, they simply see the ‘Profile updated successfully.’ message.

To my mind, this should indeed be corrected as it’s v. misleading for most users!

Thanks,
Sarah

Posted: Friday Sep 28th, 2012 at 5:21 am #26816

Have looked into this a bit further, and wonder whether a custom profile edit page would be easier to achive with something like Gravity Forms.

According to this thread (member only access) on GF forums, this functionality is under development as part of their User Registration add-on. But…. no date!

On the same thread, someone has posted a customisation here: http://blog.fublo.net/2011/12/edit-wordpress-user-profiles-gravity-forms/. I’ve not tried it (& personally will probably stick to the default for now), but in case this helps anyone else…

Posted: Friday Sep 28th, 2012 at 5:17 am #26815

Further discussion in this post

Posted: Friday Sep 28th, 2012 at 5:15 am #26813

Further discussion in this post

Posted: Friday Sep 28th, 2012 at 4:55 am #26811

Thanks Cristian, just tested & that works great to change the ‘Additional Info’ text.

Although I think I’m going to have to end up hiding it with CSS anyway, as I’m trying to get a consistent appearance for the registration & profile edit forms… and the ‘Additional Info’ header doesn’t appear on the latter!

Thanks though for the pointer… hopefully it might be helpful to someone else.

Posted: Thursday Sep 27th, 2012 at 5:51 am #26659

Thanks again David – appreciate your time. I’m a bit wary of potentially removing the rest of the form processing though – not just for now, but in case it causes issues later down the line with upgrades etc.

I’m starting to think I’m just going to have to use the default layout for both registration and profile edit (they need to be somewhat consistent I think). Not great, but I don’t see any ‘upgrade-proof’ way around it.

Given this, is there any way of changing the ‘Additional Info’ label (I know as a last resort I can resort to hiding via CSS). To my mind it seems that this label should be outside of

%%custom_fields%%

similarly to how the label for the initial registration fields can be modified separate from the fields themselves.

Getting every so slightly frustrated with this… I love what S2 does on the whole, but it seems like something pretty obvious has been missed here? (Or perhaps I’m just an extra demanding user!!!)

Posted: Tuesday Sep 25th, 2012 at 12:10 pm #26444

Just done a quick test, and it seems not.

There must be some other way of modifying the Profile Edit form without overwriting the core files??

Any help appreciated…

Posted: Tuesday Sep 25th, 2012 at 12:07 pm #26442

Just found this thread which references the template used for the shortcode profile edit form:

2. This one handles the Shortcode [s2Member-Profile /]
/s2member/includes/classes/sc-profile-in.inc.php

However, Raam also says that

Keep in mind these are core files, so those changes will be overwritten when upgrading s2Member.

Is it possible to copy these to a theme directory & hence not have the changes overwritten when s2Member is upgraded?

Posted: Tuesday Sep 25th, 2012 at 12:01 pm #26441

I’m also trying to work this one out??

Posted: Tuesday Sep 25th, 2012 at 11:51 am #26440

Just tried this out & it works great thank you! Thanks for the v. clear instructions.

Any idea whether this would work for a custom profile update form too?? Just off to give it a go now…

Posted: Thursday Sep 20th, 2012 at 10:22 am #25953

Hi David,

Many thanks for this and for taking the time to reply.

I am planning to try this out early next week – will report back then as to how it goes!

Thanks,
Sarah

Posted: Thursday Sep 20th, 2012 at 9:17 am #25942

Yep, that works – thank you!

Posted: Thursday Sep 20th, 2012 at 6:42 am #25901

I think I worked out what was causing the problem… I had a ‘Read more’ tag inside the restricted content i.e.

[s2If current_user_can(access_s2member_level1)]
Restricted content here…
<!--more-->
More content here...
[/s2If] [s2If !current_user_can(access_s2member_level1)]

This seems to cause a problem with this (any?) shortcode. Does anyone know how I can create a shortcode which allows me to hide the content but also let the admin user include a read more tag within the restricted content (for logged in users)? This is what I have at the moment:

function hex_protected( $atts, $content = null ) {
     extract(shortcode_atts(array(
  	), $atts));
  	
    if (current_user_can("access_s2member_level1")){ 
      $html = $content;
    } else {
      $html = 'This content is for members only.  Please <a href="'.get_bloginfo('url').'/login/">log in</a> or <a href="'.get_bloginfo('url').'/membership/">register to join</a>.';
    } 	
    return $html;
}
Posted: Thursday Sep 20th, 2012 at 4:55 am #25887

Just following up on the shortcodes; I am now using something like the following to protect content:

[s2If current_user_can(access_s2member_level1)]
Restricted content here…
[/s2If] [s2If !current_user_can(access_s2member_level1)]
Please login to view this content.
[/s2If]

This works beautifully on the single post page, but doesn’t work on the posts index page (i.e. my main blog page). I’ve tried activating the ‘Alternative View Protection’ option (‘Filter ALL WordPress® queries; protecting all Alternative Views.’) which I thought would do the trick but it hasn’t??

Am I doing something wrong or is there another way around this?

Many thanks for your help
Sarah

Posted: Tuesday Sep 18th, 2012 at 11:58 am #25702

That’s great, thanks Eduan!

Viewing 25 replies - 1 through 25 (of 26 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.