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.

David Welch


My Latest Replies (From Various Topics)

Viewing 25 replies - 51 through 75 (of 407 total)
Author Replies
Author Replies
Posted: Friday Dec 28th, 2012 at 6:11 pm #35668
David Welch
Username: dwbiz05

FYI this loads correctly for me…

Dave

Posted: Friday Dec 28th, 2012 at 6:02 pm #35667
David Welch
Username: dwbiz05

How are you handling the JVZoo integration with s2member since it’s not a standard gateway? (at least not in my version)

I would think that you should be able to hack whatever plugin or script you are using to process the notification from jvzoo to do this.

You are right that it is possible to do it that way, but s2member is built to work with the gateways it currently supports and it assumes that the user will be new or logged in for upgrades and that is how it manages everything.

If you have a special script the person who wrote it should be able to make this adjustment for you.

Dave

Posted: Friday Dec 28th, 2012 at 12:45 pm #35644
David Welch
Username: dwbiz05

They need to be logged in if they are adding ccaps to their account. Otherwise s2member doesn’t know it’s a current member and won’t pass their user id along with the payment info.

That’s my first thought without seeing the way you have it set up.

Dave

Posted: Friday Dec 28th, 2012 at 12:43 pm #35643
David Welch
Username: dwbiz05

Yes, it is possible, but you will have to do some custom coding.

I basically did this with my BASIC shopping cart plugin… feel free to check out the source code and hack it up! lol

http://www.s2member.com/forums/topic/user-selected-cc-ad-ons-extension-beta/

Dave

Posted: Friday Dec 28th, 2012 at 12:31 pm #35639
David Welch
Username: dwbiz05

You might try contacting them with this info via this contact form as well:

https://www.s2member.com/contact/?s2-ssl=yes

Dave

Posted: Friday Dec 28th, 2012 at 12:27 pm #35636
David Welch
Username: dwbiz05

See that’s my concern with a report like this. If they just look through your source files and don’t actually test the site, then they could be making mistakes. See, s2member typically uses wordpress database interaction which (to my understanding) is already protected. However, if this scanning type doesn’t recognize that, then it would flag it.

I would be interested in seeing some examples… hopefully Jason or someone will see this and get the info and let us know the status.

Thanks,

Dave

Posted: Friday Dec 28th, 2012 at 12:20 pm #35632
David Welch
Username: dwbiz05

Does the report show an actual sql injection they tried and what was returned?

Just wondering what they consider a “flaw” and how they come up with that.

Also, did you make sure that s2member was the only thing functioning? No special themes or plugins?

Dave

  • This reply was modified 4 years ago by  David Welch.
Posted: Friday Dec 28th, 2012 at 12:14 pm #35629
David Welch
Username: dwbiz05

Have you tried using the s2member->includes->translations folder (there are instructions in there).

That would be the easiest I think if you can figure it out.

From the .txt file:

== Translations ==

s2Member and s2Member Pro are now equipped with support for front-end translation, using standardized WordPress® methodologies; i.e. we’ve implemented the use of `_x()`, and various other translation routines for many aspects of s2Member’s front-end interfaces. For instance, things like Profile panels, Login/Registration Fields, and Pro Form integrations; as well as error messages displayed to Users/Members. Translation support for back-end admin panels provided by s2Member will come in a future release, along with more extensive translation support for front-end aspects.

Please note, this is but our first step toward internationalizing s2Member and s2Member Pro. Look for further updates/improvements to come in the future.

Like WordPress® itself, we chose to use the GNU `gettext` localization framework to provide localization infrastructure for s2Member®. GNU `gettext` is a mature, widely used framework for modular translation of software, and is the *de facto* standard for localization in the open source/free software realm. If you’d like to translate s2Member and/or s2Member Pro, please use the POT file found inside `/s2member/includes/translations/s2member.pot`, which contains all translation entries for both the s2Member Framework *( i.e. the free version )*, and also for s2Member Pro.

The file: `/s2member/includes/translations/s2member.pot` will be updated with each new release of s2Member.

If this is your first translation of a WordPress® plugin, [this article](http://codex.wordpress.org/Translating_WordPress#Localization_Technology) and/or [this article](http://urbangiraffe.com/articles/translating-wordpress-themes-and-plugins/), might be of some assistance. When you are finished translating the `s2member.pot` file, place your completed `s2member-[locale].mo` file into this directory: `/wp-content/plugins/`; and please feel free to [share your translation](http://www.s2member.com/forums/forum/community/) with the rest of the s2Member® community.

Quick Tip: If you only need to translate the front-end of s2Member, please ignore entries in the `s2member.pot` file with a context matching `s2member-admin`. Those sections of s2Member are only seen by site Administrators; they are NOT used in s2Member’s front-end integration with WordPress®. Skipping over translation entries with a context matching `s2member-admin` can save you time.

Dave

Posted: Friday Dec 28th, 2012 at 11:58 am #35625
David Welch
Username: dwbiz05

To me, the easiest way would be to forget all your “levels” and just use the custom capabilities as your “levels” for access.

You can then create buttons to purchase specific custom capabilities if someone wants to “upgrade.”

Also, I created a VERY BASIC shopping cart that allows users to select “custom capabilities” or “packages” and it adds it all to one registration or payment form.

Here is a link to the post:

http://www.s2member.com/forums/topic/user-selected-cc-ad-ons-extension-beta/

Hope that helps.

Dave

Posted: Thursday Dec 27th, 2012 at 11:57 pm #35595
David Welch
Username: dwbiz05

I’m not sure if this is what you are trying to do, but take a look at the solutions I offered here:
http://www.s2member.com/forums/topic/allowing-non-members-to-read-a-bit-more/

Here is the synopsis:
Add this to your theme’s functions.php file:

add_shortcode('dw-post-more','dw_post_more');

function dw_post_more($atts,$content){
	extract(shortcode_atts(array("level" => 0),$atts));
	
	if(current_user_can("access_s2member_level".$level)){
		return do_shortcode($content);
	}
	else {
		return '<a href="'.S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL.'">Get Access To More Of This Content</a>';
	}
}

Then wrap your “hidden” part with this shortcode.. like this:

This is the public content.
[dw-post-more level="0"]
This is the private content. You can change the level to match whatever level should have access to the info.
[/dw-post-more]
This is public info after the private info.

Hope that helps,

Dave

Posted: Thursday Dec 27th, 2012 at 11:47 pm #35594
David Welch
Username: dwbiz05

No it doesn’t. But many people have been able to use other plugins like Role Edit (I think) to add those functions to S2member specific roles (s2member_level1, s2member_level2, etc.).

Hope that helps.

Dave

Posted: Thursday Dec 27th, 2012 at 11:43 pm #35593
David Welch
Username: dwbiz05

Yes there is…

This is a very common issue for people starting out with s2member.

S2Member’s “access restrictions” build on each other. They assume that if you buy a higher level, then you should have access to everything else “below” it.

You can change this functionality very simply though by adding “custom capabilities” to your posts and sign-up buttons/forms.

For example…

If you want Level 1 access to only be accessed by Level 1 users, you can add a custom capability like “only_one” to those pages as well as the level one access restriction for that post/page.

Also, you will need to add this custom capability (ccap) to your payment button or registration form to ensure your level one users have level one access AND the ccap.

One other cool feature of using ccaps is that you really don’t have to have levels 2-4… just make payment buttons for level 1 with different ccaps and add those different ccaps to the correct pages that those “levels” would have access to.

In this way, the basic form of s2member can virtually be limitless on its “access levels”.

I hope that makes sense.

There is also a video about doing this here:

http://www.s2member.com/videos/A2C07377CF60025E/

Dave Welch

Posted: Thursday Dec 27th, 2012 at 12:44 pm #35554
David Welch
Username: dwbiz05

I created a VERY BASIC and LIMITED shopping cart plugin to work with S2, you might check it out here:

http://www.s2member.com/forums/topic/user-selected-cc-ad-ons-extension-beta/

NOTE: the download link has been updated in the second post.

Hope it helps,

Dave

Posted: Thursday Dec 27th, 2012 at 12:39 pm #35552
David Welch
Username: dwbiz05

You can do it manually by editing each user or if you know mysql, you could probably run a few statements in phpmyadmin to take care of it, depending on what exactly you need.

Otherwise, manually is the only way to do it.

Dave

Posted: Tuesday Dec 25th, 2012 at 6:52 pm #35489
David Welch
Username: dwbiz05
Posted: Wednesday Nov 14th, 2012 at 11:11 am #31583
David Welch
Username: dwbiz05

My first thought was to hook into the payment processing but I don’t see any hooks in the file. I’ll have to check some more.

If there is a hook that gives you access to all the data from the form, you could set the “ra” value = to the custom field… but I’ve not found a good hook for it yet.

Dave

Posted: Tuesday Nov 13th, 2012 at 1:42 pm #31466
David Welch
Username: dwbiz05

I’m not 100% sure what you’re trying to do here. Are you using this field in the registration form, so they would add the amount prior to clicking the register button?

Dave

Posted: Tuesday Nov 13th, 2012 at 4:14 am #31433
David Welch
Username: dwbiz05

OK…

So what I was trying to do, is change the way S2 handles the level filtering for showing custom registration form fields.

S2 currently lets you show or hide custom fields based on the shortcode level. However, I was wanting to add the ability to show or hide custom fields by the level and/or the shortcode ccap.

Since the form field info for the admin settings is hardcoded into the JS file, I didn’t want to manipulate that…

So… I chose to write my own little plugin that works around the situation by setting a $_SESSION data for the shortcode level and ccap info, then checks it when the ws_plugin__s2member_custom_fields_configured_at_level hook is called. Any rules that have been set for a particular level and ccap grouping is removed from the $fields_applicable variable before it is sent to the “form creation.”

I’ve uploaded the plugin to my website if anyone wants to try it out: http://itelves.com/wp-content/uploads/2012/11/s2member-registration-custom.zip

Once activated, the plugin will show up in the S2Member menu as “Custom Reg Fields”

Thanks,
Dave

Posted: Monday Nov 12th, 2012 at 8:47 pm #31398
David Welch
Username: dwbiz05

ok so this code is all generated by the .js file… not cool.

Why is this stuff hard coded so that it can’t be manipulated like so much else in S2?

argh…

Any thoughts on how to work with this?

Dave

Posted: Wednesday Nov 7th, 2012 at 11:48 am #30912
David Welch
Username: dwbiz05

have you tried entering the actual url to your home page into the s2member => general options => Login Welcome Page => bottom box “Special Redirection URL” ?

I *think* that would keep s2member from “protecting” it…

Let me know if that doesn’t work.

Dave

Posted: Sunday Nov 4th, 2012 at 4:11 pm #30604
David Welch
Username: dwbiz05

Can you post your “s2hacks.php” file here?

Also, so you have a page I can see the error on?

Dave

Posted: Tuesday Oct 9th, 2012 at 10:21 am #27893
David Welch
Username: dwbiz05

The minimum required data is username and email. So if you don’t add any payment info and you set them as a specific level, it *Should set them up with infinite subscriptions, from what I understand.

I’ve never tested this and you might want to do so with one or two fake users, just to see.

Hope that helps.

Dave

Posted: Thursday Oct 4th, 2012 at 1:46 pm #27460
David Welch
Username: dwbiz05

do you have that page protected with any additional filters, such as custom capabilities or category protection etc.?

I could take a look if you want to contact me via my profile: click my name

Dave

Posted: Thursday Oct 4th, 2012 at 8:09 am #27423
David Welch
Username: dwbiz05

Check out this part of your PRO install:

s2member => API/Scripting => Pro API for Remote Operations

Hope that helps,

Dave

Posted: Wednesday Oct 3rd, 2012 at 9:53 pm #27379
David Welch
Username: dwbiz05

I’ve not messed with any translations, but have you tried these steps?

http://www.s2member.com/forums/topic/how-to-for-s2member-language-translation/#lead-topic-26754

Hope that helps,

Dave

Viewing 25 replies - 51 through 75 (of 407 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.