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.

Andrew Hodges

My Latest Replies (From Various Topics)

Viewing 14 replies - 26 through 39 (of 39 total)
Author Replies
Author Replies
Posted: Saturday May 4th, 2013 at 6:08 am #49197


I have tried your link and it certainly got different behaviour. The error is printed below. I also tried some other mod links including -s3 which gave me a 404


<Message>The specified key does not exist.</Message>

You will see the full file name in the xml (I have changed the element to (Kode) as it was interfering with the editor here).

I have checked the keys and they are correct. The videos from the same bucket are downloading (in-line) I have checked the file name on S3 cutting and pasting it into the string.

Finally, and with some interest, I see that the count of files down loaded while I have been trying different paths, has gone to 4. Yet as far as I am concerned there is no file?

I understand how difficult it is to advise without being able to replicate the error if you want to have my test log-ins I will supply them by an e-mail if that will help.

Posted: Friday May 3rd, 2013 at 5:46 pm #49148

Yes correct.

You misunderstand me. I am logged in (I have to be to see the download page). It does not matter as who because the result is the same.

Once I click on the link it tries to connect then fails and redirects me to the members option page where I find myself logged out.

The wrong behaviour.

Posted: Friday May 3rd, 2013 at 5:32 am #49108

Thanks for the prompt reply but I had tried that and I get the same result. To be certain I tried it again before replying and it redirects me to the members options page>

Any thoughts the rest of s2member seems to be behaving as expected.

Thanks also for the fact sheet.

Posted: Thursday May 2nd, 2013 at 5:32 am #49002

Thank you. I did not realise it was the service as apposed to the request that used DPRP. I have now used the different form.

Posted: Sunday Mar 31st, 2013 at 6:26 am #46192

Yes thought that might be the way. I have also found a thread about editing

Thanks for the prompt reply

Posted: Monday Mar 25th, 2013 at 6:35 pm #45681

I dont know how many different areas you are going to want to direct them to. But if say it’s books, film, music, video a list within reason then I would use a template page to create my membership page then in the body of the template select the links dependant on custom capabilities (or you could use wordpress tags I suppose) so you would say Andy has ccap of music, books, audiobook and make visible those three links on his page and protect the music page with ccap as well.

Not sure if this suite your vision or helps but best of luck. I agree you don’t want to be doing things manually.

Posted: Monday Mar 25th, 2013 at 7:33 am #45632

I have debugged the error appears to be un-related.

Posted: Sunday Mar 24th, 2013 at 7:36 pm #45610


I now cannot login to the site. I don’t know if its coincidence or not but the login page keeps redirecting to failed log gin where ever its called from.

If I disable s2member via ftp I can get back in. Is this related? Your URGENT comments please. By the way I have looked at your knowledge and trouble shooting articles.

Posted: Saturday Mar 23rd, 2013 at 8:41 pm #45578


I am by no means an expert in s2member but you may find the thread on this post interesting “Updating page meta data” I hope it helps.

Posted: Saturday Mar 23rd, 2013 at 12:26 pm #45563

I am going to have a little moan now. When purchasing s2member you say that the plugin and code is thoroughly documented. You have also said in your video presentation that ‘this is the method’ and with a little look at the API scripting documentation and a little php you can do this …..

Where is the documentation? Failing no documentation simply pointing someone to your php file is not support or a remedy to the lack of documentation.

Now I may be very poor at php but it has taken me 1.5hrs to set up debugging in one of your classes to find the answer to the question. Not great documentation not great support!

by the way so everyone can benefit from my 1.5hrs in relation to your video ‘portal’ the answer appears to be:

$new_options = Array(); // s2member array for security level
$new_options["ws_plugin__s2member_level0_pages"] = $post_id; // set Level0 for this Page
c_ws_plugin__s2member_menu_pages::update_all_options ($new_options, true, false, array ("page-conflict-warnings"), true); // s2member update

If only you had told me that.

Posted: Friday Mar 22nd, 2013 at 8:04 pm #45533

I will have a look at that, thanks. But whilst I am doing so I thought I was following the method described in one of your video’s (Portal) to make a unique page for a member with unique content for that member.

I think what you have described would give members access dependant on a condition or conditions I want only this member to have access to this. Do you think the video is now out of date or theres a better way?

Posted: Thursday Mar 21st, 2013 at 8:54 am #45328

Thank you for the reply.

Yes I have seen the class. Maybe I should have been clearer. It is s2member_level_req that seems to be my problem. This caused my original routine to fail. Full function below.

As you say ccaps_req works ok but level_req does not seem to work. Now I may not be reading your code correctly but I have tried passing ‘0’ to it, even the complete string to it but I do not seem able to populate the Page Level Restriction. The Require Custom Capabilities works fine.

Can you confirm I have the correct operator level_req and what needs passing to establish level 0 access?

// Add page after new user registered
    add_action('user_register', 'registration_newpage');
    function registration_newpage($user_id) {
        $user_info = get_userdata($user_id);
        $username = $user_info->user_login;
        $post = array();
        $post['post_name']    = 'Members-Page-for-'.$username; // The name (slug) for the page
        $post['post_type']    = 'page'; //sets type
        $post['post_content'] = esc_attr($username.' - This page was created for you and any messages that we need to send you with regards to any products, services or changes to your membership will be posted here.'.$userid);
        $post['post_author']  = $username;
        $post['post_status']  = 'publish'; //status
        $post['post_title']   = 'Members Page for '.$username;
        $post_id = wp_insert_post ($post);
        if (!$post_id) {
            wp_die('Error creating user page');
        } else {
            update_post_meta($post_id, '_wp_page_template', 'page-members.php');
            $user = new WP_User($user_id);
            update_post_meta($post_id, 's2member_ccaps_req', 'ahodges');
            update_post_meta($post_id, 's2member_level_req', '0');        //this does not work
Posted: Saturday Mar 16th, 2013 at 1:50 pm #44937

I can’t post there and this is a product error not a site problem

Posted: Tuesday Mar 5th, 2013 at 6:36 am #43754

Thanks for the reply.

Just one thing I do not want a site wide login (see original question), just a login from a members page. I assume I can do that with either version then?

Viewing 14 replies - 26 through 39 (of 39 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.