We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Wall comment notification - ArrowChat | Forum

Soloplayer Designs
Soloplayer Designs Jun 26 '12
wall post notification is missing due to oxwall 1.4 update but i figure out where to put the code to make the wall comment works.

Open /ow_system_plugins/base/controllers/comments.php

Find:

$comment = $this->commentService->addComment($params->getEntityType(), $params->getEntityId(), $params->getPluginKey(), OW::getUser()->getId(), $commentText, $attachment);

Add before:


/* ARROWCHAT NEW MESSAGE NOTIFICATION */
$displayName = BOL_UserService::getInstance()->getDisplayName(OW::getUser()->getId());
$sql = "INSERT INTO arrowchat_notifications (to_id, author_id, author_name, type, alert_time)
    VALUES ('".$params->getEntityId()."', '".OW::getUser()->getId()."', '".$displayName."', '3', '".time()."')";
OW::getDbo()->query($sql);
/* END ARROWCHAT MESSAGE NOTIFICATION */

Hope this one helps :)
The Forum post is edited by Soloplayer Designs Jun 30 '12
ArrowSuites
ArrowSuites Jun 27 '12
Thank you for posting!


You forgot to mention which file this is in though.

Soloplayer Designs
Soloplayer Designs Jun 30 '12
Welcome.

oh yes, but same like before

Open /ow_system_plugins/base/controllers/comments.php
You do not have permission to reply this topic