Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Xoops FAQ V1.15 Beta Released
by blackrx on 2010/2/21 3:36:15

searching is not working...xoopsfaq is not listed in profile and also searching FAQ using search.php don't have any results



search.inc.php
<?php /** * Name: search.inc.php * Description: Search function for XOOPS FAQ Module * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package : XOOPS * @Module : XOOPS FAQ * @subpackage : Search Functions * @since 2.3.0 * @author John Neill * @version $Id: search.inc.php 0000 10/04/2009 09:04:24 John Neill $ */ defined( 'XOOPS_ROOT_PATH' ) or die( 'Restricted access' ); /** * xoopsfaq_search() * * @param mixed $queryarray * @param mixed $andor * @param mixed $limit * @param mixed $offset * @param mixed $userid * @return */ function xoopsfaq_search( $queryarray, $andor, $limit, $offset, $userid ) { global $xoopsDB; $ret = array(); if ( $userid != 0 ) { return $ret; } $sql = "SELECT contents_id, category_id, contents_title, contents_contents, contents_time FROM " . $xoopsDB->prefix( "xoopsfaq_contents" ) . " WHERE contents_visible=1 "; // because count() returns 1 even if a supplied variable // is not an array, we must check if $querryarray is really an array $count = count( $queryarray ); if ( $count > 0 && is_array( $queryarray ) ) { $sql .= "AND ((contents_title LIKE '%$queryarray[0]%' OR contents_contents LIKE '%$queryarray[0]%')"; for ( $i = 1; $i < $count; $i++ ) { $sql .= " $andor "; $sql .= "(contents_title LIKE '%$queryarray[$i]%' OR contents_contents LIKE '%$queryarray[$i]%')"; } $sql .= ") "; } $sql .= "ORDER BY contents_id DESC"; $result = $xoopsDB->query( $sql, $limit, $offset ); $i = 0; while ( $myrow = $xoopsDB->fetchArray( $result ) ) { $ret[$i]['image'] = "images/question2.gif"; $ret[$i]['link'] = "index.php?cat_id=" . $myrow['category_id'] . "#" . $myrow['contents_id']; $ret[$i]['title'] = $myrow['contents_title']; $ret[$i]['time'] = $myrow['contents_time']; $i++; } return $ret; } ?>
Re: Xoops FAQ V1.15 Beta Released
by blackrx on 2010/2/7 12:06:42

nevermind


fount it here

http://www.frxoops.org/uploads/referentiel/modules/xoops_mod_xoopsfaq.v1.15.zip
Re: Xoops FAQ V1.15 Beta Released
by blackrx on 2010/2/7 12:00:59

anyone know where to download this module... xoosla.com is close
Re: Xoops FAQ V1.15 Beta Released
by demian on 2009/4/18 14:16:11

thanks for the module update
Re: Xoops FAQ V1.15 Beta Released
by bumciach on 2009/4/16 7:51:06

I don't know it's bug ;) I just noticed the difference between admin/index.php and admin/category.php.

category.php line 70
le="color: #000000"><?php if ( is_object( $obj ) ) { ... if ( $category_handler->insert( $obj, true ) ) { redirect_header( 'category.php', 1, _XO_LA_DBSUCCESS ); } } $category_handler->displayError( _XO_LA_ERRORCOULDNOTADDCAT );


index.php line 70
le="color: #000000"><?php if ( is_object( $obj ) ) { ... $ret = $contents_handler->insert( $obj, true ); if ( $ret ) { redirect_header( 'index.php', 1, _XO_LA_DBSUCCESS ); } } $contents_handler->displayError( $ret );


$ret return only contents_id. Maybe $obj->getErrors() or something instead?

Who's Online

208 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

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

Latest GitHub Commits