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

Joomlapolis Forums  


Login little bug: username shown instead of name
Date: 2008/11/04 23:46 By: grosbedo Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 2
graphgraph
Hello,
there is a bug in /modules/mod_cblogin/mod_cblogin.php which makes the script to always show the username instead of the CommunityBuilder DB firstname or Joomla DB name.

The problem since to reside here, at line 96:

Code:

  $name             $params->get'name');



Which always return $name == 0

Later on, between lines 168 and 179:

Code:

     if ($name) {         if ($name == 2) {             $query "SELECT firstname FROM #__comprofiler WHERE id = ". (int) $_CB_framework->myId();         } else {             $query "SELECT name FROM #__users WHERE id = ". (int) $_CB_framework->myId();         }   [...]     } else {         $name htmlspecialcharscbUnHtmlspecialchars$_CB_framework->myUsername() ) );     }



As you can see, this is where the problem come from. But I didn't had the time to look further into the code to understand where is the flaw exactly, but I'm sure you'll be able to fix it easily

Cordially
Click here to see the profile of this user The administrator has disabled public write access.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

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 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login