coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: JCphotog on July 28, 2007, 05:33:48 AM

Title: SMF Profile Link in File Information Block
Post by: JCphotog on July 28, 2007, 05:33:48 AM
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... 
Title: Re: SMF Profile Link in File Information Block
Post by: Nibbler on July 28, 2007, 06:03:15 AM
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'];
Title: Re: SMF Profile Link in File Information Block
Post by: JCphotog on July 28, 2007, 06:24:59 AM
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?
Title: Re: SMF Profile Link in File Information Block
Post by: Nibbler on July 28, 2007, 06:31:35 AM
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>';

Title: Re: SMF Profile Link in File Information Block
Post by: JCphotog on July 28, 2007, 06:45:34 AM
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
Title: Re: SMF Profile Link in File Information Block
Post by: Nibbler on July 28, 2007, 06:48:08 AM
Try now.
Title: Re: SMF Profile Link in File Information Block
Post by: JCphotog on July 28, 2007, 06:51:02 AM
I'm sorry, I missed it.  Maybe the code didn't show..?
Title: Re: SMF Profile Link in File Information Block
Post by: Nibbler on July 28, 2007, 06:51:55 AM
I corrected the typo in the above code, so retry the modification with the corrected code.
Title: Re: SMF Profile Link in File Information Block
Post by: JCphotog on July 28, 2007, 06:59:08 AM
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!
Title: Re: SMF Profile Link in File Information Block
Post by: Joachim Müller on July 29, 2007, 10:47:25 AM
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
Title: Re: SMF Profile Link in File Information Block
Post by: JCphotog on July 29, 2007, 06:28:07 PM
GauGau,  Thanks for the links!