Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: Jester_48Posted on 2009-08-20 at 06:19:09ID: 25142121
if the calendar is not a plug add it to your themes functions.php
loggedinva r"]) && $_SESSION["userisloggedinv ar"]!='Tru e'){ es_nav")) {
/Function_ Reference/ is_user_lo gged_in
then locate your side bar, usually sidebar.php - it might just be a function call, some themes do it that way
in the side bar page add something similar to
<?php
// check session var
if(isset($_SESSION["useris
if(function_exists("wp_pag
show calendar code goes here
}else {
show form code goes here
}
}else{
show form code goes here
}
?>
but you don't need to check the session WP has a function is_user_logged_in() which can be used in place of the above login check
see
http://codex.wordpress.org