Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Displaying description bbcode in thumbnails.php  (Read 3976 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.022 seconds with 20 queries.