Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
taskfreak.com
Pages: [1] 2
  Print  
Author Topic: Quick 'n' Dirty Search Plugin  (Read 13339 times)
dadaemon
Anglefish
*
Posts: 21


« on: March 26, 2007, 09:15:17 AM »

Quick 'n' Dirty Search Plugin Version 0.0.1 for Multi User 0.5.7 available. (Works with 0.6.1!)

More information here:
http://forum.taskfreak.com/index.php?topic=516.0
Download
See attachment


Version 0.0.1 -- March 26, 2007
---------------------------------
+ Made a plugin from the code xdu has written so it would be easier to implement the search into TaskFreak!
+ Three supported languages. (English, French and Dutch.)

Notes
---------------------------------
As mentioned by the original author
Quote
This has NOT been heavily tested, and comes with no warranty of any kind. It is notably a HUGE security breach, as a SQL statement may be freely executed, with no syntax check at all. Don't use outside your LAN!

PS: I don't hope Searcher would mind me taking his plugin posts as base of this topic.
« Last Edit: March 27, 2007, 01:21:32 AM by dadaemon » Logged
Searcher
Global Moderator
Hammerhead shark
*****
Posts: 1766



WWW
« Reply #1 on: March 26, 2007, 07:53:03 PM »

Splendid! Grin

Searcher doesn't mind at all, just few mininotes..
- why 0.5.7 if it works with 0.6.1
- u didn't change the copied changelog.txt
- it's not really such a security breach because it's using the default taskfreak query syntax so it is being sanitized after all (right, Stan?)

I love your plugin, you should run through the forum and make few more like this Roll Eyes
Logged

dadaemon
Anglefish
*
Posts: 21


« Reply #2 on: March 27, 2007, 01:26:15 AM »

Searcher,

- Since plugins aren't officially supported in 0.6.1 (see the download page) and your plugin manager hasn't been written for 0.6.1. (Give us an updated version! Smiley)
- ok changed the changelog
- Well. I'll wait for his anwser then remove the warning if needed

I've just changed the search hack into a plugin version. All credits goes to xdu!
But I will look for more handy additions to Taskfreak. Realy love it!


Logged
Searcher
Global Moderator
Hammerhead shark
*****
Posts: 1766



WWW
« Reply #3 on: March 27, 2007, 06:03:20 AM »

DaDaemon,

- Blah blah blah, blah blah.. I'm waiting for 0.6.2 Grin
- Smiley
- Very responsible!
Logged

stan
Administrator
Hammerhead shark
*****
Posts: 1077



WWW
« Reply #4 on: March 27, 2007, 08:25:02 AM »

Oh Searcher, 0.6.0 wasn't stable, but I think 0.6.1 is OK. ...
Logged
Searcher
Global Moderator
Hammerhead shark
*****
Posts: 1766



WWW
« Reply #5 on: March 27, 2007, 08:57:34 AM »

Oh Stan, when I read between your lines I can read '0.6.2 is not coming soon' sad
Does it mean that you are not done with subtasks yet? Roll Eyes
Logged

stan
Administrator
Hammerhead shark
*****
Posts: 1077



WWW
« Reply #6 on: March 27, 2007, 09:06:03 AM »

Subtasks will be in 1.0
I don't plan to work on 0.x anymore
Logged
Searcher
Global Moderator
Hammerhead shark
*****
Posts: 1766



WWW
« Reply #7 on: March 27, 2007, 09:38:04 AM »

Excellent, Searcher's calmed down Wink
Logged

Ralf

Posts: 2


« Reply #8 on: April 11, 2007, 05:16:50 PM »

@ dadaemon

nice ... when you want, here is the code for German (./de/freak.php):

Code:
---[find]---
'warning_install' => 'Der Installationsordner existiert noch. Sie sollten ihn aus Sicherheitsgründen löschen'
---[replace]---
'warning_install' => 'Der Installationsordner existiert noch. Sie sollten ihn aus Sicherheitsgründen löschen',
'search' => 'Suche'

Thanks Ralf
Logged
v-kooistra
Anglefish
*
Posts: 18


« Reply #9 on: May 15, 2007, 06:07:39 AM »


dutch translation:
Code:
---[find]---
'warning_install' => 'De installatiemap bestaat nog. Verwijder deze uit veiligheids overwegingen'
---[replace]---
'warning_install' => 'De installatiemap bestaat nog. Verwijder deze uit veiligheids overwegingen',
'search' => 'Zoeken'

why not making this with then Global language array?
allot easier with multilanguage

gr vk
Logged
Searcher
Global Moderator
Hammerhead shark
*****
Posts: 1766



WWW
« Reply #10 on: May 15, 2007, 08:47:54 AM »

and what is the include/language/nl/freak.php in your opinion? Cheesy
Logged

sonvan
Scorpionfish
***
Posts: 71


« Reply #11 on: May 15, 2007, 02:59:01 PM »

How can you make the search box to search everything instead of only the listed task?
Logged
sonvan
Scorpionfish
***
Posts: 71


« Reply #12 on: May 22, 2007, 02:51:33 AM »

anyone figure out how to search for the whole database instead of just the listed yet?
Logged
Searcher
Global Moderator
Hammerhead shark
*****
Posts: 1766



WWW
« Reply #13 on: May 22, 2007, 05:55:11 AM »

the filters begin on line 39 of index.php
Code:
$arrFilters = array();
and end with
Code:
// --- Task order ---------------------------------------------------------
what you need to do is to move the entire search script above and the rest of the filters enclose into an else { } statement
Code:
// search filter
$pSearch = ($_REQUEST['search']);
if ($pSearch) {
  $sqlFilter = '(ii.title LIKE \'%'.$pSearch.'%\' OR ii.description LIKE \'%'.$pSearch.'%\')';
  $objItemList->addWhere($sqlFilter);
}
else {
  $arrFilters = array();
.
.
.
}
// --- Task order ---------------------------------------------------------
Logged

sonvan
Scorpionfish
***
Posts: 71


« Reply #14 on: May 22, 2007, 10:51:35 AM »

I tried this but it still didn't work. It would just search for what's being displayed =(
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Darkz Theme By [S.W.T]