So I want a small part of my page to change if a user logs in. By default I want one piece of code to be shown and after the user logs in, I want it to change.
I tried this:[code:1]<?php
global $_CB_framework;
$myId = $_CB_framework->myId();
if ( $myId ) {
echo "<div class='if-example'>This is an example!</div>";
}
else {
echo "<div class='else-example'>This is also an example</div>";
}
?>[/code:1]
But I got
Fatal error: Call to a member function myId() on a non-object in /home/*****/public_html/templates/default/index.php on line 58
So what do I do??