coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: peakoverload on June 12, 2004, 02:03:31 PM

Title: [Solved]: Find All Pictures By User
Post by: peakoverload 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??
Title: Re: Find All Pictures By User
Post by: Nibbler on June 12, 2004, 03:19:17 PM
displayimage.php

Above:

return theme_html_picinfo($info);

Add:
$info['All uploads'] = "<a href=\"thumbnails.php?album=lastupby&uid={$CURRENT_PIC_DATA['owner_id']}\">Show All Photos By This Member</a>";

Title: Re: Find All Pictures By User
Post by: peakoverload 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)
Title: Re: [Solved]: Find All Pictures By User
Post by: mulawa1 on June 18, 2004, 05:11:36 PM
Worked fine for me too - thanks!