Help
Ask questions about how to do or fix things in Arrowchat
User avatar
BGardner
Customer
 
Posts: 6
Joined: 08 Oct 2012, 09:46

 

by BGardner 10 Nov 2012, 02:17

How do I edit the code in com_community/models/inboc.php to use the username instead of the real name?

Code: Select all
   /* ARROWCHAT NEW MESSAGE NOTIFICATION */
      $query = "INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time)
         VALUES ('".$sToId."', '".$obj->from."', '".$obj->from_name."', '1', '".time()."')";
      $db->setQuery( $query );
      $db->query();
   /* END ARROWCHAT MESSAGE NOTIFICATION */
   }         
} else {
   //single recepient
   $this->addReceipient($obj, $vars['to']);
   
   /* ARROWCHAT NEW MESSAGE NOTIFICATION */
      $query = "INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time)
         VALUES ('".$vars[to]."', '".$obj->from."', '".$obj->from_name."', '1', '".time()."')";
      $db->setQuery( $query );
      $db->query();
   /* END ARROWCHAT MESSAGE NOTIFICATION */
}   
User avatar
sMartina
Customer
 
Posts: 1
Joined: 23 Nov 2012, 21:07

 

by sMartina 07 Jan 2013, 07:48

Hi, anyone know how to do this. I have the same problem and don't want to show real-name in notification. In the chat it shows username and want the notification to do the same.
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]