Reply To: Redirect if user does not have the correct ccap

Untitled Forums General Redirect if user does not have the correct ccap Reply To: Redirect if user does not have the correct ccap

#381
Carole Asselin
Participant

Here is the code i am using

<?php
if (!empty($_REQUEST['_s2member_vars']))
   @list($restriction_type, $requirement_type, $requirement_type_value, $seeking_type, $seeking_type_value, $seeking_uri)
        = explode("..", stripslashes((string)$_REQUEST["_s2member_vars"]));

if (!empty($seeking_value) && $seeking_value == 'element' ) {
   header('Location: http://scrapbookcampus.com/creative-scrap/creative-scrap-register/');
   exit;
}

Here is one page that you need the ‘element’ ccap to access:

Folded Edge

and the sale page is obviously this one:

Creative Scrap – register – b