Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: Indexed and organized keyword list on search page  (Read 28845 times)

0 Members and 1 Guest are viewing this topic.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Indexed and organized keyword list on search page
« 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

Beyond_Doubt

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Indexed and organized keyword list on search page
« Reply #1 on: May 04, 2006, 01:17:35 am »

Thank you for this.
Nice and easy, and looks nice.
Logged

Beyond_Doubt

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Indexed and organized keyword list on search page
« Reply #2 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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Indexed and organized keyword list on search page
« Reply #3 on: May 18, 2006, 08:53:56 am »

try emptying the cache and clearing the history

flogghe

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 44
    • MaritimeDigital Archive
Re: Indexed and organized keyword list on search page
« Reply #4 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, you notice that you have to scroll horizontal. Is this because of the code or is this a theme issue?

Kind regards,
Frederic
Logged
Kind regards,

Frederic Logghe
Webmaster MaritimeDigital Archive
http://www.ibiblio.org/maritime

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Indexed and organized keyword list on search page
« Reply #5 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", " | ");

flogghe

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 44
    • MaritimeDigital Archive
Re: Indexed and organized keyword list on search page
« Reply #6 on: June 03, 2006, 11:45:34 pm »

Thanks  :D

Looks much better now!!!

Frederic
Logged
Kind regards,

Frederic Logghe
Webmaster MaritimeDigital Archive
http://www.ibiblio.org/maritime

redlock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Indexed and organized keyword list on search page
« Reply #7 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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Indexed and organized keyword list on search page
« Reply #8 on: May 08, 2007, 06:56:13 pm »

search for
Code: [Select]
strtolowerand replace it with
Code: [Select]
utf_strtolower

redlock

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Indexed and organized keyword list on search page
« Reply #9 on: May 10, 2007, 09:06:19 am »

it works
thanks
Logged

majay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Indexed and organized keyword list on search page
« Reply #10 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?
Logged

Nibbler

  • Guest
Re: Indexed and organized keyword list on search page
« Reply #11 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.
Logged

majay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Indexed and organized keyword list on search page
« Reply #12 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.
Logged

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Indexed and organized keyword list on search page
« Reply #13 on: July 22, 2007, 09:10:42 am »

Thanks Stramm.
It worked wonderfully on my site.
Thank you so much.
Logged

eka

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Indexed and organized keyword list on search page
« Reply #14 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.
Logged

kad75

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
    • Shootnews
Re: Indexed and organized keyword list on search page
« Reply #15 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]
« Last Edit: September 19, 2007, 08:54:39 am by GauGau »
Logged

Heroe

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 124
    • abroadbg.com
Re: Indexed and organized keyword list on search page
« Reply #16 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 ?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Indexed and organized keyword list on search page
« Reply #17 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

Heroe

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 124
    • abroadbg.com
Re: Indexed and organized keyword list on search page
« Reply #18 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" ;(   
Logged

jakob.b

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Indexed and organized keyword list on search page
« Reply #19 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
Logged
Pages: [1] 2   Go Up
 

Page created in 0.025 seconds with 18 queries.