coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Chopper on March 21, 2005, 07:37:27 AM

Title: Looking for "File Information" code in Coppermine
Post by: Chopper on March 21, 2005, 07:37:27 AM
Hi,

I'm trying to edit a specific line of code in Coppermine. It's within the file information section that appears just below the uploaded image and rating stars (on the displayimage.php page).

The line in the File Information that I wish to edit is the link shown in read below:

Filename: Imhotep.jpg
Album name:  Chopper (some IP address #)  / Character Designs
File Size: 32 KB
Dimensions: 300 x 501 pixels
Displayed: 42 times
Favorites: Add to Favorites

What I want to do is find the code that makes up that link in order to change it so it goes to the user's PHPBB profile (rather than the Coppermine profile). I must have looked through theme.php a dozen times and I can't find it. Can someone with knowledge about all the Coppermine files tell me where the link to the username is coming from?




Title: Re: Looking for "File Information" code in Coppermine
Post by: foulu on March 21, 2005, 07:49:01 AM
find it in displayimage.php
Title: Re: Looking for "File Information" code in Coppermine
Post by: Chopper on March 21, 2005, 07:56:40 AM
Thanks foulu,

For future reference to those working on integrating userlinks within Coppermine to the PHPBB profile, here's what I did.

In displayimage.php:

Found the line:

$owner_link = '<a href ="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">'

and changed it to:

$owner_link = '<a href ="../forums/profile.php?mode=viewprofile&u=' . $CURRENT_PIC_DATA['owner_id'] . '">'

where "forums" is the the PHPBB directory that contains my profile.php file.