forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Searching => Topic started by: Stramm on April 28, 2006, 12:49:29 pm

Title: Indexed and organized keyword list on search page
Post by: Stramm on April 28, 2006, 12:49:29 pm
Same small hack... check the attached pics and you know what it's doing

Installation: Download the attached zip, extract it, upload keyword.inc.php in your include dir overwriting the existing file
Title: Re: Indexed and organized keyword list on search page
Post by: Beyond_Doubt on May 04, 2006, 01:17:35 am
Thank you for this.
Nice and easy, and looks nice.
Title: Re: Indexed and organized keyword list on search page
Post by: Beyond_Doubt on May 18, 2006, 02:22:11 am
Hi,

This appears to be causing an error

Browser Type : Safari 2.0.3
Error: NSURLErrorDomain:-1011 which prevents the page loading

This apparantly is a browser error when it gets served a form it can't understand.

Other installations of coppermine in the same place, but without this hack in place, do not give the same problems.


Any thoughts, or suggestions?
Title: Re: Indexed and organized keyword list on search page
Post by: Stramm on May 18, 2006, 08:53:56 am
try emptying the cache and clearing the history
Title: Re: Indexed and organized keyword list on search page
Post by: flogghe on May 29, 2006, 09:28:36 pm
Thanks, works fine

I have quite some keywords. Is there an option to use wordwrap? If you look at my site http://www.ibiblio.org/maritime/photolibrary/search.php (http://www.ibiblio.org/maritime/photolibrary/search.php), you notice that you have to scroll horizontal. Is this because of the code or is this a theme issue?

Kind regards,
Frederic
Title: Re: Indexed and organized keyword list on search page
Post by: Stramm on May 30, 2006, 08:14:36 am
easy to change, just chose another delimiter
find ~line 23
Code: [Select]
define("DELIMITER", " | ");and modify it to your needs, eg
Code: [Select]
define("DELIMITER", " | ");
Title: Re: Indexed and organized keyword list on search page
Post by: flogghe on June 03, 2006, 11:45:34 pm
Thanks  :D

Looks much better now!!!

Frederic
Title: Re: Indexed and organized keyword list on search page
Post by: redlock on May 08, 2007, 01:39:59 pm
hi,

it works fine,
but the german letters for example , ... are not supported.
In the orginal file they are supported.

thanks for help.

redlock
Title: Re: Indexed and organized keyword list on search page
Post by: Stramm on May 08, 2007, 06:56:13 pm
search for
Code: [Select]
strtolowerand replace it with
Code: [Select]
utf_strtolower
Title: Re: Indexed and organized keyword list on search page
Post by: redlock on May 10, 2007, 09:06:19 am
it works
thanks
Title: Re: Indexed and organized keyword list on search page
Post by: majay on July 20, 2007, 12:06:47 am
Thanks for this mod!

Is there a way to allow a line feed (or carriage return, not sure what it's called) of the keywords list instead of having one line only?
Title: Re: Indexed and organized keyword list on search page
Post by: Nibbler on July 20, 2007, 12:20:33 am
See Stramm's previous reply - http://forum.coppermine-gallery.net/index.php?topic=30900.msg148719#msg148719

Change the delimiter to <br /> to make a new line.
Title: Re: Indexed and organized keyword list on search page
Post by: majay on July 21, 2007, 01:33:02 am
Oh I see, I didn't realise flogghe's question was about the same problem as me. Thank you.
Title: Re: Indexed and organized keyword list on search page
Post by: eka on July 22, 2007, 09:10:42 am
Thanks Stramm.
It worked wonderfully on my site.
Thank you so much.
Title: Re: Indexed and organized keyword list on search page
Post by: eka on July 22, 2007, 04:48:01 pm
Hi Stramm,

Just trying to figure out - what comes under the numerals 1-9 which also is in the list of keywords.
Does it mean, if I type in any numeral from 1 to 9 as keyword for any album, the album will be listed under 1-9 ?

Thanks.
Title: Re: Indexed and organized keyword list on search page
Post by: kad75 on September 19, 2007, 12:35:03 am
Hello,

I have many keywords (>4000).

It's possible to only put :

A/B/C/D

and no

A/B/C/D
with
A ...
B ...
C ...
D ...

look my exemple. Thank you  ;)

[Edit GauGau] Replaced hotlinked images with attachments [/Edit]
Title: Re: Indexed and organized keyword list on search page
Post by: Heroe on January 19, 2009, 12:16:54 am
Hi Stramm,how to make the cyrillic letters grouped in the search list,at the moment all my keywords are cyrillic and they appear grouped in  "1-9" i want to have а.б.в.г.д too if its possible ??? Do you know how ?
Title: Re: Indexed and organized keyword list on search page
Post by: Stramm on January 19, 2009, 07:55:22 am
in the code find
Code: [Select]
if (($word < "A" or $word >"Z")) {
and change it to your needs (starting and ending cyrillic char)

find
Code: [Select]
$index_list .= spacer($oldword, strncasecmp("Z", $word, 1));
change Z to ending cyr. char

that should do I guess
Title: Re: Indexed and organized keyword list on search page
Post by: Heroe on January 19, 2009, 11:46:11 am
Thanks stramm i did exactly what you wrote in yr last post the result is; now on my search list i have just "1-9" ;(   
Title: Re: Indexed and organized keyword list on search page
Post by: jakob.b on February 12, 2009, 05:06:45 pm
First I like to thank you Stramm for this nice plugin.

After appying the Security release cpg1.4.2, the plugin is gone. The keywords are just displayed in the old way, in the pluginmanager it still shows as installed with the only option to delete.

Is it save just to delete and reinstall? Do I have to do that after each update? Or did I do somthing wrong?

Thank you, Jakob
Title: Re: Indexed and organized keyword list on search page
Post by: Nibbler on February 12, 2009, 05:14:52 pm
It's not a plugin, so yes you need to reinstall after each update.
Title: Re: Indexed and organized keyword list on search page
Post by: jakob.b on February 12, 2009, 06:10:44 pm
Thank you Nibbler for this quick answer  :)

I did mix it up with keywords_add, sorry about that.

Regards Jakob
Title: Re: Indexed and organized keyword list on search page
Post by: kevin_lee on December 13, 2010, 06:05:18 am
Keyword organization is necessary  for site.  Keywords must be related to site and site content.
Title: Re: Indexed and organized keyword list on search page
Post by: Arminius on August 02, 2013, 03:56:38 pm
Does this work with cpg1.5.x or is there a similar plugin?

Regards