The variable that contains the path to the root directory of the joomla is
$mosConfig_absolute_path.
Saturday, August 8, 2009
Sunday, August 2, 2009
show tags with posts in wordpress
use this code in the template file where the tags r to be displayed
echo get_the_tag_list('
http://codex.wordpress.org/Function_Reference/get_the_tag_list
echo get_the_tag_list('
Tags: ',', ','
');http://codex.wordpress.org/Function_Reference/get_the_tag_list
Saturday, August 1, 2009
make a component acess private(restricted to logged in users) in joomla 1.5
in the controller of the component write $user = &JFactory::getUser();
// echo "user id is ".$user->id ;
if ($user->id == 0) {
$this->setRedirect('index.php?option=com_user', 'This area is for registered users','message');
}
in any function
// echo "user id is ".$user->id ;
if ($user->id == 0) {
$this->setRedirect('index.php?option=com_user', 'This area is for registered users','message');
}
in any function
Subscribe to:
Posts (Atom)