Community Support Forums — WordPress® ( Users Helping Users ) — 2010-10-24T05:20:19-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1060 2010-10-24T05:20:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1060&p=4141#p4141 <![CDATA[Re: Unlimited Access]]> I'm off soon to plug this stuff in, and I will report back to you.
Have a great day!

Eric Turner

Statistics: Posted by eric41 — October 24th, 2010, 5:20 am


]]>
2010-10-24T05:03:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1060&p=4140#p4140 <![CDATA[Re: Unlimited Access]]>
Yes, this is possible with s2Member. You'll need to use the file that I've attached. You will want to unzip this file, and then place the containing PHP file into a special folder on your server, at this location:
/wp-content/mu-plugins/my-dynamic-sp-access-session.php

This way your changes will survive future upgrades of the s2Member plugin. If you don't have an /mu-plugins/ directory, please create one. The directory /mu-plugins/ = MUST USE plugins, which are loaded automatically by WordPress® ( that's what you want ).

my-dynamic-sp-access-session.zip
The attached zip file contains this PHP code ( an s2Member add-on ):

Code:
<?php
function my_dynamic_sp_access_session 
($sp_access_values, $vars)
    {
        $vars["__refs"]["sp_access_values"] = array (ws_plugin__s2member_encrypt ("sp_time_hours:.:|:.:" . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["specific_ids"] . ":.:|:.:" . strtotime ("now") . ":.:|:.:" . ($expiration_hours = "72")));
        /**/
        $vars["__refs"]["cookie"] = implode (":.:|:.:", $vars["__refs"]["sp_access_values"]); /* Implode the access values into a delimited string. */
        /**/
        setcookie ("s2member_sp_access", $vars["__refs"]["cookie"], time () + 31556926, "/"); /* Updated the session cookie. */
    }
add_action ("ws_plugin__s2member_during_sp_access_session", "my_dynamic_sp_access_session", 10, 2);
?>
With this file in place, your Customers will automatically be granted access to ALL Posts/Pages that you list in the General Options panel for s2Member. You'll just need to keep your list up-to-date. You do this through your Dashboard, by navigating to: s2Member -> General Options -> Specific Post/Page Access.

This add-on requires s2Member v3.2.7+.
http://www.primothemes.com/post/product ... th-paypal/

Statistics: Posted by Jason Caldwell — October 24th, 2010, 5:03 am


]]>
2010-10-23T07:48:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1060&p=4113#p4113 <![CDATA[Unlimited Access]]>
So here is my issue: I am offering an option at my site to purchase unlimited access to the entire catalogue of courses. When someone purchases the unlimited access package, I want their access to update each time I add new courses. In other words, I want them to have ongoing unlimited access to the site and automatic new access to any future courses/pages I create. So far, I have been using "Specific Post/Page Access Links" when someone wants unlimited access, so I just manully go in and create a bundle package that gives access to every premium page of the site. The problem of course is that this link does not update to include new courses when I create them.

Sure hoping there's a way to make this happen..looking forward to any responses. Thank you!

Eric

Statistics: Posted by eric41 — October 23rd, 2010, 7:48 am


]]>