Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Change First and Last Name

6 years 6 months ago
  • Wayne's Avatar
    Topic Author
  • Wayne
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Active iSEO Active Socialize Active

We are using first and last name at registration. Where does a user change that after registration is complete? Edit profile basic info does not show first and last name!

6 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Wayne,

It can be a bug.. please you follow this :
- open this file components/com_community/tables/fieldvalue.php
- find this code

. ' WHERE ' . $db->quoteName('visible') . '=' . $db->Quote('2');
- replace to
. ' WHERE ' . $db->quoteName('visible') . '=' . $db->Quote('2')
                 . ' OR ' . $db->quoteName('fieldcode') . '=' . $db->Quote('FIELD_GIVENNAME')
                 . ' OR ' . $db->quoteName('fieldcode') . '=' . $db->Quote('FIELD_FAMILYNAME');

try to register again, and let me know how it goes..

thank you!

6 years 6 months ago
  • Wayne's Avatar
    Topic Author
  • Wayne
  • Offline
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Licenses:
JomSocial Active iSEO Active Socialize Active

That code is not present in that file. I want to make sure you understand that user cannot change first and last name from their profile edit?

<?php
/**
* @copyright (C) 2013 iJoomla, Inc. - All rights reserved.
* @license GNU General Public License, version 2 ( www.gnu.org/licenses/gpl-2.0.html )
* @author iJoomla.com <This email address is being protected from spambots. You need JavaScript enabled to view it.>
* @url www.jomsocial.com/license-agreement
* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
* More info at www.jomsocial.com/license-agreement
*/
defined('_JEXEC') or die('Restricted access');

class CTableFieldValue extends JTable
{
var $id = null;
var $user_id = null;
var $field_id = null;
var $value = null;
var $access = null;

public function __construct( &$db )
{
parent::__construct( '#__community_fields_values', 'id', $db );
//J2.5 compatibility: fix automatically initialize value on access column
$this->access = null;
}

public function load( $userId=NULL , $fieldId=true )
{
$db = $this->getDBO();
$query = 'SELECT * FROM ' . $db->quoteName( '#__community_fields_values' ) . ' '
. 'WHERE ' . $db->quoteName('field_id') . ' = ' . $db->Quote( $fieldId ) . ' AND '
. $db->quoteName('user_id') . '=' . $db->Quote( $userId );

$db->setQuery( $query );
$result = $db->loadObject();

if(is_null($result)) return false;

return $this->bind( $result );
}

public function bind($src, $ignore = array()){
if(empty($src) || is_null($src) ) {return true;}
return parent::bind($src, $ignore );
}
}

6 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Please you update to versoin 4.4.2, because on last version we have similiar issue like you related first and lastname issue..

If still doesnt work, please provide me backend and FTP access on private section..

1. Edit your first post.
2. Click switch below main text field: prntscr.com/fk3hdg
3. Provide your site details: backend URL, admin credentials and FTP: prntscr.com/fk3hwz
4. Let us know that you provided credentials by posting in the same thread.

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW