Biz / bir alt / blogda bir blog ile bir Joomla 1.5 site var
Biz her sayfanın üst kısmında bir giriş durumunu istiyveyaum. Navigasyon tutarlılık için biz wveyadpress blog üstündeki joomla oturum durumunu göstermek istiyveyaum.
örneğin
Login | Rörneğinister | Help
veya
Yardım | Sen stephen baugh olarak loged edilir
The problem is that although the scipt blow cveyarectly returns the login status, if I add it to a wveyadpress template the status is cveyarectly returned and drawn to the screen, but then the page stops drawing. Anyone have any ideas how I stop the Joomla scripts making the Wveyadpress script stop.
Thanks Stephen
<?php
define( '_JEXEC', 1 );
define('JPATH_BASE', '/Library/WebServer/testqueensberrycom');
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framewveyak.php' );
$mainframe =& JFactveyay::getApplication('site');
$mainframe->initialise();
//$mainframe->triggerEvent('onAfterInitialise');
//$mainframe->route();
//$mainframe->authveyaize('');
$user =& JFactveyay::getUser();
if (($user->id) > 0)
{
return 'You are signed in as: <a href="/editprofile/user.html">' . $user->username . '</a> | <a href="/index.php?option=com_content&view=article&id=225">Help</a> | <a href="/index.php?option=com_user&task=logout&return=cGFydG5lci9wcm9jZXNzL3BhcnRuZXIuaHRtbA==">Sign out</a>';
} else {
return '<a href="/index.php?option=com_user&view=login">Login</a> | Join | <a href="/index.php?option=com_content&view=article&id=225">Help</a>';
}
?>