31
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'],



32
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.



33
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!



34
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



35
skenow
Re: Wiwimod
  • 2009/3/3 2:30

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Only 1 person providing feedback from here (JAVesey) and he's helped identify a small date/time issue in admin, which I've already fixed. Any other feedback?



36
skenow
Re: Wiwimod
  • 2009/2/26 2:29

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Quote:

JAVesey wrote:

Xoopseditors now work


The only time I have had problems with this was when there was a conflict with other modules that have an editor selector (Article) - if you run into this, clear a cookie named 'editor' and try again.

Quote:

I really like this module - so much easier for the end-user than the other wiki systems and it looks like it "belongs" rather than looking like a third-party plug-in.


Thanks - one of the main reasons I like it too - a native module always looks and integrates much better than a bridge.

I also find it one of the easiest ways to add and link pages.



37
skenow
Re: Wiwimod
  • 2009/2/25 2:55

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


@Xavier - I replied to the email address in your PM as you requested - have you received it?

I have started a beta release of SimplyWiki 1.1 and the RC release is soon to follow and I already have plans for 1.2 - are you interested in rejoining, or have other things come up?



38
skenow
Re: Hide edited by in newbb
  • 2009/2/17 1:00

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


You do not need to edit the html templates, just change the module's options.

Timelimit for recording edit info

Set a Timelimit 
for waiving recording edit infoIn minutesfor no limit



39
skenow
Re: Wiwimod
  • 2009/2/16 4:48

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Thank you, Xavier, for your kind words. I have replied to you by email, as requested in your PM.

SimplyWiki 1.1 is going beta and could use some additional review.

Regards -
Steve



40
skenow
Re: fckeditor meta tag hack
  • 2009/1/21 4:09

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


That is more a function of the news or article module you select, not the visual editor. Have a look at the News module by instantzero, or SmartSection




TopTop
« 1 2 3 (4) 5 6 7 ... 86 »



Login

Who's Online

171 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

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

Latest GitHub Commits