I would like to create a link to a user's SMF profile page in the file information block
Find a similar thread that creates a profile link under the thumbnail which isn't a bad, but I think it might be more useful to my users to have it in the file information block. http://forum.coppermine-gallery.net/index.php?topic=44088.0
Find my gallery here (http://artdc.org/gallery/index.php)...
Find a smf profile here (http://artdc.org/forum/index.php?action=profile;u=3)
If you'd like a test account, please PM me.
Thanks for all of the help...
Edit displayimage.php,
After
$info[$lang_picinfo['Displayed']] .= $detailsLink;
Add something like:
$info['User profile'] = 'http://artdc.org/forum/index.php?action=profile;u=' . $CURRENT_PIC_DATA['owner_id'];
Nibbler. Very cool. It's displaying the appropriate url to the profile!!
Thanks for the help, you guys rock! How do we get it to display as a link?
Try:
$info['User profile'] = '<a href="http://artdc.org/forum/index.php?action=profile;u=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $CURRENT_PIC_DATA['owner_name'] . '</a>';
Yeah. That's similar to what I tried. And I get a parse error:
Parse error: syntax error, unexpected '"', expecting ']' in /public_html/artdc/gallery/displayimage.php on line 150
Try now.
I'm sorry, I missed it. Maybe the code didn't show..?
I corrected the typo in the above code, so retry the modification with the corrected code.
Nibbler. Thanks so much. It works great!
This really is going to be nice to make navigation even better!
If I had the ability to give kudos, I would!
Quote from: JCphotog on July 28, 2007, 06:59:08 AMIf I had the ability to give kudos, I would!
Oh, actually, you have several ways to give something back: please read "We need your help (http://forum.coppermine-gallery.net/index.php?topic=14227.0)" and "THANKS to the devs (http://forum.coppermine-gallery.net/index.php?topic=24315.0)" *hint* ;D
GauGau, Thanks for the links!