PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Login redirect advanced conditional not working

s2Member Plugin. A Membership plugin for WordPress®.

Login redirect advanced conditional not working

Postby niallw » January 17th, 2012, 7:16 am

Hi,

I am trying to implement the advanced conditional statement to redirect users away from the welcome page if they are at membership level 1.

I have installed the php exec plugin and placed the following 'if else' statement using location headers in the login welcome page in an attempt to redirect the users at level 1. Code is as follows:-

Code: Select all
<?php if (current_user_can("access_s2member_level1")){
    header("address here");
} else {
    header("address here");
} ?>


This is not working. I am getting the following error message and am unsure what it means -

Warning: Cannot modify header information – headers already sent by (output started at /homepages/39/d372554375/.............../template-full-width.php:7) in /homepages/39/d372554375/................./wp-content/plugins/php-execution-plugin/includes/class.php_execution.php(273) : eval()’d code on line 29

Could anyone assist?

Thanks,

niallw
User avatar
niallw
Registered User
Registered User
 
Posts: 8
Joined: January 3, 2012

Re: Login redirect advanced conditional not working

Postby Raam Dev » January 19th, 2012, 11:10 pm

Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron