1
bumciach
Adding notifications of posted comments
  • 2009/12/3 16:36

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Hi!
How to make options for comment events visible?
I made my own module with support for notification and comments, and the two things work separately. I read the XOOPS wiki that if comments are supported by the module, options for Comment and Comment Submit notifications will appear automatically. But they don't. Is there something I have overlooked in the wiki?

2
ghia
Re: Adding notifications of posted comments
  • 2009/12/3 16:50

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think you need to add something like:
le="color: #000000"><?php <div style="text-align: center; padding: 3px; margin:3px;"> <{$commentsnav}> <{$lang_notice}> </div> <div style="margin:3px; padding: 3px;"> <!-- start comments loop --> <{if $comment_mode == "flat"}> <{include file="db:system_comments_flat.html"}> <{elseif $comment_mode == "thread"}> <{include file="db:system_comments_thread.html"}> <{elseif $comment_mode == "nest"}> <{include file="db:system_comments_nest.html"}> <{/if}> <!-- end comments loop --> </div>

in the relevant template.

3
bumciach
Re: Adding notifications of posted comments
  • 2009/12/4 13:58

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Thanks for answer Ghia.
But it display comments and I don't have trouble with this. I can add and view comments.
I cannot set notifications for posted comment. Although something like 'Notify me when a comment is posted' should be added automatically in module preferences (admin side). But there are showed only the events that have been defined in xoops_version.php.

4
ghia
Re: Adding notifications of posted comments
  • 2009/12/4 16:45

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I assume you have read this and this?

Else lookup a simple module with comments and notification and step through it and see if you have provide all settings, callback functions and other things needed that refer to comment and notification.

5
bumciach
Re: Adding notifications of posted comments
  • 2009/12/8 11:47

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Yes, I did exactly as it is written on the wiki. So comments and notification working great (independently of each other). Only thing that an event to mark the 'Notify me when a new comment is posted for this item' is missing.

I lookup News module (1.63). There are events for story ('Notify me when a new comment is posted for this item' and 'Bookmark this item') in module preferences. But in the user side is displayed only 'Bookmark this item'.

I'm using XOOPS 2.3.3. So I have updated to 2.4.2 And no problem!
It seems therefore that there must be a bug in XOOPS 2.3.3

6
bumciach
Re: Adding notifications of posted comments
  • 2010/8/23 22:50

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


Now I tracked it down!
I had this problem in all versions of XOOPS. But it is not linked directly to the XOOPS. It's the translation issue. In my language _NOT_COMMENTSUBMIT_NOTIFY and _NOT_COMMENT_NOTIFY has been translated the same way in notification.php .

However the core should protect somehow against this issue. So
I add this to bugtracker http://sourceforge.net/tracker/?func=detail&aid=3051852&group_id=41586&atid=430840

Meanwhile, I report gaps in the translation to my local support.