chuushi / CoreProtect-Lookup-Web-Interface

A flexible lookup web interface for CoreProtect 2
MIT License
50 stars 14 forks source link

Exclusive Filter for Keyword Search #15

Open Dyllaann opened 7 years ago

Dyllaann commented 7 years ago

Hey.

I was wondering if there was a way to implement a filter for results? I don't want /login and /register commands showing up in the logs.

chuushi commented 7 years ago

I can look into it when I have more free time. It's definitely something I will want to add.

Dyllaann commented 7 years ago

Found a hardcode way to do this myself.

/res/js/lookup.js : line 485

485 for (i = 0; i<r.length; i++) {
486            if((r[i].data.indexOf("login") !== -1) || (r[i].data.indexOf("register") !== -1)){continue;}
487            // UNIX to JS Date

Copy and paste my line 486 and paste it in between the for loop and comment.

chuushi commented 7 years ago

I might code it in the PHP backend rather than after getting the data. I'll most likely do it this month.

chuushi commented 4 years ago

I'll look into implementing this at pre3 or pre4, which should come in the coming weeks!

tomas-kucera commented 3 years ago

Somewhat related to this. I am using sqlite database (for the moment) and the keyword search seemed to be not working at all.

I had implemented it for the Chat Messages, Commands and Usernames. Can push or send details of the implementation.

I have some potential TODO:

Interrested?