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: Displaying description bbcode in thumbnails.php  (Read 4241 times)

0 Members and 1 Guest are viewing this topic.

dub_doctor

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Displaying description bbcode in thumbnails.php
« 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.
« Last Edit: January 30, 2006, 07:19:50 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Displaying description bbcode in thumbnails.php
« Reply #1 on: January 25, 2006, 07:21:04 am »

not a valid feature request, moving to support board
Logged

dub_doctor

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Displaying description bbcode in thumbnails.php
« Reply #2 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?
« Last Edit: January 26, 2006, 12:13:39 am by dub_doctor »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Displaying description bbcode in thumbnails.php
« Reply #3 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.
Logged

dub_doctor

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Displaying description bbcode in thumbnails.php
« Reply #4 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?
Logged

dub_doctor

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Displaying description bbcode in thumbnails.php
« Reply #6 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.