Activity Stream
48,167 MEMBERS
61016 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1.     
    #11
    Member
    Website's:
    Katz.Lt TorrentFiles.us
    Quote Originally Posted by jomasaco View Post
    public function processURL($var,$sep='-') {
    It has effect .u can see search queries with - instead of + then, but they dont work correctly, coz - isnt counted as word separator.

  2.   Sponsored Links

  3.     
    #12
    Member
    Try this, i havent tested it though


    Find
    PHP Code: 
      $recentsRow['queryURL'] = $core->processURL($recentsRow['query']); 
    Replace
    PHP Code: 
      $recentsRow['queryURL'] = str_replace("+""-"$core->processURL($recentsRow['query'])); 

  4.     
    #13
    Member
    Website's:
    Katz.Lt TorrentFiles.us
    Yes, 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

  5.     
    #14
    Member
    public function processURL($var,$sep='-') {

    $var = variavel
    $sep = separatore

    public function processURL($var,$sep='+') {


  6.     
    #15
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org
    ^separator
    ^variable

  7.     
    #16
    Member
    thanks guys
    still no succes

  8.     
    #17
    Member
    bump for justice

  9.     
    #18
    Member
    Website's:
    Katz.Lt TorrentFiles.us
    Found solution:
    open funcs.php
    Find:
    PHP Code: 
    if($this->search_type == "narrow") {
                    
    $sqlWhere " WHERE title LIKE '%".mysql_real_escape_string(str_replace(" ","%",$this->q))."%'"
    Replace with:
    PHP Code: 
    if($this->search_type == "narrow") {
                    
    $sqlWhere " WHERE title LIKE '%".mysql_real_escape_string(str_replace("-","%",$this->q))."%'"

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Which is the best replace tools
    By tcnnvnn in forum Webmaster Discussion
    Replies: 5
    Last Post: 29th Sep 2011, 09:40 AM
  2. Replace Google Adsense
    By nejm-stb in forum Webmaster Discussion
    Replies: 0
    Last Post: 10th Feb 2011, 02:55 AM
  3. how to replace word in vb4
    By m107 in forum vBulletin
    Replies: 13
    Last Post: 4th Sep 2010, 09:20 AM
  4. Preg replace help
    By SJshah in forum Web Development Area
    Replies: 17
    Last Post: 8th Aug 2010, 10:47 PM
  5. how to replace bad words?
    By wman in forum vBulletin
    Replies: 2
    Last Post: 19th Feb 2009, 12:18 PM

Tags for this Thread

BE SOCIAL