Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: CPMFetch For User Album Thumbs  (Read 8975 times)

0 Members and 1 Guest are viewing this topic.

anadolugezgini

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Anatolian Photo-Trekking Website
CPMFetch For User Album Thumbs
« on: December 22, 2006, 04:52:38 pm »

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;
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CPMFetch For User Album Thumbs
« Reply #1 on: December 22, 2006, 05:10:46 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?


Logged
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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Anatolian Photo-Trekking Website
Re: CPMFetch For User Album Thumbs
« Reply #2 on: December 22, 2006, 10:33:34 pm »

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...
Logged

anadolugezgini

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Anatolian Photo-Trekking Website
Re: CPMFetch For User Album Thumbs
« Reply #3 on: January 03, 2007, 06:34:11 pm »

i guess no one can help me?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CPMFetch For User Album Thumbs
« Reply #4 on: January 03, 2007, 07:30:16 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
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
    • Anatolian Photo-Trekking Website
Re: CPMFetch For User Album Thumbs
« Reply #5 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..
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CPMFetch For User Album Thumbs
« Reply #6 on: January 11, 2007, 11:44:23 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...
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: CPMFetch For User Album Thumbs
« Reply #7 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. :)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CPMFetch For User Album Thumbs
« Reply #8 on: January 21, 2007, 05:18:10 pm »

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.

Code: [Select]
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





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

Page created in 0.021 seconds with 19 queries.