News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

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 2 Guests 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.