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.

Cristián Lávaque


My Latest Replies (From Various Topics)

Viewing 25 replies - 4,526 through 4,550 (of 7,376 total)
Author Replies
Author Replies
Posted: Saturday Aug 11th, 2012 at 7:02 am #21761

Hi Maureen.

Yes, you can do something like that. Please read the documentation here: [hilite path]Dashboard -› s2Member® -› API / Scripting -› Content Dripping[/hilite]

I hope it helps. :)

Posted: Saturday Aug 11th, 2012 at 7:01 am #21760

There isn’t an unencoded version. To change a var, like the level the user gets, you do it when generating the URL. E.g.

[hilite pre_code]
$link = c_ws_plugin__s2member_register_access::register_link_gen("none", "-", $_SERVER["HTTP_HOST"], $register_level, false);
[/hilite]

http://www.s2member.com/codex/stable/s2member/registrations/c_ws_plugin__s2member_register_access/#src_doc_register_link_gen%28%29

Posted: Saturday Aug 11th, 2012 at 6:55 am #21759

If I cannot get this to work between tonight and tomorrow, I will have missed the window for which the digital edition of this publication will be desirable, as the print edition will already be arriving in mailboxes first of next week.

I think that, until you figure out how to protect these files that you generate for the digital edition, you should put the thing outside the s2member-files directory and link to it from a protected WP page only. That way you serve your readers without delays, while you work out the download protection part.

I have tried the link as you suggested, and like this:

Could you try this one?

[hilite pre_code]
http://bonesvillemedia.com/site/?s2member_skip_confirmation=yes&s2member_file_download_key=&s2member_file_download=2012-BVL-DIGITAL/index.html
[/hilite]

And one more thing, I have tried JWPlayer in a desperate attempt to get this to work, but it seems geared towards videos, whereas with this, the *swf files are really just click-through pages.

Yeah, JW Player is for audio and video files, it’s not going to work for a digital magazine.

Posted: Saturday Aug 11th, 2012 at 3:49 am #21758

Rachel, this video may also be of interest to you: Video » s2Member (Client Portals?)

Thanks for your help, Randy! :)

Posted: Saturday Aug 11th, 2012 at 3:05 am #21756

Hi Jeffry.

This is not possible yet, although it may not be impossible to hack it. But we’ve considered this for the new s2Member being developed and it may be included. I’ll take your request as a vote for this feature. :)

Posted: Saturday Aug 11th, 2012 at 3:03 am #21755

Thanks for letting us know, Core! Looking forward to your update. :)

Posted: Saturday Aug 11th, 2012 at 3:02 am #21754

Hi Mark.

You may want to look at the Tracking API. [hilite path]Dashboard -› s2Member® -› API / Tracking[/hilite]

Here’s a video: Video » s2Member (API Tracking/Notifications)

I hope it helps! :)

Posted: Saturday Aug 11th, 2012 at 3:00 am #21753

Hi Randy.

This article may be helpful: Knowledge Base » Changing Roles/Capabilities via PHP

The s2Member capabilities are independent of roles, and are prefixed with [hilite mono]access_s2member_ccap_[/hilite].

You can use the User Role Editor to look at the roles and capabilities and familiarize yourself with what you’ll be working with. http://wordpress.org/extend/plugins/user-role-editor/

If you go to the Users menu, you’ll see the User Role Editor’s entry at the bottom. If you go to the Users list, for each user you’ll have a new link to edit his capabilities.

I hope that helps!

Posted: Saturday Aug 11th, 2012 at 2:49 am #21752

Thanks for the feedback, Thomas. I’ll let Jason know about your request. :)

Posted: Saturday Aug 11th, 2012 at 2:45 am #21751

Great! Thanks for the update.

Sorry I had forgotten about that thread. I’ll try to remember it next time someone asks about WP Security. :)

Posted: Saturday Aug 11th, 2012 at 2:42 am #21750

Great! :)

Posted: Saturday Aug 11th, 2012 at 2:42 am #21749

lol

Well, you can pick the files for one of the other gateways (e.g. ClickBank) and see how it’s done there, changing the code to work with your gateway.

It is advanced, though, so you may want to get help from a developer. You can try jobs.wordpress.net.

Posted: Saturday Aug 11th, 2012 at 2:40 am #21748

Right, just that. And it works with pro-forms too. :)

Posted: Saturday Aug 11th, 2012 at 2:39 am #21747

No, I’m not sure I know what thread you are referring to. But the documentation there tells you what you need to know, although it’s not a tutorial.

Posted: Friday Aug 10th, 2012 at 9:42 pm #21735

1) Do I need to include a download key to every file referenced within the index.html file, or only to the index.html file, itself?

Every file in the s2member-files folder, is protected by s2Member. If the person needs several files loaded, either the user has to be logged in with enough access to view the files, or the URL to each protected file has an access key.

2) Will the person who uses the key — since it’s time and date generated — be able to generate a fresh key the next day, or anytime they log in? I want people to be able to log in with their account at any time from any place to see the content, because it’s a magazine that they may want to access throughout football season?

Yes, a new key would get generated with each page load.

3) How would I include the download key in this link (which is the link I’m currently using to the members-only access file):

You can read the documentation here: [hilite path]Dashboard -› s2Member® -› Download Options -› Advanced Download Restrictions[/hilite]

In your example, I think it’d be:

[hilite pre_code]
http://bonesvillemedia.com/site/wp-content/plugins/s2member-files/2012-BVL-DIGITAL/index.html?s2member_skip_confirmation=yes&s2member_file_download_key=
[/hilite]
Posted: Friday Aug 10th, 2012 at 8:35 pm #21734

No problem. :)

Posted: Friday Aug 10th, 2012 at 7:54 am #21703

Hi Peter.

s2Member uses the email parser for now. Knowledge Base » AWeber email parser for s2Member

But hey I have unlimited of everything :)

Nice! :)

Posted: Friday Aug 10th, 2012 at 7:50 am #21702

Hi Giancarlo.

Thanks for the kudos! :)

There’s a hack to login automatically after registration: http://www.s2member.com/forums/topic/auto-login-after-successful-payment/#post-16660

I hope that helps.

Posted: Friday Aug 10th, 2012 at 7:41 am #21701

:)

Posted: Friday Aug 10th, 2012 at 7:39 am #21700

This is part of a conversation I had with Jason some months ago regarding JavaScript conflicts.

Cristián: I still don’t understand how the JS conflicts work… If the library is the same in both plugins, why is there a conflict? Same var names?

Jason Caldwell: Well, I call it a conflict. Sometimes it’s a conflict in jQuery because of a bad plugin, which attempts to load jQuery on it’s own, instead of doing it the WP way. Or sometimes, it just a bad plugin that causes a JavaScript error, which may result in all JavaScript failing (the nature of JavaScript). Not really a “conflict” in that case, really an error due to a bad plugin/theme.

Jason Caldwell: I’ve also see some conflicts between frameworks. That’s rare, but there are some plugins that use the ProtoType framework, and combined with another framework like MooTools, there is a possibility for a conflict to arise. Rare though, and it’s usually attributed to the way their loaded (i.e. by a bad plugin/theme).

Cristián: Does WP load JQuery already? If so, why do plugins load it too?

Jason Caldwell: Yea, WP already loads it. But some plugin authors don’t know that, or they just hard code it into their plugin not realizing that. Other times they’ll try to include a dependency on jQuery, but they name it wrong, and WordPress gets confused.

Cristián: Does s2Member load it again or uses WP’s?

Jason Caldwell: Hmm, not really, because in the Dashboard, it’s already loaded by WordPress. s2Member enques scripts that is uses, which rely on jQuery being present. In the call to wp_enqueue_script(), s2Member will list jQuery as a dependency, which forces WP to load it, though it’s already loaded in the Dashboard anyway. That’s the proper way to handle it.

On the front-end of a site, s2Member will load jQuery if it’s not already loaded, but again, using the same technique. A call to wp_enqueue_script() with a dependency on jQuery forces WP to load jQuery. If 10 plugins all do it this way (i.e. the right way), WordPress loads jQuery in the proper order and only one time.

Cristián: Ah, got it. I understand WP has a QC team, don’t they check this?

Jason Caldwell: Not in my experience. They look mostly for security issues and really bad code. They usually don’t catch minute details like this.

Cristián: I see. Well, they do look at how the db is used, iirc.

Cristián: I see, but these details do cause trouble for the users. Maybe it’d be good to write an article about JS conflicts as you explained above and post it in the forums, and then show it to the QC guys for consideration to include in their quality checklist.

Jason Caldwell: Yea, that’s a good idea. On the WP side though, they’re aware of this problem, and that’s why they created the wp_enqueue_script() wp_enqueue_style() functions. Although, I wish this were more prominent in this article: http://codex.wordpress.org/Writing_a_Plugin#Plugin_Development_Suggestions

It is mentioned, but it’s all the way at the bottom:

Try not to echo [hilite code]

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.