Hello-
I'm using this CMS plugin by WP-Wave, not getting any replies and they have temporarily taken down there forum for a few months now and trying to get a little creative with the is_user_logged_in function.
In there readme text they show the this php code:
<?php if (is_user_logged_in()) { ?>
<li><a href="http://Yourdomain.com/deposit/" title="Deposit">Deposit</a></li>
<li><a href="http://Yourdomain.com/profile/" title="Edit Profile">Edit Profile</a></li>
<li><a href="http://Yourdomain.com/register/?action=renew_upgrade" title="Renew or Upgrade your account">Renew / Upgrade</a></li>
<li><a href="<?php echo wp_logout_url(); ?>" title="Log out from this account">Log out</a></li>
<?php } ?>
Which of course shows/reveals to all logged in members. I have done that in a previous website but want to get a little funky with it... :)
I want to break it down further.
This is what I am trying to do:
<?php
global $user_ID;
if (1!=get_usermeta($user_ID,'planid')) {
//Free Members can see
include ('plans/free.php');
} elseif (2!=get_usermeta($user_ID,'planid')){
//Gold Members can see
include ('plans/gold.php');
} elseif (3!=get_usermeta($user_ID,'planid')){
//White Gold Members can see
include ('plans/whitegold.php');
} else {
//Non Members can see
include ('plans/nonmembers.php');
}
?>
Thank you in advance for helping me in this.
Mike