coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: crl on January 24, 2007, 05:10:57 PM

Title: bold text on thumbnail page description?
Post by: crl on January 24, 2007, 05:10:57 PM
I am trying to enter a bold type text into the description on the page with the thumbnails.
I have tried entering the following code

[b] [/b]

, which only works only on the full size image page description.
So is there a way to achieve this on the thumbnail page as well?

[modified to show bbcode tags - Nibbler]
Title: Re: bold text on thumbnail page description?
Post by: Gizmo on January 25, 2007, 12:51:52 PM
You forgot to list your code so it's hard to tell exactly what you mean my "description". If you're talking about the caption underneath the thumbnails, you can edit .thumb_caption in the style.css file. If you want to add the same bold text to each thumbnail, that's different so please be more precise in your request.
Title: Re: bold text on thumbnail page description?
Post by: Nibbler on January 25, 2007, 01:10:02 PM
bbcode is disabled there. You can re-enable it by modifying include/functions.inc.php

Note: corrected to avoid double space.


        if ($CONFIG['caption_in_thumbview']){
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".strip_tags(bb_decode($row['caption']))."</span>" : '';
        }


to


        if ($CONFIG['caption_in_thumbview']){
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".$row['caption']."</span>" : '';
        }
Title: Re: bold text on thumbnail page description?
Post by: crl on January 26, 2007, 09:25:01 PM
Thank you Nibbler!
Just what I was after, working fine now!
:D
Title: Re: bold text on thumbnail page description?
Post by: crl on January 27, 2007, 07:02:37 PM
One thing I have noticed is that there is a blank line only on the thumbnail page from the description and the bb coded line.
It would be nice to get the line without a blank space if possible?

sample shown below:

http://img267.imageshack.us/img267/551/gallerysamp1ux7.jpg

http://img58.imageshack.us/img58/5447/gallerysamp2tb6.jpg

[Edit GauGau] Replaced hotlinked images with attachments as per Board rules / Forum policies: Add Attachments (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270617.html#msg270617) [/Edit]