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: Erik Kampe

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


Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
S2Member File Download/Cloudfront Not Working

By:  Erik Kampe in: Community Forum

voices: 3
replies: 9

4 years, 6 months ago  Jason (Lead Developer)

Extend Specific Page Access Restrictions ?

By:  Erik Kampe in: Community Forum

voices: 2
replies: 5

4 years, 6 months ago  Raam Dev

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Thursday Jun 28th, 2012 at 1:34 am #17723
Erik Kampe
Username: kampester

HI Jason

I resent the FTP cpanel login via private.

NExt… the script you posted above works:

http://www.traderstouch.com/resources/custom-scripts:

openssl_sign() exists.207.183.181.206

Thanks Big Time

Erik

Posted: Wednesday Jun 27th, 2012 at 2:58 pm #17681
Erik Kampe
Username: kampester

Hey guys, any thoughts?

I am waiting for your feedback, thanks !

Posted: Monday Jun 25th, 2012 at 8:38 pm #17438
Erik Kampe
Username: kampester

Thanks Cristian …. I tried to deactivate all plugins, disabled my CDN – nothing is working so far.

Look forward to hear From Jason and next steps on what I can try.

Posted: Sunday Jun 24th, 2012 at 2:40 pm #17288
Erik Kampe
Username: kampester

Thanks Cristian

From my side I believe that everything is setup correctly, and I logged in with different levels, super admin, admin, level 2, level 1 and level o.

No of my download links seem to work, yet the video streaming is working ( all from CloudFront)

I sent you log in info via private contact form

Thanks
Erik

Posted: Thursday Jun 21st, 2012 at 12:53 pm #17139
Erik Kampe
Username: kampester

If you’ve marked content as restricted to any Level between 1 – 4, then Level 4 members will have access to it (that is expected behavior).

Ramm this is what I am seeking how does S2member extend level 4 privileges to a Page/Post Restricted page?

  • This reply was modified 4 years, 6 months ago by  Erik Kampe.
Posted: Thursday Jun 21st, 2012 at 9:53 am #17126
Erik Kampe
Username: kampester

Hi Tony,

I had a similar need in controlling the WP-Admin bar…. in my case I wanted to hide elements in the admin-toolbar…. but you can use the same logic using the WP function add_node () and remove_node() to gain control over what to users can see.

I used the following code in my custom functions file located in the mu-plugin folder:

////////////////////////////////////////////////////////////////////////////////
//Kampester Custom function Adapted For MU Buddypress Newtwork  - New function
////////////////////////////////////////////////////////////////////////////////


function admin_bar_remove_this(){
     global $wp_admin_bar;
    if(!is_super_admin()){
     $wp_admin_bar->remove_node('blogs-menu');
    $wp_admin_bar->remove_node('account-menu');
    $wp_admin_bar->remove_node('new-content');
    $wp_admin_bar->remove_node('my-sites');
       }
        $wp_admin_bar->remove_node('wp-logo');
           }
        add_action('wp_before_admin_bar_render','admin_bar_remove_this');

To start I used this function to get a entire list of all the nodes available in my install – this code will place menu item in your admin-bar that you can use to identify the elements naming convention. I got the code from the WP codex….

Hope this helps.

add_action( 'wp_before_admin_bar_render', 'add_all_node_ids_to_toolbar');
 
 function add_all_node_ids_to_toolbar() {
 
   global $wp_admin_bar;
   $all_toolbar_nodes = $wp_admin_bar->get_nodes();
       
   if($all_toolbar_nodes){
   
     // add a top-level Toolbar item called "Node Id's" to the Toolbar
     $args = array('id' => 'node_ids', 'title' => 'Node ID\'s');
     $wp_admin_bar->add_node($args);
     
     // add all current parent node id's to the top-level node.
     foreach ( $all_toolbar_nodes as $node  ) {
       if(isset($node->parent) && $node->parent){
       
         $args = array(
           'id' => 'node_id_'.$node->id, // prefix id with "node_id_" to make it a unique id
           'title' => $node->id,
           'parent' => 'node_ids'
           // 'href' => $node->href,
         );
         // add parent node to node "node_ids"
         $wp_admin_bar->add_node($args);
       }
     }
     
     // add all current Toolbar items to their parent node or to the top-level node
     foreach ( $all_toolbar_nodes as $node  ) {
     
       $args = array(
         'id' => 'node_id_'.$node->id, // prefix id with "node_id_" to make it a unique id
         'title' => $node->id,
         // 'href' => $node->href,
       );
       
       if(isset($node->parent) && $node->parent){
         $args['parent'] = 'node_id_'.$node->parent;
       } else {
         $args['parent'] = 'node_ids';
       }
       
       $wp_admin_bar->add_node($args);
     }
   }
 }
Posted: Tuesday Jun 19th, 2012 at 10:34 am #16903
Erik Kampe
Username: kampester

HI Raam…

Thanks… for the response.

I tried to highlight in my post, that level 4 members DO get access to my Restricted page??

Why? How?

There must be a capabilities setting withing Roles & Capabilities framework of WP? Or there must be a away to provide an exception with s2-hacks.. The only reason I went with S2 is for this kind of customization…..

I would love to see S2 provide the ability to work with dynamic content, providing prospects different options to access my products is a great way to market and price test… Furthermore, in my case the Page Restriction has negative value if you can NOT mingle page access options, because of the burden on content management. Specifically, on the vendor side where duplicating dynamic premium content is not only wasteful but not a scalable business practice.

On the marketing side offering a Pay Per View option is more or less a dummy offer to highlight the Membership value, not being able to mix these via (code) greatly diminishes the potential value of the PAGE Restriction feature, in my opinion..

Regardless I am enjoying the flexibility and customization, and looking forward to unleashing the powers of S2

Cheers Kampester

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