Search Reset Script

Ready-to-use scripts, modules and plugins for Silverjuke.
User avatar
bertkessels
Posts: 15
Joined: 6. Nov 05, 14:05
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Search Reset Script

Postby bertkessels » 12. Oct 08, 13:18

Hi,

Here's a script for resetting any searches or selections after a certain amount of time of user inactivity.

I use it to solve the problem that one guests makes a selection and the next guest is confused and cannot find her/his favourite song, not knowing that she/he is looking in the selection of the previous guest.

What the tool does is simply resetting any searches or selections after a certain amount of seconds of user inactivity (20 seconds works ok for me).

The script installs the tool. Activating the tool (via the context menu) opens a dialog in which resetting can be turned on or off (default is off) and the number of seconds of user inactivity can be set.
All input is stored in the .ini file and reloaded at start-up of Silverjuke.

Hope you find it useful too.
Please let me know your remarks or suggestions for improvements.

Cheers,
Bert
Attachments
search_reset_tool.sj
(2.23 KiB) Downloaded 895 times
dialog-search-reset-tool.JPG
dialog-search-reset-tool.JPG (11.3 KiB) Viewed 12418 times
Last edited by bertkessels on 30. Dec 08, 12:32, edited 2 times in total.

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby Guest » 12. Oct 08, 14:45

Thanks, I will try this.

Frank.

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby Guest » 12. Oct 08, 18:11

Yes ! l tried it.
very useful, thank you !!

User avatar
djjb
Posts: 128
Joined: 15. Nov 05, 13:41
Location: Geldrop / Holland
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby djjb » 12. Oct 08, 19:33

This is toppie!!!
Thanks for your great script.

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby Guest » 12. Oct 08, 20:03

How do i use this script? It sounds like something that i will find VERY useful

User avatar
bertkessels
Posts: 15
Joined: 6. Nov 05, 14:05
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby bertkessels » 13. Oct 08, 19:39

Guest wrote:
> How do i use this script? It sounds like something
> that i will find VERY useful

Just place the file in your Silverjuke directory and Silverjuke will load it automatically.
Press right mouse button in Silverjuke to show the context menu and select Tools. There it should show Search Reset Tool...
Good luck.
Bert

bbrodka
Posts: 16
Joined: 22. Aug 08, 20:41
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby bbrodka » 15. Oct 08, 19:21

I would like to know if you would consider expanding the functionality of this script a little bit

I want a way to view what people have searched for to give me ideas for new songs I don't already have

Simple thing would be to have you append a txt file with current search info before clearing the search

ideally (if possible) only append the txt file if the search query did not result in a match (this should be optional, so you have a choice between seeing all searches or just ones that did not match)

Thanks for the script

Guest
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby Guest » 28. Dec 08, 23:55

Hi, Great Script idea - I am having difficulty with it. I have it installed and it's telling me its active - But thats as far as it goes :-( I start a search and wait for the 10 seconds I have setup but it doesn't reset the search. Is this script compatible with older versions of Silverjuke? Many Thanks

User avatar
bertkessels
Posts: 15
Joined: 6. Nov 05, 14:05
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby bertkessels » 30. Dec 08, 12:20

This script works for Silverjuke version 2.52 beta15 and up (caused by the use of the function lastuserinput, which is not available in older releases).
What version are you currently using?

Enkil
Posts: 12
Joined: 21. Jun 08, 11:17
Location: Denmark
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Search Reset Script

Postby Enkil » 18. Jan 09, 21:43

Been missing something like that.

Thanks for the script. :)


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Extensions”