Custom Fields Custom Fields
 

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

Main Menu

Custom Fields

Started by StarGumbo, February 14, 2005, 12:13:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

StarGumbo

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.

Joachim Müller


StarGumbo

#2

Joachim Müller

please post links to the mods you were refering to as well.

Joachim


StarGumbo


Joachim Müller


StarGumbo

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.

Joachim Müller

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

StarGumbo

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.

Joachim Müller

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


StarGumbo

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.  ;)