| Re: CBB Hack to have notification with message text and reply link |
| by Mamba on 2009/9/4 7:24:15 Good idea! Thanks for sharing! |
| Re: CBB Hack to have notification with message text and reply link |
| by xgarb on 2009/9/3 19:47:27 if you want to mess about with the subject line in notification emails this might help. In kernel\notification.php my code looks like this (around line 669).. le="color: #000000"><?php $subjectStart = $event_info['mail_subject']; foreach ($notifications as $notification) { if (empty($omit_user_id) || $notification->getVar('not_uid') != $omit_user_id) { // user-specific tags //$tags['X_UNSUBSCRIBE_URL'] = 'TODO'; // TODO: don't show unsubscribe link if it is 'one-time' ?? $tags['X_UNSUBSCRIBE_URL'] = XOOPS_URL . '/notifications.php'; $tags = array_merge ($tags, $extra_tags); $subject = $subjectStart." : ".$tags['POST_NAME']; $notification->notifyUser($template_dir, $template, $subject, $tags); } .$tags['POST_NAME']; adds the post title onto the subject - useful when you get a lot of emails. |
| Re: CBB Hack to have notification with message text and reply link |
| by ghia on 2009/9/3 17:02:17 Mamba, was playing in this thread with his new feature, but the notified posts were deleted. On this site no. On your site you could use SQL or PHP in a custom block. |
| Re: CBB Hack to have notification with message text and reply link |
| by gtop00 on 2009/9/3 15:46:29 I Personally am very happy with the PM notification (here in XOOPS). I can have all that I am interested in one place. Can we have an automation to delete PMs older than X months IF they have not moved to the savebox? By the way: I got 10 notification PMs from the current topic instead of 5! |
| Re: CBB Hack to have notification with message text and reply link |
| by Mamba on 2009/9/3 8:21:21 Thanks, Ghia!!! This was exactly what I was looking for! There was a little bit more work involved (I had to add a new array for new full post in a thread), and define "POST_REPLY_URL" as your suggested solution le="color: #000000"><?php {POST_URL|replace:'viewtopic':'reply'} didn't work, but now it is working here on XOOPS, as I wanted... The beauty of this is that the forums will work the same as a mailing list, i.e. I receive an email with the content of the new message in the thread that I subscribe to, and with one click I can respond to that message if I want to. The same as I would hit "Reply" button on an email. So thanks again! |