Displaying description bbcode in thumbnails.php Displaying description bbcode in thumbnails.php
 

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

Displaying description bbcode in thumbnails.php

Started by dub_doctor, January 22, 2006, 04:08:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dub_doctor

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.

Joachim Müller

not a valid feature request, moving to support board

dub_doctor

#2
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?

Tranz

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.

dub_doctor

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?


dub_doctor

Thanks Nibbler

Quote from: Nibbler on December 19, 2005, 02:06:43 PM
Looks like someone decided to disable that feature. Edit include/functions.inc.php


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


and remove the strip_tags


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


That was easy!