Page 1 of 1

jomsocial notification

PostPosted: 13 Mar 2010, 23:30
by jerome
has anyone been successful in making the notifications work? my database values seems to be correct however im still not getting any notification.

platform: jomsocial

Re: jomsocial notification

PostPosted: 14 Mar 2010, 06:50
by BToth
No, they don't appear to be working for me either. I think I read somewhere they're not yet opertaional (although I don't know where I read that...I could just be making it up) :lol:

Hopefully soon!

Re: jomsocial notification

PostPosted: 14 Mar 2010, 07:14
by jerome
BToth wrote:No, they don't appear to be working for me either. I think I read somewhere they're not yet opertaional (although I don't know where I read that...I could just be making it up) :lol:

Hopefully soon!


you're on jomsocial too?

Re: jomsocial notification

PostPosted: 14 Mar 2010, 07:32
by Jason
You need to follow the instructions on www.arrowchat.com/install under step five, but it is not ready yet. We hope to have the instructions written today.

Re: jomsocial notification

PostPosted: 14 Mar 2010, 07:33
by jerome
Jason wrote:You need to follow the instructions on http://www.arrowchat.com/install under step five, but it is not ready yet. We hope to have the instructions written today.


ah no wonder, that gives light to my thought about the notifications. hope it will be ready jason. thanks for the great work.

Re: jomsocial notification

PostPosted: 25 Mar 2010, 13:33
by ISOURANAKIS
sth new with the jomsocial notifications?????

Re: jomsocial notification

PostPosted: 25 Mar 2010, 17:00
by GEdmonstone
I have tried many different variations in JomSocial to try and get the notifications working, however, without any luck so far. There must be someone with a bit of code knowledge out there that can help us out with this one. Anyone up for the challenge?

I will keep working on it, and if I get any luck, I will post it here.

Gary - Founder of www.kumbooka.com

Re: jomsocial notification

PostPosted: 25 Mar 2010, 18:05
by Chris
Sorry it's taken so long, this is definitely a top priority for us.

Re: jomsocial notification

PostPosted: 26 Mar 2010, 18:32
by vauntie
+1 from us to have this working.

Re: jomsocial notification

PostPosted: 27 Mar 2010, 15:03
by Jason
We've added the friend request and private message notifications.

http://www.arrowchat.com/install step 5

Re: jomsocial notification

PostPosted: 27 Mar 2010, 17:58
by vauntie
This is great, and on a Sunday Too!

I've tried it and it works, the only thing is that it doesn't post a notification on a reply on the original message. That would be right underneath in:

components/com_community/models/inbox.php


Code: Select all
   

function sendReply($obj, $replyMsgId){
      $db =& $this->getDBO();
      $my   =& JFactory::getUser();
      
      // get original sender from obj
      $originalMsg  = new CMessage($db);
      $originalMsg->load($replyMsgId);
      
      $recepientMsg = $this->getRecepientMessage($replyMsgId);
      $parentId = $originalMsg->parent;
      
      $db->insertObject('#__community_msg', $obj, 'id');
      
      // Update the parent
      $obj->parent = $parentId;
      $db->updateObject('#__community_msg', $obj, 'id');
      
      if(is_array($recepientMsg)){               
          $recepientId = $this->getParticipantsID($replyMsgId, $my->id);
         
         foreach($recepientId as $sToId){
             $this->addReceipient($obj, $sToId);
            
            /* 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 {
      
         // add receipient, get the 'to' address from the original
         // sender. BUT, in some case where user try to post two message in
         // a row, the 'from' will failed. instead, we need to use 'to' from
         // the original message.
         $recepientId = $originalMsg->from;
         if($my->id == $originalMsg->from){
             $recepientId = $recepientMsg->to;
         }
         $this->addReceipient($obj, $recepientId);
         
         /* ARROWCHAT NEW MESSAGE NOTIFICATION */
            $query = "INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time)
               VALUES ('".$recepientId."', '".$obj->from."', '".$obj->from_name."', '1', '".time()."')";
            $db->setQuery( $query );
            $db->query();
         /* END ARROWCHAT MESSAGE NOTIFICATION */
         
      }            
      
      return true;
   }




correct?

Re: jomsocial notification

PostPosted: 28 Mar 2010, 01:16
by ISOURANAKIS
guys sorry but its is not working properly for me ...

i have notice sth things

in goole chrome the message notification doesnt appear only if you click on the button of notifications and only for 1 sec then it is dissapear

in mozilla is see the red alert for new message but if you click on it is dissapear immediately...

as you see it is not working properly


any ideas ???

Re: jomsocial notification

PostPosted: 28 Mar 2010, 08:11
by vauntie
I am not sure about chrome. I had some problems because mootools needed to load before jquery in the header.

If I open the notifications and then close them, they are gone, and I think this is by design.

Re: jomsocial notification

PostPosted: 29 Mar 2010, 06:45
by ISOURANAKIS
any update for this guys???

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
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.