posted here 'cause well you have no other section for support.
my goal was to create a 'semi-easy' way for someone to click a link to go to their profile or the login page depending on if they were logged in already.
my site is wordpress + bbpress fully integrated. I achieved this by pointing a link to a new php file I made, including:
<?php
if (bb_is_user_logged_in == true) {
Header ("Location: /forum/profile.php");
} else {
Header ("Location: /forum/bb-login.php");
}
?>
it works except when logged out, then it still tries to send you to profile.php ??