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: Enabling links in any "file info" fields  (Read 4013 times)

0 Members and 1 Guest are viewing this topic.

.carolinecblaker.

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Enabling links in any "file info" fields
« on: May 11, 2007, 12:56:23 am »

Is someone able to tell me how to enable link tags to render in file info fields? (IE. the information underneath an intermediate picture.) Mine are rendering as code. Thanks!
« Last Edit: December 02, 2007, 10:16:19 am by GauGau »
Logged

Nibbler

  • Guest
Re: Enabling links in any "file info" fields
« Reply #1 on: May 11, 2007, 01:18:14 am »

Are you using bbcode or something else?
Logged

.carolinecblaker.

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Enabling links in any "file info" fields
« Reply #2 on: May 11, 2007, 09:53:59 pm »

Assuming that <a href=".....">link</a> is BBCode, then that's what I am using.
Logged

.carolinecblaker.

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Enabling links in any "file info" fields
« Reply #4 on: May 12, 2007, 12:53:01 am »

Now my links are in bbcode, and still rendering as code!

http://www.carolineblaker.com/art/gallery (click on any painting and once you have it pulled up, scroll down. You may need to click the "i" in the upper left hand corner.)
Logged

Nibbler

  • Guest
Re: Enabling links in any "file info" fields
« Reply #5 on: May 12, 2007, 01:01:02 am »

I see. bbcode is not enabled there. If you type the link directly it should get converted, otherwise you can make a small code change in displayimage.php

Code: [Select]
$info[$CONFIG['user_field' . $i . '_name']] = make_clickable($CURRENT_PIC_DATA['user' . $i]);
change to

Code: [Select]
$info[$CONFIG['user_field' . $i . '_name']] = bb_decode($CURRENT_PIC_DATA['user' . $i]);
And then use bbcode.
Logged

.carolinecblaker.

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Enabling links in any "file info" fields
« Reply #6 on: December 02, 2007, 06:41:17 am »

This worked. Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.