Swiftek, sure AJ is fine.
Yeah it's usually best to stay ontop, particularly as 1.5 is no small improvement and there's plenty of good pluggins for 1.5 native now, and many that do both 1.0 and 1.5 native. We started with 1.5, but unfortunately some of these plugins/modules/components whatever are still 1.0. It's a shame, but I suppose if you want a regularly updated product you have to pay.
Back on topic, yes, while fireboard may do it's own bits afterwards, it still starts with Joomla.
Full Joomla 1.5 compatibility in legacy mode - now approved by us!
from
wiki.bestofjoomla.com/com_fireboard/release_1.0/1.0.4/start
So sounds like it was native 1.0 and now wors in 1.5 in legacy mode as of 1.0.4 stable version (which is what we're using).
Just to blow what beat said clear out of the water, try this:
Open two tabs on your site, one in the fireboard forum somewhere and the other in a non-fireboard part of the site (homepage? perhaps), now walk away and leave for a good 20-30mins (whatever it takes to timeout on your settings).
Now, we already know that using feendish's code, if you refresh the homepage, the cblogin will now correctly show you as logged in. Without feendish's code, it will show as logged out, another refresh and it's logged in. The reason is clear that the $my information is not populated (god knows why, or maybe CB/Joomla).
Now, if you where instead to refresh the fireboard page instead when it timed out, you'll see that (with feendish's code) the cblogin shows logged in, but the fireboard forum shows Guest (or in the case you where in a restricted forum, it tells you access denied!). One more refresh and you're logged in and can access again.
Now, here's the kicker, beat, same thing again, only this time, refresh the homepage, then go to your fireboard tab and refresh, if what beat said was true you'd expect this to show Guest until you refreshed again... it DOESN'T, it shows you as logged in and all fine and dandy.
Explain that one then!
I've also been looking around and found this in a legacy.php file located in pluggins, system.
[code:1] /**
* Legacy global, use JFactory::getUser() [JUser object] instead
* @name $my
* @deprecated As of version 1.5
*/
$user =& JFactory::getUser();
$GLOBALS = (object)$user->getProperties();
$GLOBALS->gid = $user->get('aid', 0);
[/code:1]
Which looks to be doing (or should be) what feendish's code does. Now either it isn't doing it soon enough (hence the refresh needed), or it's not doing enough (all the values?).
This may point it to Joomla more than CB, but I don't believe Joomla has any built in "remember me" option, it was provided by CB, so really CB have not accounted for this flaw in Joomla (if it is definately a Joomla flaw) in their provision for a remember me, so it is a CB problem whereever the the main problem resides.
Thanks Swiftek, I know some, but of course I'm just following footsteps or breadcrumbs trying to backtrack through these Joomla and CB files to find out what happens when, and I'm only getting pieces, I can't see an overall picture of when what part gets processed/loaded and where we need to insert a fix. Feendish is on the right lines, but evidently in the template index.php file is not suitable, nor the cblogin if we hope to fix this site wide.
Post edited by: AJStevens, at: 2008/10/31 18:02