hello,
i'm doing little investigation on why jd_wordpress and joomla aren't playing nice together. It seems as though I can't get the username and ID from joomla.
using joomla 1.0.10
here's the relevant code:
if (!defined('ABSPATH')) {
define( '_VALID_MOS', 1 );
include_once( '../../../globals.php' );
require_once( '../../../configuration.php' );
require_once( '../../../includes/joomla.php' );
global $mosConfig_absolute_path, $mosConfig_live_site, $database;
$mainframe = new mosMainFrame( $database, isset($option), '.' );
$mainframe->initSession();
$my = $mainframe->getUser();
the above looks like it should work, but whenever i echo $my->Id; i get zero (0). However, I know the ID of the logged in user is 62 (i'm logging in as admin).
any ideas on why this isn't working?
i've also posted about this on the wordpress support forums (for reference).
http://wordpress.org/support/topic/7833 ... ost-405510A million thanks. Right now i rigged wp with the id of the admin user in order to be able to use it. Any help would be appreciated.