Help
General ArrowChat talk that doesn't fit any other forum.
User avatar
Pala
Free
 
Posts: 1
Joined: 10 May 2013, 16:54

 

by Pala 10 May 2013, 21:59

Hello to all,

how I can make my chat so that the nicknames visable and not the usernames like it is now ?

Please help me with this its very important for my site.


Best regards,
Pala
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 11 May 2013, 14:54

In the includes/config.php file you can change the DB_USERTABLE_NAME value to be your database field that holds the nickname instead of the username.
User avatar
mattmcguire
Customer
 
Posts: 1
Joined: 23 Apr 2014, 16:24

 

by mattmcguire 07 May 2014, 10:53

Would it be possible to incorporate the function get_username($userid) from the /includes/integration.php? That way we can tweak the results as necessary. In my case, the table I'm using has both firstName and lastName fields. Within the integration.php I have it concatenate the two and return that as the users_name:

$users_name = $row['firstName'].' '.$row['lastName'];

But it could be further tweaked to limit the results to a certain number of characters, or only show first names and last initials, etc.

This could give us a little more customization without having to alter our databases to include fields aren't necessary.

Thanks for the great work so far!
User avatar
Jason
Customer
 
Posts: 2356
Joined: 12 Dec 2009, 16:06

 

by Jason 07 May 2014, 14:53

Yes, but you need to change the friends/online list MySQL statements as well and concat the username part.

The get username function is only for the logged in user for their GUI.
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 16 Dec 2014, 00:26

[b]This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.[/b]