21
Catzwolf
Re: Wiwimod
  • 2009/3/17 13:22

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Steve,

I will download later tonight after and I will have a look of the code and other items for you k?

Thanks for your continued work on this module :)

Sorry I didn't see this before.

Catz

22
sailjapan
Re: Wiwimod

I'm trying this module out. Haven't come across any problems yet, and like it a lot. Will keep you posted.
Never let a man who does not believe something can be done, talk to a man that is doing it.

23
Anonymous
Re: Wiwimod
  • 2009/3/17 14:41

  • Anonymous

  • Posts: 0

  • Since:


Quote:
sailjapan wrote:

I'm trying this module out. Haven't come across any problems yet........


Me neither...... much better than the version I'm using, so much so that I'll be putting this version on my live site later this week. Can't see the point in waiting as any changes will be small between now and final release

24
skenow
Re: Wiwimod
  • 2009/3/20 2:52

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


I found a few things, but nothing too serious - already fixed and the release moves to RC1.

Details and announcement are here

25
Anonymous
Re: Wiwimod
  • 2009/3/20 8:52

  • Anonymous

  • Posts: 0

  • Since:


Very many thanks for the RC1 - I will install it this evening

26
nmshah
Re: Wiwimod
  • 2009/3/28 10:02

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


I am using simplywiki on one of my sites. The module folder is renamed to content. the module install and operations are all working great. The only problem is when i use the XOOPS search, it does not include results from this module. Is this a bug or am i doing something wrong.

Its probably the best basic content and wiki module for XOOPS right now. Thanks for the great module.

The site url where the module is installed
http://californiahypnosis.in/

Module in operation here
http://californiahypnosis.in/modules/content/index.php?page=Courses+Offered

27
skenow
Re: Wiwimod
  • 2009/3/28 13:55

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


That's a bug - I'll have it fixed shortly. Basically, the search query needs to be updated for the new table structure, it should work fine in 1.0 - 1.01.

Thanks for the feedback!

28
skenow
Re: Wiwimod
  • 2009/3/28 14:45

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


OK, sorry for the delay

In SimplyWiki 1.1, open include/search.php and replace the search function with this
function swiki_search($queryarray$andor$limit$offset$userid)
{
    global 
$xoopsDB;
    
    
$sql 'SELECT * FROM '.$xoopsDB->prefix('wiki_pages').' p, '.$xoopsDB->prefix('wiki_revisions').' r WHERE p.pageid=r.pageid AND p.lastmodified=r.modified';
    if (
is_array($queryarray) && ($count count($queryarray))) {
        
$sql .= ' AND (p.title LIKE "%'.$queryarray[0].'%" OR r.body LIKE "%'.$queryarray[0].'%")';
        for(
$i 1$i $count$i++) {
            
$sql .= ' $andor (p.title LIKE "%'.$queryarray[$i].'%" OR r.body LIKE "%'.$queryarray[$i].'%")';
        }
    } else {
        
$sql .= ' AND r.userid='.$userid.'';
    }
    
$sql .= ' ORDER BY r.modified DESC';
 
    
$items = array();
    
$prf = new WiwiProfile();
    
$result $xoopsDB->query($sql$limit$offset);
     while(
$myrow $xoopsDB->fetchArray($result)) {
        
$prf->load($myrow['prid']); 
        if (
$prf->canRead()) {
            
$items[] = array(
                 
'title' => $myrow['title'],
                 
'link' => 'index.php?page='.$myrow['keyword'],
                 
'time' => formatTimestamp(strtotime($myrow['modified']), _SHORTDATESTRING),
                 
'uid' => $myrow['userid'],
                 
'image' => '../../images/quote.gif'
             
);
        }
    }
    
    return 
$items;
}


Looking at 1.0 (Wiwimod 0.8.3+), I don't think it works there, either - the LIKE conditions are not properly enclosed in quotes and there are no wildcards.

29
skenow
Re: Wiwimod
  • 2009/3/28 16:05

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Just discovered one more correction to be made in the search function - SimplyWiki stores dates in the DB as DATETIME values (YYYY-MM-DD HH:MM:SS) and the system search expects the date/time for the search results to be a UNIX timestamp. So, to get everything matched up, change this line
'time' => formatTimestamp(strtotime($myrow['modified']), _SHORTDATESTRING),
to
'time' => strtotime($myrow['modified'],

30
Anonymous
Re: Wiwimod
  • 2009/3/28 16:41

  • Anonymous

  • Posts: 0

  • Since:


Thanks for the bug-fixes - there's been a fair bit of work for you sorting out the date/time formatting

Hadn't noticed the search one - sorry

Quote:
nmshah wrote:

Its probably the best basic content and wiki module for XOOPS right now. Thanks for the great module.


To my mind it's certainly the best wiki module and also the easiest to use.

Login

Who's Online

160 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

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

Latest GitHub Commits