Page 1 of 1

Change notifcations to use username instead of real name

PostPosted: 10 Nov 2012, 02:17
by BGardner
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 */
}   

PostPosted: 07 Jan 2013, 07:48
by sMartina
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.

Topic Closed

PostPosted: 16 Dec 2014, 00:26
by Staff Bot
[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]