SecurityAssist Show Region Server Behavior on a CSS Menu Writer menu ?
I have a page containing a CSS menu Writer Menu with a "Log In" and "Log Out" button. I want to use the SecurityAssist Show Region Server Behavior so that the "Log In" button shows only when the user is not logged in, and the "Log Out" button shows only when the user is logged in.
Where should I put the SecurityAssist Show Region Server Behavior ?
I have tryed to put it on the CSSMenuWriter\cssmw\menu.php page like this:
<ul class="level-0" id="cssmw">
<li><a href="<?php echo($assumedRoot); ?>index.php">Home Page</a></li>
<?php if(!WA_Auth_RulePasses("Logged in to users")){ // Begin Show Region ?>
<li><a href="<?php echo($assumedRoot); ?>users_LogIn.php">Log In</a></li>
<?php } // End Show Region ?>
<?php if(WA_Auth_RulePasses("Logged in to users")){ // Begin Show Region ?>
<li><a href="<?php echo($assumedRoot); ?>users_LogOut.php">Log Out</a></li>
<?php } // End Show Region ?>
</ul>
but when I do, the content on my page is not showing.
Any ideas on where I should put the SecurityAssist Show Region Server Behavior ?
I'm attaching my files.
Thanks in advice.
Regards
Rune