forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: .carolinecblaker. on May 11, 2007, 12:56:23 am

Title: Enabling links in any "file info" fields
Post by: .carolinecblaker. 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!
Title: Re: Enabling links in any "file info" fields
Post by: Nibbler on May 11, 2007, 01:18:14 am
Are you using bbcode or something else?
Title: Re: Enabling links in any "file info" fields
Post by: .carolinecblaker. on May 11, 2007, 09:53:59 pm
Assuming that <a href=".....">link</a> is BBCode, then that's what I am using.
Title: Re: Enabling links in any "file info" fields
Post by: Nibbler on May 11, 2007, 10:00:17 pm
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#bbcode
Title: Re: Enabling links in any "file info" fields
Post by: .carolinecblaker. 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.)
Title: Re: Enabling links in any "file info" fields
Post by: Nibbler 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.
Title: Re: Enabling links in any "file info" fields
Post by: .carolinecblaker. on December 02, 2007, 06:41:17 am
This worked. Thanks