[geeklog-modules] Where Do Plugin Comments Go?

Blaine Lang langmail at sympatico.ca
Mon Mar 17 20:52:24 EST 2003


Joat, Plugins can use the GL comment engine. The FileMgmt Plugin is an
example of this. You should review the Plugin Developers Guide - link is in
the References Block on the main gl.net site.

Blaine
----- Original Message -----
From: "Joat Dede" <w9c at earthlink.net>
To: <geeklog-modules at lists.geeklog.net>
Sent: Monday, March 17, 2003 6:39 PM
Subject: [geeklog-modules] Where Do Plugin Comments Go?



> Can plugins add comments to GL's comments table or is that one

> reserved for stories and polls only? After going through the

> core code, it appears it wouldn't harm anything to add comments

> from other plugins into it.

>

> Where are we suppose to add search capability for comments --

> inside search.php or self-contained in the plugin? If it's the

> latter, then this section here in the function searchform will

> pull up user uids on all comments including those inserted by

> other plugins (if we're allowed to add to that table). This only

> becomes an issue though if the visitor selects the type

> "comments" and the user never made any to stories and polls. I'm

> not sure if this would cause a fatal error or a no results found

> message.

>

> if ($_CONF['contributedbyline'] == 1) {

> $searchform->set_var('lang_authors', $LANG09[8]);

> $searchusers = array();

> $result = DB_query("SELECT DISTINCT uid FROM

> {$_TABLES['comments']}");

> for ($i = 1; $i <= DB_numRows($result); $i++) {

> $A = DB_fetchArray($result);

> $searchusers[$A['uid']] = $A['uid'];

> }

>

> Joat

>

> _______________________________________________

> geeklog-modules mailing list

> geeklog-modules at lists.geeklog.net

> http://lists.geeklog.net/listinfo/geeklog-modules

>





More information about the geeklog-modules mailing list