Advanced search  

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

Pages: [1]   Go Down

Author Topic: Custom Fields  (Read 5437 times)

0 Members and 1 Guest are viewing this topic.

StarGumbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Custom Fields
« 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.
« Last Edit: February 16, 2005, 06:50:00 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom Fields
« Reply #1 on: February 14, 2005, 07:40:55 am »

link?
Logged

StarGumbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Custom Fields
« Reply #2 on: February 14, 2005, 09:14:42 am »

« Last Edit: February 16, 2005, 08:00:20 pm by StarGumbo »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom Fields
« Reply #3 on: February 14, 2005, 10:10:11 am »

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

Joachim
Logged

StarGumbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Custom Fields
« Reply #4 on: February 14, 2005, 03:50:16 pm »

Logged

StarGumbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Custom Fields
« Reply #5 on: February 15, 2005, 05:50:37 pm »

bump
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom Fields
« Reply #6 on: February 15, 2005, 07:21:05 pm »

Logged

StarGumbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Custom Fields
« Reply #7 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom Fields
« Reply #8 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
Logged

StarGumbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Custom Fields
« Reply #9 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom Fields
« Reply #10 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

Logged

StarGumbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Custom Fields
« Reply #11 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
Code: [Select]
$caption .= "<span class=\"thumb_caption\">" . $rowset[$key]['user2'] . "</span>";
modified to
Code: [Select]
$caption .= "<span class=\"thumb_caption\">".bb_decode(($rowset[$key]['user2']))."</span>";
The problem was the bbcode wasn't being decoded.  ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.