One more quick PHP issue One more quick PHP issue
 

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]

Main Menu

One more quick PHP issue

Started by dino bambino, September 13, 2007, 10:18:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dino bambino

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

$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.


Nibbler


'{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.

dino bambino

Now you are really my hero. I was so close on that one. Thanks for helping me fill in the blanks. Works perfectly.