Author Topic: Joomla 3 and 123Flashchat integration  (Read 1519 times)

joagj

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Joomla 3 and 123Flashchat integration
« on: April 09, 2014, 08:53:02 PM »
Hello,
I'm testing out the chat with Joomla 3. I also have JomSocial installed as a component under Joomla. The problem is that when I start the chat, the user's real name is set as "nick" and the user's nickname is set as "name". I would rather that only nickname is used. I found this when Googling the problem:
http://www.123flashchat.com/community/index.php?topic=152412.msg284070#msg284070
However, as I can see, this is for Joomla 2.5. I cannot see the same folder and file structure as mentioned in the post.
I found a file called view.html.php under components/com_123flashchat/views/flashchat. I edited this file.

The original:

if(!empty($user->name)){
         $chaturl .= "&init_nickname=".rawurlencode(htmlspecialchars_decode($user->name))

Edited to:

if(!empty($user->username)){
         $chaturl .= "&init_nickname=".rawurlencode(htmlspecialchars_decode($user->username))

This did not work. Could anyone please guide me as to what I'm doing wrong?

admin

  • Guest
Re: Joomla 3 and 123Flashchat integration
« Reply #1 on: April 09, 2014, 11:04:44 PM »
Hi friend,

Sorry for the trouble brought to u.

You can fix it by following actions:

1:) in view.html.php under <your site root path>/components/com_123flashchat/site/views/flashchat:
Change this:
if(!empty($user->name)){
$chaturl .= "&init_nickname=".rawurlencode(htmlspecialchars_decode($user->name));
}
To this:
/**
if(!empty($user->name)){
$chaturl .= "&init_nickname=".rawurlencode(htmlspecialchars_decode($user->name));
}
**/

2:)Then do following action in controller.php under <your site root path>/components/com_123flashchat/site:
Change this:
if(!empty($row['name'])){
$url .= '&nk='.$row['name'];
}
To this:
/*if(!empty($row['name'])){
$url .= '&nk='.$row['name'];
}*/

3. Save above changes and clear your browser cache to check if it's fixed.

Regards,
Admin

joagj

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Joomla 3 and 123Flashchat integration
« Reply #2 on: April 23, 2014, 10:30:39 AM »
Thank you very much!
Implemented and works like a charm. :)

admin

  • Guest
Re: Joomla 3 and 123Flashchat integration
« Reply #3 on: April 23, 2014, 10:01:16 PM »
You are welcome, have any questions feel free to contact us.

Regards,
Admin

 

Powered by Greek-Chat.gr