forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: stuarta on September 07, 2006, 10:20:57 am

Title: Last added images with bridge
Post by: stuarta on September 07, 2006, 10:20:57 am
Sorry back again and just trying to see if I can get to the bottom of my problem. 

When I'm bridged, LastAddedImages that were posted while bridged don't show up and still shows the ones that were uploaded while unbridged.

Think there must be something really wrong with my user databases but unsure where to start or sort.

thanks
Title: Re: Last added images with bridge
Post by: Joachim Müller on September 07, 2006, 12:53:11 pm
Post a link and non-admin test user account for a start.
Title: Re: Last added images with bridge
Post by: stuarta on September 07, 2006, 12:56:50 pm
www.simpilots.co.uk/gallery
stutest/password.

Not bridged at the moment, but if you have a look under last added images, there are several images uploaded by a user 'speedpig001' which aren't being picked up on other pages such as www.simpilots.co.uk/home.php under last added.  These were added while bridged.
Title: Re: Last added images with bridge
Post by: Joachim Müller on September 07, 2006, 01:09:40 pm
So you're not asking about the built-in meta album "last uploads (http://www.simpilots.co.uk/gallery/thumbnails.php?album=lastup&cat=0)", but for a script that resides on a non-coppermine page (http://www.simpilots.co.uk/home.php) that pulls content from coppermine's database?
We can't support stuff if we don't know the underlying code. You're using an unknown third party tool or hack. Without even telling us what exactly it is, your question is just invalid. Post your cpmFetch version for a start and the syntax of the code you used.
Title: Re: Last added images with bridge
Post by: stuarta on September 07, 2006, 01:23:32 pm
cmpfetch 1.6.4

include "cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
$options = array('subtitle'=>'%t by %o',"cellstyle" => "copyright" );
$objCpm->cpm_viewLastAddedMedia(3,1,$options);
$objCpm->cpm_close();

I'm sure it's not the code that's the issue is the conflict of my databases.  I remember Vuud saying something about the id numbers
Title: Re: Last added images with bridge
Post by: vuud on September 07, 2006, 02:07:37 pm
cmpfetch 1.6.4

include "cpmfetch/cpmfetch.php";
$objCpm = new cpm('/gallery');
$options = array('subtitle'=>'%t by %o',"cellstyle" => "copyright" );
$objCpm->cpm_viewLastAddedMedia(3,1,$options);
$objCpm->cpm_close();

I'm sure it's not the code that's the issue is the conflict of my databases.  I remember Vuud saying something about the id numbers

Yes, once you bridge all of your user information comes from the forum (or whatever).  So photos get stored with a user id matching that database.  CPMFetch does not (yet) know to look there, can't find matches in the cpg tables and skips photos that fall into that realm.  If all of them are like that you have an issue.

A bunch of solutions have been brought up in the cpmfetch threads, but they can be hard to find.  None of them are particularly good solutions.  If you can wait a few days and are willing to run a beta, that is the functionality I am working on now.

See ya


Title: Re: Last added images with bridge
Post by: stuarta on September 07, 2006, 03:04:02 pm
I'm more than happy to wait.  To be honest the bridge isn't that important at the moment as most members who post pics have registered twice anyway
Title: Re: Last added images with bridge
Post by: vuud on September 08, 2006, 01:32:17 am
I'm more than happy to wait.  To be honest the bridge isn't that important at the moment as most members who post pics have registered twice anyway

Well I just installed a bridged version of CPG for my pagoda, so the importance just crept up the list a bit.  I wanted to work on it yesterday, but got delayed, and I am so tired.  so tired.

I'm going to do it in phases, the next release will work with bridges but lose some of the functionality (much like the stable version now), the ones following that will support different bridges as I can work them out.

Have a nice day, get some sleep. 

Title: Re: Last added images with bridge
Post by: stuarta on September 08, 2006, 12:35:20 pm
I've slept lol.  Different time zone lol. Hope you have slept better.

Well I'll wait to hear from you at the moment about the upgrade and hope I can help