Saturday, August 8, 2009

joomla path to base directory

The variable that contains the path to the root directory of the joomla is
$mosConfig_absolute_path.

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('

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