Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Replace Category Names with Icons ?  (Read 2698 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.019 seconds with 20 queries.