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: One more quick PHP issue  (Read 2401 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.013 seconds with 16 queries.