CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 19 CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 19
 

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 1.4 On... Displaying data and images from CPG on your website

Started by vuud, July 08, 2005, 06:43:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud

Quote from: dukuduku on October 25, 2005, 04:40:40 AM
Howdy all,

I just want to report a finding since it took some time to debug.

I had a similar problem as described by a previous poster.  cftest.php said everything was OK but I couldn't see any images.  When I added a second user #2, it didn't fix my problem.  But then I read that you join cpg135_pictures.owner_id to cpg135_users.user_id, I looked at my pictures table and noticed that all owner_id's were set to 0.  There is no user_id 0, so I updated the pictures table and gave the pictures to user_id 1.  After this update, cftest.php worked properly.

I can guess why this happened to me, but that is another matter altogether. ::)

Were you bridged with something?  CPG would not have added a bad owner number by itself...



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

Titooy

Quote from: Babounet on October 18, 2005, 01:19:11 AM
Hello,

I've some trouble with the fonction cpm_unlockPrivate($bool). Can someone help me?

My php code in my page:

<?php
include "cpmfetch/cpmfetch.php";
$objCpm = new cpm('/pics');
$objCpm->cpm_unlockPrivate(true);
$objCpm->cpm_viewLastAddedMedia (1,4);
$objCpm->cpm_close();
?>

The error:
Fatal error: Call to undefined function: cpm_unlockprivate()

I surch to have pics of the last galleries, even if it is a public or registered gallery.

Many thanks for your help!
Seb

There's actually a mistake in the doc: the function cpm_unlockPrivate() is actually cpm_unlock_private()

Babounet

many many thank's Titooy !!!

That's exactly the solution I was looking for!!!

vuud


And now its on my list of things to fix :)

Thanks

Quote from: Babounet on October 25, 2005, 06:07:23 PM
many many thank's Titooy !!!

That's exactly the solution I was looking for!!!
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

dukuduku

Quote from: vuud on October 25, 2005, 05:00:50 AM
Were you bridged with something?  CPG would not have added a bad owner number by itself...

I am not bridged, we had customized an older version of coppermine, (1.1.0) I believe, which was a while ago.  I just upgraded to the newest version of coppermine (1.3.5) and I couldn't use the upgrade script because of the changes that were made, so had to manually copy the data.  But I looked at the original data in 1.1.0 and the owner_id was set to 0, and I don't know how it got that way.  But the new version is what matters now.

I look forward to trying cpmFetch, because it will integrate the two sites I am working on well.

disstress

  I would really like to know how to make the image
link border smaller when using cpmfetch.
You can see an example on thier page
http://cpmfetch.fistfullofcode.com/projects/copperminefetch/index.php
If you look on the right side at the pictures set as
an example, the border around them is a few pixels thick.
I would like to know how to change that to be as
thin as possible or possibly have no border.
I have searched through the code and through my
coppermine template's css, I use the default template BTW.
I am not sure if I am in the right forum, if not please move me
and thanks in advance for any advice/solution.

Feydakin

I have the php call working just fine at www.imagesontheweb.net/image-test.php but I am having a problem with the call for plain html pages..

<img src="/galleria/cpmfetch/cfimageget.php?size=thumb">

is how I'm calling it right now and I just get the nice red x..

The main reason I want to call through html is that we originally wrote the site in Mason and it doesn't play nice with php in the same file.. And rewriting everything in php, while nice, would cause other issues.. So, anyway, what basic thing am I not seeing that is super obvious to everyone else??


disstress

ERROR: Path to Coppermine incorrect. (/home/imagesj/domains/imagesontheweb.net/public_htmlhttp://www.imagesontheweb.net/galleria//include/config.inc.php)
Fatal error: Call to a member function on a non-object in /home/imagesj/domains/imagesontheweb.net/public_html/galleria/cpmfetch/cfimageget.php on line 181


You are getting this error when you try to look at the top image.
I am not familiar enough with the code in cpmfetch, but I will go through it tonight and find my resolution and yours, if someone doesn't post here first.

Feydakin

For some reason it's tossing in an extra / between galleria and include.. ...galleria//include.... instead of galleria/include...

More digging to find the extra / ..

mpvvv

Hi,

I'm new here, anyone tried this? Can be do it?

Show the last picture from the last 6 albums with cpmfetch.


       album1           album2          album3
        lastpic            lastpic            lastpic

       album4           album5          album6
        lastpic            lastpic            lastpic

Thanks

Marcelo

vuud

Quote from: disstress on October 27, 2005, 04:00:57 AM
ERROR: Path to Coppermine incorrect. (/home/imagesj/domains/imagesontheweb.net/public_htmlhttp://www.imagesontheweb.net/galleria//include/config.inc.php)
Fatal error: Call to a member function on a non-object in /home/imagesj/domains/imagesontheweb.net/public_html/galleria/cpmfetch/cfimageget.php on line 181


You are getting this error when you try to look at the top image.
I am not familiar enough with the code in cpmfetch, but I will go through it tonight and find my resolution and yours, if someone doesn't post here first.

Normally this means the variable you set for the partial url in the cfimageget has a whole URL in it instead of just the partial

should be something like

/galleria



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

Feydakin

You are referring to this bit of code here??

// This one you need to adjust unless your gallery is at http://www.youname.com/photos
// If you installed right to the root of your web site, just use a /
$urltocpm = "/galleria";


I've tried tons of variations on the URL in cfimageget.php.. Am I missing a change somewhere else??

vuud

Quote from: Feydakin on October 27, 2005, 06:14:00 PM
You are referring to this bit of code here??

// This one you need to adjust unless your gallery is at http://www.youname.com/photos
// If you installed right to the root of your web site, just use a /
$urltocpm = "/galleria";


I've tried tons of variations on the URL in cfimageget.php.. Am I missing a change somewhere else??


Yeah thats the one... it does not help?



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


kreptil

Nice job, but how can I use the option "lastalb" (last updated albums) with this CpmFetch?

Thanks!.

bino

Cpmfetch is a great feature. However, I have a question.
Is it normal when I use the latest added media code it only displays the images I added? (various other members have added images aswell but when using the code it doesn´t show them at all)

runaweigh

I am trying to display an image with (cpmfetch/cfig_random.php") on the index page, but I would like to display with a link to the photo album.  Currently I have the displayimage as (<a href="/photoalbum/displayimage.php?pos=-397" target="_blank") which is obviously giving me the same photo.  How do I link to the displayed image for cfig_random.php?
http://www.mycsailing.com/

inn87

 ;) Hello,

I just installed cpmfetch to list that latest images and is workin great @ ' www.pickafish.com '. Now i'm trying to move it tothe center of the page under the cusom 'latest additions' header. pls i wouldlike to know hoe to align the gallery. Thanx  ???

vuud

Quote from: bino on October 29, 2005, 03:07:48 PM
Cpmfetch is a great feature. However, I have a question.
Is it normal when I use the latest added media code it only displays the images I added? (various other members have added images aswell but when using the code it doesn´t show them at all)


Are these other images in user galleries...  If so, you could be running into the non-private aspect...  This is the function that controls this... (Private to cpmfetch means anything that is not completely opened)

cpm_unlockPrivate($bool)

This toggles access to non-public photos (default: false) It allows images not publically available to be selected and displayed until it is turned off, or the object is lost. This program makes no distinction beyond if a media item is public or not - Meaning that photos that may be viewable by logged in users are considered private, not something in between.
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

vuud

Quote from: inn87 on October 31, 2005, 07:14:33 PM
;) Hello,

I just installed cpmfetch to list that latest images and is workin great @ ' www.pickafish.com '. Now i'm trying to move it tothe center of the page under the cusom 'latest additions' header. pls i wouldlike to know hoe to align the gallery. Thanx  ???

Wrap it in a table maybe?  It supports full CSS entries if that helps (but will always generate a table layout - does not do CSS layouts yet)
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