1
macelee
use the comment system multiple times in the same module
  • 2005/6/11 7:18

  • macelee

  • Just popping in

  • Posts: 16

  • Since: 2005/2/7 1


In my module I have two sets of contents, for example: page1.php?id=xxxx and page2.php?id=xxxx

Is that possible to use the internal XOOPS comment system with both pages? Or do I have to make two modules?

2
hervet
Re: use the comment system multiple times in the same module
  • 2005/6/12 12:38

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hi,

You can use the comment system in the same module.
Take any module as a model, for example the News module

Bye,
Hervé

3
macelee
Re: use the comment system multiple times in the same module
  • 2005/6/13 15:13

  • macelee

  • Just popping in

  • Posts: 16

  • Since: 2005/2/7 1


Can you give more details please?

I have the following in my xoops_version.php

// Comments
$modversion['hasComments'] = 1;
$modversion['comments']['pageName'] = 'page1.php';
$modversion['comments']['itemName'] = 'id';


I don't see how is that possible to copy the last two lines of code multiple times to define another set of comments for 'page2.php' in the same module.

4
wcrwcr
Re: use the comment system multiple times in the same module
  • 2005/6/13 15:31

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi macelee

I guess that the line
$modversion['comments']['pageName'] = 'page1.php';

refers to where the possibility of post comments will shows up.

For instance looking where herve told us, we have:

$modversion['hasComments'] = 1;
$modversion['comments']['pageName'] = 'article.php';
$modversion['comments']['itemName'] = 'storyid';


where (i guess) "article.php" file is the container of all news.

Hope this helps a bit, since i?m not a coder, ok?

Luck

5
Mithrandir
Re: use the comment system multiple times in the same module

Currently only one page in a module can have comments.

I'm planning to take a look at this for XOOPS 2.4, to be released during the Autumn (Late September/early October)

Login

Who's Online

192 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 192


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits