Results 1 to 3 of 3

Thread: Search using * and - brings up coding error

  1. #1
    Join Date
    Oct 2007
    Posts
    126

    Default Search using * and - brings up coding error

    I was doing a search on my site using * and found it brought up a coding error. Also the minus sign - does this too. Is there a way of catching invalid characters in the search? (Like maybe less than 4 characters) I tried on other vshare sites and it is the same result.
    CasselmanCanada.com (free access)


  2. #2

    Default

    Hi,

    To fix it, do the following.

    Open file search_videos.php and find
    Code:
    if ($search_string == '')
    replace with
    Code:
    if ($search_string == '' || mb_strlen($search_string) < 4)
    this will only search videos with string has greater than 3 in length.

    If you can't get it fixed, open a support ticket at

    http://helpdesk.buyscripts.in/open.php

    with your vshare admin and FTP login details

    Thanks,
    Buyscripts Team.
    Last edited by vshare2; 05-23-2011 at 09:33 AM.

  3. #3
    Join Date
    Oct 2007
    Posts
    126

    Default Exactly the fix needed.

    That's it. Thanks again.
    CasselmanCanada.com (free access)


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •