Conjecture - replacement for comments

Date 2006/10/31 10:57:28 | Topic: Modules

Have you ever thought that it is annoying with comments being different from the discussion forums?

Have you ever experienced double-postings in both comments and discussion forums?

Well, Cusix Software has a possible solution: Conjecture.

Conjecture adds a block with comments that are actually forum topics - residing in a forum that is configured through the administration.

That way, you won't need a separate comments block for some discussions and a block for forum topics, fragmenting discussions and encouraging double-postings.

Download here

Install the module, assign forums to modules through the administration, and enable the comments block (I suggest a bottom center placement) and you are all set.

The module requires PHP 5

The module is tested with CBB 3.05 and 3.07, other versions are not guaranteed to work

You must grant module access to Conjecture for posting - but there is no reason to have it in the main menu

Support for some modules is included - it is very easy to extend with even more modules - and next thoughts go in the direction of allowing e.g. the News module to have different forums assigned to different news topics. However, currently there is only one forum possible for each module.



How to extend with more modules:

1) Add a file in modules/conjecture/class/ called [moduledirname].php
2) include_once(XOOPS_ROOT_PATH."/modules/conjecture/class/comments.php");
3) Make a new class called Conjecture[Moduledirname]Handler that extends ConjectureCommentsHandler
4) Make a constructor that calls the parent's constructor
5) Add $this->pages['filename'] = array('param' => 'param_name', 'handler' => 'handler_name'); replacing filename with the name of the accessed script in the module. param_name is e.g. id, itemid or storyid. handler_name is the name of the handler, handling the objects
6) If no param is set, you MUST override the getId() class function to set $this->item_id
7) If no handler is set, you MUST override the getTitle() class function to set the title of the forum topic properly

You can add several $this->pages indexes if you have multiple item types with comments.

The module should automatically pick up the new available class if the module is installed.



This article comes from XOOPS Web Application System
https://xoops.org

The URL for this story is:
https://xoops.org/modules/news/article.php?storyid=3485