Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: SMF Profile Link in File Information Block  (Read 5491 times)

0 Members and 1 Guest are viewing this topic.

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
SMF Profile Link in File Information Block
« 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...
Find a smf profile here

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

Thanks for all of the help... 
« Last Edit: July 28, 2007, 07:03:57 am by Nibbler »
Logged

Nibbler

  • Guest
Re: SMF Profile Link in File Information Block
« Reply #1 on: July 28, 2007, 06:03:15 am »

Edit displayimage.php,

After

Code: [Select]
$info[$lang_picinfo['Displayed']] .= $detailsLink;

Add something like:

Code: [Select]
$info['User profile'] = 'http://artdc.org/forum/index.php?action=profile;u=' . $CURRENT_PIC_DATA['owner_id'];
Logged

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: SMF Profile Link in File Information Block
« Reply #2 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?
Logged

Nibbler

  • Guest
Re: SMF Profile Link in File Information Block
« Reply #3 on: July 28, 2007, 06:31:35 am »

Try:

Code: [Select]
$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>';
« Last Edit: July 28, 2007, 06:47:53 am by Nibbler »
Logged

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: SMF Profile Link in File Information Block
« Reply #4 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
Logged

Nibbler

  • Guest
Re: SMF Profile Link in File Information Block
« Reply #5 on: July 28, 2007, 06:48:08 am »

Try now.
Logged

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: SMF Profile Link in File Information Block
« Reply #6 on: July 28, 2007, 06:51:02 am »

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

Nibbler

  • Guest
Re: SMF Profile Link in File Information Block
« Reply #7 on: July 28, 2007, 06:51:55 am »

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

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: SMF Profile Link in File Information Block
« Reply #8 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: SMF Profile Link in File Information Block
« Reply #9 on: July 29, 2007, 10:47:25 am »

If 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
Logged

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: SMF Profile Link in File Information Block
« Reply #10 on: July 29, 2007, 06:28:07 pm »

GauGau,  Thanks for the links!
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 16 queries.