howto generate a fulltext search?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
moogli
Posts: 2
Joined: Tue Feb 24, 2009 10:30 am

howto generate a fulltext search?

Post by moogli »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hesk is an excellent programme.
Congratulations!!!
The installation and configuration is very easy.

But I have following problem: in the Admin range if I liked to generate a fulltext search with the input field "subject".
How I must define the search in the file admin / find_tickets.php to generate a search about following fields:
*tickets.subject
*tickets.message
*replies.message
*notes.message

greetings
moogli
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Sorry, this kind of editing is out of the scope of my support.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
moogli
Posts: 2
Joined: Tue Feb 24, 2009 10:30 am

Solution for fulltext search

Post by moogli »

To generate a fulltext search, I have modified the file
./admin/find_tickets.php:

Near line 90:
old:
case 'subject':
$extra = hesk_input($_GET['subject'],$hesklang['enter_subject']);
$sql .= "`subject` LIKE '%$extra%' ";
new:
case 'subject':
$sql = "SELECT *
FROM hesk_tickets
LEFT JOIN hesk_replies ON hesk_tickets.id = hesk_replies.replyto
WHERE hesk_tickets.subject LIKE '%$extra%'
OR hesk_tickets.message LIKE '%$extra%'
OR hesk_replies.message LIKE '%$extra%'";
Not nice, but it works
:-)


Greetings from Old Germany!
Post Reply