Hi , I'd like to know how to write a if condition to load an action script . is it possible to do that ?
Forums
can "action" load only when met a condition ?
Hi eddddd ,
Bob
<?php
$user =& JFactory::getUser();
if ( !$user->id ) {
//this is a guest
} else {
// this is a logged-in user
}
?>
Bob
mr greyhead , where is the "joomla registration" code ? I didn't see the code when clicking at the "code" tab . If I can't find the "joomla regisration" action code , the i can't stop loading it .
This topic is locked and no more replies can be posted.