Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Thu Jun 10, 2004 2:43 pm Reply with quote

It does not seem to work. Can a field be added to search by author? I think this would be a good addition to the downloads module...
 
View user's profile Send private message Visit poster's website
blith







PostPosted: Thu Jun 10, 2004 2:57 pm Reply with quote

please delete I explained better in next post. Thanks


Last edited by blith on Thu Jun 10, 2004 3:03 pm; edited 1 time in total 
blith







PostPosted: Thu Jun 10, 2004 3:02 pm Reply with quote

In downloads index find
Code:
$result = $db->sql_query("SELECT lid, cid, title, url, description, date, hits, downloadratingsummary, totalvotes, totalcomments, filesize, version, homepage FROM ".$prefix."_downloads_downloads WHERE title LIKE '%$query%' OR description LIKE '%$query%' ORDER BY $orderby LIMIT $min,$downloadsresults");


and add
Code:
name,
after
Code:
date,

and then add
Code:
OR name LIKE '%$query%'
after
Code:
OR description LIKE '%$query%'



then find
Code:
$fullcountresult = $db->sql_query("SELECT lid, title, description, date, hits, downloadratingsummary, totalvotes, totalcomments FROM ".$prefix."_downloads_downloads WHERE title LIKE '%$query%' OR description LIKE '%$query%' OR name LIKE '%$query%' ");
and add
Code:
OR name LIKE '%$query%'
after
Code:
OR description LIKE '%$query%'

 
SmackDaddy
Involved
Involved



Joined: Jun 02, 2004
Posts: 268
Location: Englewood, OH

PostPosted: Thu Jun 10, 2004 3:15 pm Reply with quote

Does this work for articles too? I am finding that when I look at a news article written by someone.....and click "read more by" that author, I get a search page, but when I try and search, it always sends me to that empty search page over and over no matter which options I choose..... Sad Question


Last edited by SmackDaddy on Fri Jun 11, 2004 7:50 am; edited 1 time in total 
View user's profile Send private message Send e-mail Visit poster's website
blith







PostPosted: Fri Jun 11, 2004 7:43 am Reply with quote

I am not sure. If you could find those same lines in the articles module then I am sure it would.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©