coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: StarGumbo on February 14, 2005, 12:13:36 AM

Title: Custom Fields
Post by: StarGumbo on February 14, 2005, 12:13:36 AM
I've applied a mod to display a custom field under the image title, and the mod to display bbcode in the custom fields.

When I enter code into the custom field it displays fine in the image info, but when the field is displayed in the album you see the raw code.

I'm wondering if there's a way to display the bbcode in the album.

Thanks in advance.
Title: Re: Custom Fields
Post by: Joachim Müller on February 14, 2005, 07:40:55 AM
link?
Title: Re: Custom Fields
Post by: StarGumbo on February 14, 2005, 09:14:42 AM
http://xxx.xxx.xxx/gallery/thumbnails.php?album=2
http://xxx.xxx.xxx/gallery/displayimage.php?album=2&pos=1

First page shows the text, second shows the image.
Title: Re: Custom Fields
Post by: Joachim Müller on February 14, 2005, 10:10:11 AM
please post links to the mods you were refering to as well.

Joachim
Title: Re: Custom Fields
Post by: StarGumbo on February 14, 2005, 03:50:16 PM
Custom fields on other pages
http://forum.coppermine-gallery.net/index.php?topic=5163.0

Clickable links in custom user fields
http://coppermine.sourceforge.net/faq.php?q=linksInCustomFields#linksInCustomFields

pretty simple mods
Title: Re: Custom Fields
Post by: StarGumbo on February 15, 2005, 05:50:37 PM
bump
Title: Re: Custom Fields
Post by: Joachim Müller on February 15, 2005, 07:21:05 PM
http://coppermine.sourceforge.net/faq.php#lamesupport  >:(
Title: Re: Custom Fields
Post by: StarGumbo on February 15, 2005, 07:58:07 PM
Well I've got code showing on my site.  You were answering me immediately, and suddenly weren't.  If you agree this is something that can be fixed and are looking into it, give me some kind of status update please.

I appreciate the support, but I'm getting emails constantly saying I've got code on my site and I have no clue if you need it to be there or not.  A simple 'ok, i'll get back to you' would be appreciated.
Title: Re: Custom Fields
Post by: Joachim Müller on February 16, 2005, 08:29:10 AM
roll back your modifications and the code should stop appearing. Backup everything first so you can review later. I suggest you review your code changes completely, you probably have applied the hacks wrong.

Joachim
Title: Re: Custom Fields
Post by: StarGumbo on February 16, 2005, 04:24:26 PM
Alright, I've rolled back my code and reapplied the mods.  Both mods that I've applied work - the custom field displays the image in the file info, and the custom field appears on the thumbnails page.  The problem is that when the custom field appears on the thumbnails page, it displays the [img] tags - not the image.  The thumbnails page displays the custom field but does not parse the bbcode within the custom field.
Title: Re: Custom Fields
Post by: Joachim Müller on February 16, 2005, 04:52:59 PM
well, then you have applied the hacks wrongly, or they don't work together. Just roll them back if they don't work as expected, call it a day and try again later.
You should btw only apply one hack at a time.

Joachim

Title: Re: Custom Fields
Post by: StarGumbo on February 16, 2005, 05:54:58 PM
Alright, I fixed it.  The mod in functions.inc.php wasn't set to bb_decode

The original mod was
$caption .= "<span class=\"thumb_caption\">" . $rowset[$key]['user2'] . "</span>";

modified to
$caption .= "<span class=\"thumb_caption\">".bb_decode(($rowset[$key]['user2']))."</span>";

The problem was the bbcode wasn't being decoded.  ;)