Discuss or request ArrowChat site notifications
User avatar
vauntie
Customer
 
Posts: 14
Joined: 26 Mar 2010, 05:42

 

by vauntie 28 Mar 2010, 15:19

this will work for walls notification. At least for now, until there is an official mod.

in plugins\community\walls.php

at the bottom of function ajaxSaveWall add:
Code: Select all
/* ARROWCHAT WALL POST NOTIFICATION */
            if ( $uniqueId != $my->id ){
               $query = "INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time)
               VALUES ('".$uniqueId."', '".$my->id."', '".$my->name."', '3', '".time()."')";
               
               $db =& JFactory::getDBO();
               $db->setQuery( $query );
               $db->query();
            }
            /* END ARROWCHAT WALL POST NOTIFICATION */   


The function itself is broken and azrul is aware of that, and say it will be fixed in the next release. The problem is that $my->id and $user->id are always equal which should not be. The above will work though, for now.
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 21:41

 

by Staff Bot 07 Nov 2012, 20:40

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.