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.

user redirect page

Home Forums Community Forum user redirect page

Tagged: ,

This topic contains 0 replies, has 1 voice. Last updated by  Andy Brulia 3 years, 9 months ago.

Topic Author Topic
Posted: Thursday Mar 21st, 2013 at 11:05 pm #45428
Andy Brulia
Username: abrulia

Hello,
I am trying to create a redirect page (other than the login redirect page), so I can put a link in the sidebar and have the appropriate page be redirected depending on the current user. For example in the sidebar I have a link to “My Pictures” that is a redirect page with code like this:

= user1) {
				
	header('Location: http://website.com/mypictures-user1/?'.$_POST['4258']); die(); 
 }
elseif (username >= user2) { 
				
	header('Location: http://website.com/mypictures-user2/?'.$_POST['4336']); die();
}

elseif (username >= user3) {
				
	header('Location: http://website.com/mypictures-user3/?'.$_POST['4342']); die();
}

else { header('Location: http:/website.com/no-picture-access/?'.$_POST['4253']); die();
}
ob_end_flush();
?>

This only works for user1, if I am logged in as user1 it will redirect me to the my pictures-user1 page. If I am logged in as anyone else it redirects me to the no-picture-access page. Can anyone help me fix this?

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.