CPMFetch For User Album Thumbs CPMFetch For User Album Thumbs
 

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]

Main Menu

CPMFetch For User Album Thumbs

Started by anadolugezgini, December 22, 2006, 04:52:38 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

anadolugezgini

Hi,
I am not an PHP expert but i can manage this.I've added this line to my index.php where other cases defined.So i got a new content that i can manage via admin console.This code brings thumbs from user albums to the main page of coppermine.But i don't know how to frame it as other contents like random images.Using a little modified classic theme.Any ideas are welcome :)

case 'usercat':
include "../cpmfetch/cpmfetch.php";
$objCpm = new cpm('/cpg148');
$objCpm->cpm_viewRandomMediaFromCategory (1,4,1);
$objCpm->cpm_close();
flush();
break;

vuud

Quote from: anadolugezgini on December 22, 2006, 04:52:38 PM
But i don't know how to frame it as other contents like random images.Using a little modified classic theme.Any ideas are welcome

I don't understand?  You mean how do you change its appearance?  Like through CSS?


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

anadolugezgini

hmm..bad description.I want random user thumbs to display in {GALLERY} in the template.html.  You can check the screenshot attached.I can put it to the place marked X but i want it to be under the CATEGORY-USER ALBUMS.Or it's ok if it is look like Random Images,or Recent Uploads.The problem is whereever i put it as a content by admin menu,it has no borders;just thumbs.

Thanks you for your help and sorry for my poor description...

anadolugezgini


vuud

Quote from: anadolugezgini on January 03, 2007, 06:34:11 PM
i guess no one can help me?

I think it may be more a matter of posting in the wrong section.  I've been able to get cpmfetch to work in my templates, but are not a good source for that.

One of the threads on templating may help you with where to stick the cpmfetch code.

G'Luck
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

anadolugezgini

thanks for your help...can you send me a sample of code you used cpmfetch in a template if possible..

vuud

Quote from: anadolugezgini on January 11, 2007, 10:36:31 PM
thanks for your help...can you send me a sample of code you used cpmfetch in a template if possible..


Sorry, I don't currently have one installed on anything.

It is doable though...
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nolageek

This seems super obvious, but I can't figure it out..

I just want to get the userpics of one user.  Seems simple enough.. but the only way I see to call upon sources is AND ... no BOTH?  That doesn't make sense.  Like, cat=1,owner=admin   returns anything in ALL userpics and anything by admin (even not in user pics)

Doesn't that seem odd to anyone else?  I've already said I just wanted cat 1 - why would owner change that?? grrrrr

NOTE: I've been up too long without enough sleep.. getting.... frustrated, don't mind me. :)

vuud

Quote from: nolageek on January 21, 2007, 08:22:46 AM
This seems super obvious, but I can't figure it out..

I just want to get the userpics of one user.  Seems simple enough.. but the only way I see to call upon sources is AND ... no BOTH?  That doesn't make sense.  Like, cat=1,owner=admin   returns anything in ALL userpics and anything by admin (even not in user pics)

Doesn't that seem odd to anyone else?  I've already said I just wanted cat 1 - why would owner change that?? grrrrr

NOTE: I've been up too long without enough sleep.. getting.... frustrated, don't mind me. :)

Hey,

First off, don't hijack threads.  Please.

cat=1,owner=admin

Well, you can interpret that as cat=1 AND owner=admin, but you could also say its cat=1 OR owner=admin

My point here is that it is kinda vauge.  Right now, the software does an OR on the different types. 

Depending on your use, it could vary which way you would prefer.  I would put forth that it would make the most sense to give that option as part of the source syntax.

Around Line 800 or so  of cpmfetch_dao.php (dev version) is where the makeSourceSql function starts.  It would be a bit tricky working in the AND since its a series of loops and a final trunction.

I'll add it to my list of things to rework.  If you come up with a patch that involves issuing a choice to the user, please post it.  Would save me the work.

Vuud





Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco