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: [Solved]: Find All Pictures By User  (Read 2706 times)

0 Members and 1 Guest are viewing this topic.

peakoverload

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
[Solved]: Find All Pictures By User
« on: June 12, 2004, 02:03:31 pm »

Apologies if this has been asked before but despite searching for various terms I couldnt find anything.

I run a community photographic site where I have coppermine setup to only have public galleries with preset themes like, landscapes, people, sports etc.

For many reasons I don't want to implement the feature of allowing members to have their own gallery but what I would like to be able to have is a function in the Picture Information table that says something like "Show All Photos By This Member" which when clicked brings up all the thumbnails of the photos that this member has uploaded so that other members can see each others entire work.

Does that make sense?

Is it possible??
« Last Edit: June 14, 2004, 10:10:55 am by GauGau »
Logged

Nibbler

  • Guest
Re: Find All Pictures By User
« Reply #1 on: June 12, 2004, 03:19:17 pm »

displayimage.php

Above:

Code: [Select]
return theme_html_picinfo($info);
Add:
Code: [Select]
$info['All uploads'] = "<a href=\"thumbnails.php?album=lastupby&uid={$CURRENT_PIC_DATA['owner_id']}\">Show All Photos By This Member</a>";
« Last Edit: June 12, 2004, 03:24:21 pm by Nibbler »
Logged

peakoverload

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Find All Pictures By User
« Reply #2 on: June 12, 2004, 03:51:23 pm »

Wow that was quick!!

And it works like a charm  ;D ;D ;D

That's exactly what I'm after, thank you so much.

Incidentaly, if anyone is interested, it also works in cpg 1.3 too  8)
Logged

mulawa1

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: [Solved]: Find All Pictures By User
« Reply #3 on: June 18, 2004, 05:11:36 pm »

Worked fine for me too - thanks!
Logged
Pages: [1]   Go Up
 

Page created in 0.035 seconds with 19 queries.