PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
fondy
Regular
Regular


Joined: Sep 12, 2003
Posts: 55

PostPosted: Mon Feb 07, 2005 4:10 pm Reply with quote Back to top

Hello.

I have trouble with the search module. I am using version 6.5 and patched with chatserves 2.8 version. When I search for something only a few articles comes up, not all of them. I have checked the search modules index.php and found this:

$q = "select s.sid, s.aid, s.informant, s.title, s.time, s.hometext, s.bodytext, a.url, s.comments, s.topic from ".$prefix."_stories s, ".$prefix."_authors a where s.aid=a.aid $queryalang $categ";
if (isset($query)) $q .= "AND (s.title LIKE '%$query%' OR s.hometext LIKE '%$query%' OR s.bodytext LIKE '%$query%' OR s.notes LIKE '%$query%') ";

In older versions of php nuke an author could have an id like John Hansen. Now you can not have spaces between these and you have to rename the id to JohnHansen.

In the search module there are: .... where stories.aid=authors.aid ....

Do I have to delete the spaces between names in the authors table to correct the problem?

regards fondy
View user's profile Send private message Visit poster's website
fondy
Regular
Regular


Joined: Sep 12, 2003
Posts: 55

PostPosted: Tue Feb 08, 2005 4:48 am Reply with quote Back to top

Have changed line 186:

$q = "select s.sid, s.aid, s.informant, s.title, s.time, s.hometext, s.bodytext, a.url, s.comments, s.topic from ".$prefix."_stories s, ".$prefix."_authors a where s.aid=a.aid $queryalang $categ";

to this:

$q = "select s.sid, s.aid, s.informant, s.title, s.time, s.hometext, s.bodytext, a.url, s.comments, s.topic from ".$prefix."_stories s, ".$prefix."_authors a where";

and all is ok now.

regards fondy
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Feb 08, 2005 6:34 am Reply with quote Back to top

I'm glad. I looked at this briefly and was not able to see anything immediately Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
fondy
Regular
Regular


Joined: Sep 12, 2003
Posts: 55

PostPosted: Wed Feb 09, 2005 7:56 am Reply with quote Back to top

Hi Raven !

To correct the problem, I have to delete the spaces between the name in the aid field. 'John Hansen' have to be 'JohnHansen'

In phpmyadmin I use these sql statement:

UPDATE nuke_stories SET aid = 'JohnHansen' WHERE aid = 'John Hansen';

fondy
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum