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 ... 15 16 17 18 [19] 20 21 22 23 ... 54   Go Down

Author Topic: CpmFetch 1.4 On... Displaying data and images from CPG on your website  (Read 965867 times)

0 Members and 1 Guest are viewing this topic.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #360 on: October 25, 2005, 05:00:50 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...



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

Titooy

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 736
    • under construction...
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #361 on: October 25, 2005, 05:55:54 pm »

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()
Logged

Babounet

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #362 on: October 25, 2005, 06:07:23 pm »

many many thank's Titooy !!!

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #363 on: October 25, 2005, 06:18:32 pm »


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

Thanks

many many thank's Titooy !!!

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

dukuduku

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #364 on: October 25, 2005, 08:55:33 pm »

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

disstress

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #365 on: October 26, 2005, 01:34:50 am »

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

Feydakin

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #366 on: October 26, 2005, 10:58:05 pm »

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

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

Logged

disstress

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #367 on: October 27, 2005, 04:00:57 am »

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

Feydakin

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #368 on: October 27, 2005, 04:47:05 pm »

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

mpvvv

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #369 on: October 27, 2005, 05:15:53 pm »

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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #370 on: October 27, 2005, 05:25:05 pm »

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



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

Feydakin

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #371 on: October 27, 2005, 06:14:00 pm »

You are referring to this bit of code here??

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #372 on: October 27, 2005, 06:44:46 pm »

You are referring to this bit of code here??

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



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

Feydakin

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #373 on: October 27, 2005, 07:48:42 pm »

Nope, does not help..

Logged

kreptil

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #374 on: October 29, 2005, 07:15:17 am »

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

Thanks!.
Logged

bino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #375 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)
Logged

runaweigh

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #376 on: October 30, 2005, 02:03:30 am »

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

inn87

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #377 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  ???
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #378 on: November 01, 2005, 12:02:00 am »

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #379 on: November 01, 2005, 12:03:08 am »

;) 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)
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 ... 15 16 17 18 [19] 20 21 22 23 ... 54   Go Up
 

Page created in 0.032 seconds with 20 queries.