SMF Profile Link in File Information Block SMF Profile Link in File Information Block
 

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

SMF Profile Link in File Information Block

Started by JCphotog, July 28, 2007, 05:33:48 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

JCphotog

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...
Find a smf profile here

If you'd like a test account, please PM me.

Thanks for all of the help... 

Nibbler

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'];

JCphotog

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?

Nibbler

#3
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>';


JCphotog

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


JCphotog

I'm sorry, I missed it.  Maybe the code didn't show..?

Nibbler

I corrected the typo in the above code, so retry the modification with the corrected code.

JCphotog

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!

Joachim Müller

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" and "THANKS to the devs" *hint*  ;D

JCphotog