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: Looking for "File Information" code in Coppermine  (Read 2484 times)

0 Members and 1 Guest are viewing this topic.

Chopper

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 52
    • The Animation Corner
Looking for "File Information" code in Coppermine
« 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?




Logged

foulu

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 236
  • uhm
Re: Looking for "File Information" code in Coppermine
« Reply #1 on: March 21, 2005, 07:49:01 am »

find it in displayimage.php

Chopper

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 52
    • The Animation Corner
Re: Looking for "File Information" code in Coppermine
« Reply #2 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:

Code: [Select]
$owner_link = '<a href ="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">'
and changed it to:

Code: [Select]
$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.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.