Replacing image links with text links Replacing image links with text links
 

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

Main Menu

Replacing image links with text links

Started by birddog, June 02, 2006, 07:34:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

birddog

Hello, When I display an image on my galley,I see gif images above the display e.g... "show/hide file info" "slideshow" "e-card" and so on. Also below the display are rating images. I would like to replace those with normal text. When I view my page source, I see it has an alternate for text links. However, I want text as primary. How would I go about changing this? Thank you in advance for your reply.

Joachim Müller

Edit themes/yourtheme/theme.php. If you can't find the section that determines the particular part of the output that you want to see changed, copy the section from the sample theme and edit it accordingly.
For details, it would help if we could see your site and theme, so post a link to it and attach your zipped theme (if you have customized it already) to your reply (using "additional options" when composing your message). If you haven't customized your theme yet, the link to your coppermine-driven gallery will be enough.

birddog

Silly me. Here I was looking at displayimage.php hoping to find it. It was in sample theme all along. Please forgive me. For those of you who don't know, the sample theme (in you themes dir) will answer most of your questions. Especially the custom button question that is all over this board. It enables you to change the html throughout the coppermine gallery. Thanks again GauGau

Joachim Müller

Yes, as suggested in various places all over the board and docs, the sample theme holds all possible code and should be used as a reference and resource to copy stuff into your custom theme (to allow you editing particular theme functionality). Just for clarification: you mustn't copy the entire content of themes/sample/theme.php into your custom theme, but only the section you would like to see changed. All things that exist inside the sample theme, but not within your custom theme will display the intended default behaviour in coppermine. This has two effects that have a large impact: you will (hopefully) experience nearly no issues when upgrading in the future (as the default code may change in the future), and your custom theme will be lighter and perform slightly better.

HTH