Hi,
noticed this while porting one of our plugins to support CB 1.2 RC3. I now think i might be doing this too early but a lot of our users do need it ( They want to use 1.5 native too
) ..
Anyways here goes..
Joomla 1.58- native
CB 1.2 RC3
Working on CB Google Adsense Plugin
I noticed that when i use Jfactory in Display Tab to check id of logged in user, the user gets logged out when trying to view a profile.
[code:1]$uid =& JFactory::getUser();
$uid= $uid->id;[/code:1]
Jfactory returns fine. If i remove the above part then plugin & profile works fine..
What could be the issue here ? Some conflict ?
I am pretty sure its nothing to do with rest of my code as i isolated it to this after much testing & double checked to make sure this was the thing causing the issue.
I would also like to know if there is anything i can directly use in the CB API to get logged in user Info .. so that i dont have to worry about any conflicts & future Joomla Upgrades.
Nant/Beat i'd appreciate if one of you can look into this issue & let me know ..
Btw i also tried this with a blank plugin just to make sure
.. Let me know if i want wrong anywhere..
[code:1]<?php
class getGAdsTab extends cbTabHandler {
function getGAdsTab() {
$this->cbTabHandler();
}
function getDisplayTab($tab,$user,$ui) {
$uid =& JFactory::getUser();
$uid= $uid->id;
return'Hi there';
}
} [/code:1]