One more quick PHP issue One more quick PHP issue
 

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

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.