Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
Re:Problem with Remember me in CB login
Date: 2008/08/27 16:21 By: Swiftek Status: User  
Karma: 3  
Fresh Joomlapolitan

Posts: 22
graphgraph
p9939068 wrote:
What rubbish.

Rubbish is in the eyes of the beholder.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/27 22:55 By: Swiftek Status: User  
Karma: 3  
Fresh Joomlapolitan

Posts: 22
graphgraph

Hooray for Feendish! Their extra code at the beginning of the template's index.php file did the trick.

The CB folks should look into this and test it for final or patch release.
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/27 23:53 By: beat Status: Admin  
Karma: 242  
Admin

Posts: 4063
graphgraph
Swiftek wrote:
Feendish wrote:
I think I've solved the problem (on my site anyway). To recap the problem: If the user chose "Remember Me" and logged in then closed their browser and came back at a later time, the user would appear to be logged out. BUT if they refreshed the page they magically are logged in again.

The solution:
1. Make sure mod_cblogin is installed correctly.
2. Make sure mod_login (the one supplied with Joomla is disabled).
3. Insert the following code at the top of your templates index.php file or AFTER the global declarations in the mod_cblogin.php file.

Code:

 <?php  $user =& JFactory::getUser(); //Grab the Joomla 1.5.x user details object if ((!$my->id)&&($user->id)){ //If the legacy array is not populated but user is still logged in according to Joomla 1.5.x, foreach ($user as $key => $value) {  //loop through  1.5.x user object $my->$key=$value;                     //and copy 1.5.x object value to same key in 1.0.x object. } } ?>



The issue seems to be that the $my object is not being populated until the page is refreshed. What the code above does is checks that (a) the user is stilled logged in according to the newer 1.5.x $user object and (b) the legacy 1.0.x $my object is empty. It then copies the $user values into the $my values as both objects contain the same keys. Hope this works. I'm sure someone will suggest a cleaner fix.


I was waiting for an "official" or "cleaner" fix from the CB folks here, but I guess they have all their eggs in the 1.2 basket.

As soon as GoDaddy fixes their FTP server, I'll give this a try and report back here. Thanks!


This is clearly a Joomla 1.5 bug in legacy layer that should be reported to Joomla 1.5 Q&T forum.

CB 1.2 RC 2 went around this bug and many others, by running native on Joomla 1.5 (and on Joomla 1.0, and on Mambo 4.5-4.6), so e.g. on Joomla 1.5, it's not using $my anymore.
Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now
- Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/28 15:12 By: Swiftek Status: User  
Karma: 3  
Fresh Joomlapolitan

Posts: 22
graphgraph
I will make sure this is in the Joomla! forum.

Am I to understand that CB 1.2 takes advantage of running native in Joomla! 1.5 even if I keep the legacy plugin turned on for other reasons?
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/08/28 15:51 By: nant Status: Admin  
Karma: 463  
Admin

Posts: 6010
graph
Swiftek wrote:
Am I to understand that CB 1.2 takes advantage of running native in Joomla! 1.5 even if I keep the legacy plugin turned on for other reasons?

Yes - thats the way all native compatible extensions work.
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The administrator has disabled public write access.

Re:Problem with Remember me in CB login
Date: 2008/09/07 00:21 By: Canuck Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 17
graphgraph
How do I identify global declarations?

AFTER the global declarations in the mod_cblogin.php file.

Post edited by: Canuck, at: 2008/09/07 00:21
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login