1
kaper
Searching in comments
  • 2004/2/2 12:20

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


Many valuable information is included in users' comments. Why XOOPS doesn't let access it through its search engine? Is there any hack which allows searching comments' content?

Kaper

2
jurgis
Re: Searching in comments
  • 2004/2/11 0:05

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


I have the same question ??
in System -> search prefs theres nothing about it..

3
jurgis
Re: Searching in comments
  • 2004/2/16 0:32

  • jurgis

  • Just popping in

  • Posts: 72

  • Since: 2003/3/20


well I would try to write some "comments search" hack
I looked around, and as I understand it's the issue of /modules/system

I see 2 alternatives:
1) to add search as in usual module via ./include/search.inc.php

2) to hack recent_comments block in blocks/system_blocks.php
function b_system_comments_show


so now I am confused..

1st way seems to bee more common and systematic
2nd would be faster if I would know where to put query params (I get mixed up among all kinds of handlers )

3) hey, now I remembered xoopsmembers - so probably what I (we) want is xoopscomments module ;).
in members it seems to be
$foundusers =& $member_handler->getUsers($criteriatrue);

in recent coment block important lines I guess are
$criteria = new CriteriaCompo(new Criteria('com_status'
XOOPS_COMMENT_ACTIVE));
    
$criteria->setLimit(intval($options[0]));
    
$criteria->setSort('com_created');
    
$criteria->setOrder('DESC');
    
$comments =& $comment_handler->getObjects($criteriatrue);

but I don't know how to set keyword search criteria
a big "PLEASE" to all experienced-clever-guys

4
kaper
Re: Searching in comments
  • 2004/2/16 20:24

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


Thank for your interest and the draft... maybe someone will put it into final solution?

Kaper

5
kaper
Re: Searching in comments
  • 2004/5/25 14:45

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


Now I am trying to make a simple module, which contains only a search function. Now please help me:

I can extract a module id from the xoopscomments table. How can I turn this ID into a module path? (to assemble a complete URL of a comment)

Kaper

6
kaper
Re: Searching in comments
  • 2004/6/16 10:17

  • kaper

  • Just popping in

  • Posts: 75

  • Since: 2003/4/26


So I did - you may find it here:
https://xoops.org/modules/mydownloads/visit.php?cid=24&lid=748
and look how it works (mark "Komentarze"):
http://www.zk-p.pl/xoops/search.php

Login

Who's Online

168 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

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

Latest GitHub Commits