forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: dub_doctor on January 22, 2006, 04:08:57 am

Title: Displaying description bbcode in thumbnails.php
Post by: dub_doctor on January 22, 2006, 04:08:57 am
How do you make bbcode in an image description display correctly when looking at the thumbnail page thumbnails.php? In 1.4.3 the description text appears correctly in thumbnails.php, but the bbcode is not applied. In particular, I need the image description to work as an web link from the thumbnaill page (it works correctly from displayimage.php)

I'm sure this isn't difficult to do, but I've tried and can't do it. It used to work in v1.3.
I've also scoured these boards for a solution with no luck.
Title: Re: Displaying description bbcode in thumbnails.php
Post by: Joachim Müller on January 25, 2006, 07:21:04 am
not a valid feature request, moving to support board
Title: Re: Displaying description bbcode in thumbnails.php
Post by: dub_doctor on January 25, 2006, 10:44:00 pm
Sorry. I wasn't sure if this was a feature request or a support inquiry.

Anyone out there know the solution to the BBcode issue?
Title: Re: Displaying description bbcode in thumbnails.php
Post by: Tranz on January 25, 2006, 11:40:54 pm
For future reference, there is a sticky to help guide you to decide between a support inquiry and feature request.

Generally, a thread starting with "How do" is a support request for a current version.
Title: Re: Displaying description bbcode in thumbnails.php
Post by: dub_doctor on January 28, 2006, 03:01:52 am
Bump.

I've also noticed that bbcode in description doesn't work in "Last Additions" and "Random Files" on the index page.

Does anybody know how this can be fixed so that bb code is applied?
Title: Re: Displaying description bbcode in thumbnails.php
Post by: Nibbler on January 28, 2006, 03:56:50 pm
http://forum.coppermine-gallery.net/index.php?topic=25256.msg116346#msg116346
Title: Re: Displaying description bbcode in thumbnails.php
Post by: dub_doctor on January 30, 2006, 04:31:43 am
Thanks Nibbler

Looks like someone decided to disable that feature. Edit include/functions.inc.php

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

and remove the strip_tags

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

That was easy!