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]   Go Down

Author Topic: Replace Category Names with Icons ?  (Read 2560 times)

0 Members and 1 Guest are viewing this topic.

Wolfseye

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
Replace Category Names with Icons ?
« on: June 09, 2011, 05:03:43 pm »

Is it possible to replace Category Names with custom Icons / Images so that after that the text name is gone and there is only a specific image ?
Thanks in advance.

Wolf
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Replace Category Names with Icons ?
« Reply #1 on: June 09, 2011, 05:25:09 pm »

The probably easiest solution would be to create a plugin that uses the page_html hook to search the whole output for specific words. Instead of using 'real' category names you could use tokens like {CATEGORY_ID_42} and then search for that tokens and replace them.
Logged

Wolfseye

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
Re: Replace Category Names with Icons ?
« Reply #2 on: June 09, 2011, 05:26:45 pm »

I probably would but I have no ideas how to make plugins. So I take it there is nothing yet made for a purpose like that ?
Thanks anyways.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Replace Category Names with Icons ?
« Reply #3 on: June 09, 2011, 05:32:45 pm »

I can create such a plugin draft for you asap (it's quite easy).
Logged

Wolfseye

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
Re: Replace Category Names with Icons ?
« Reply #4 on: June 10, 2011, 09:32:37 am »

You would do that ?  :o

I would thank you for that a lot. Really would appreciate that greatly.
If not its ok too, I will just keep it as it is now. ;)

Wolf
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 21 queries.