Results 11 to 18 of 18
-
4th Aug 2011, 09:56 AM #11MemberWebsite's:
Katz.Lt TorrentFiles.us
-
4th Aug 2011, 10:02 AM #12Member
Try this, i havent tested it though
Find
PHP Code:$recentsRow['queryURL'] = $core->processURL($recentsRow['query']);
PHP Code:$recentsRow['queryURL'] = str_replace("+", "-", $core->processURL($recentsRow['query']));
-
4th Aug 2011, 11:49 AM #13MemberWebsite's:
Katz.Lt TorrentFiles.usYes, this code replaces - with + and this request <? echo $q?> brings up variable without + or -, but list of downloads is still not showing up. Example:
Im searching for ?q=windows-7-ultimate, then <? echo $q?> will show windows 7 ultimate, but it gives 0 search results. Searhing for ?q=windows+7+ultimate <? echo $q?> will still show windows 7 ultimate, and seach brings many results too
EDIT: Code above changes + to - in search query url, but it doesnt works at all It seems i had
$q = str_replace("-", " ", $q); in my index.php code, so thats why <? echo $q?> was displayed without - or + I removed it, and with above suggested code changes <? echo $q?> brings up windows-7-ultimate.
Suggestion below doesnt works either as it was 1st thing i tried to change, in fact it does exactly the same thing as code above, but it stil ldoesnt brings up search results
-
4th Aug 2011, 11:57 AM #14Member
-
4th Aug 2011, 12:06 PM #15
-
4th Aug 2011, 02:57 PM #16OPMember
thanks guys
still no succes
-
8th Aug 2011, 06:55 PM #17OPMember
bump for justice
-
8th Aug 2011, 09:05 PM #18MemberWebsite's:
Katz.Lt TorrentFiles.usFound solution:
open funcs.php
Find:
PHP Code:if($this->search_type == "narrow") {
$sqlWhere = " WHERE title LIKE '%".mysql_real_escape_string(str_replace(" ","%",$this->q))."%'";
PHP Code:if($this->search_type == "narrow") {
$sqlWhere = " WHERE title LIKE '%".mysql_real_escape_string(str_replace("-","%",$this->q))."%'";
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Which is the best replace tools
By tcnnvnn in forum Webmaster DiscussionReplies: 5Last Post: 29th Sep 2011, 09:40 AM -
Replace Google Adsense
By nejm-stb in forum Webmaster DiscussionReplies: 0Last Post: 10th Feb 2011, 02:55 AM -
how to replace word in vb4
By m107 in forum vBulletinReplies: 13Last Post: 4th Sep 2010, 09:20 AM -
Preg replace help
By SJshah in forum Web Development AreaReplies: 17Last Post: 8th Aug 2010, 10:47 PM -
how to replace bad words?
By wman in forum vBulletinReplies: 2Last Post: 19th Feb 2009, 12:18 PM
themaCreator - create posts from...
Version 3.17 released. Open older version (or...