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: One more quick PHP issue  (Read 2372 times)

0 Members and 1 Guest are viewing this topic.

dino bambino

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
One more quick PHP issue
« on: September 13, 2007, 10:18:34 pm »

I edited the captions for the intermediate display images so above the image is
Title by The Person Who Uploaded it

In my theme.php file I have the following

Code: [Select]
$params = array('{CELL_HEIGHT}' => '100',
        '{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
        '{ADMIN_MENU}' => $CURRENT_PIC_DATA['menu'],
        '{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']). ' '. $lang_picinfo['by'] . ' ' .$CURRENT_PIC_DATA['owner_name'],
        '{CAPTION}' => $lang_picinfo['artist_desc'] . ' ' .bb_decode($CURRENT_PIC_DATA['caption']),
        );

What I'd like to do if it's possible is have the 'owner_name' link to the person's profile? I'm kind of at a loss on how to set it up.

« Last Edit: September 13, 2007, 10:49:32 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: One more quick PHP issue
« Reply #1 on: September 13, 2007, 10:36:15 pm »

Code: [Select]
'{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']). ' '. $lang_picinfo['by'] . ' ' . '<a href="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $CURRENT_PIC_DATA['owner_name'] . '</a>',

If you allow anon uploads you'll need more code.
Logged

dino bambino

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: One more quick PHP issue
« Reply #2 on: September 13, 2007, 10:43:00 pm »

Now you are really my hero. I was so close on that one. Thanks for helping me fill in the blanks. Works perfectly.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.