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

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

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 5 Guests are viewing this topic.

vuud

Quote from: Andreas W. on September 03, 2005, 09:50:53 AM
Any ideas to help me with my problem?
thanks

Sorry, I have been building and installing a router for the past few days.  I've been getting home at 2am, and getting up and heading back.

Little time for cpmfetch, but there is soooo much I still want to do.

I may be able to look at it more tomorrow afternoon.  Sorry for the hold up.
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

chr1831

i dont know if this is the right place but ive been looking around for the right place and i coudlent start a topic..., so sorry if its wrong :(,

help please

i would like to set up cpmfetch on my art page, put i want it to show the images at there full size and still randomly how on earth would i do this???, if you could help i would love this :D

vuud

Quote from: chr1831 on September 08, 2005, 07:35:51 AM
i dont know if this is the right place but ive been looking around for the right place and i coudlent start a topic..., so sorry if its wrong :(,

help please

i would like to set up cpmfetch on my art page, put i want it to show the images at there full size and still randomly how on earth would i do this???, if you could help i would love this :D

Yes, this is the correct place

Absolutely that can be done

Once you get through the getting started stuff...

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06.html
and
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s02.html
(See the imagesize tag)

Hope that helps...  some people get mad when I don't want to retype documentation into posts just for them... its not meant to be insultive or anything...  Its just the best place to look.



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

chr1831

No Problem  ;D
is there a way just 2 convert the calls of the images from the fetch to <img src=""> and then it would display them in full size :D

vuud

Quote from: chr1831 on September 08, 2005, 04:26:19 PM
No Problem  ;D
is there a way just 2 convert the calls of the images from the fetch to <img src=""> and then it would display them in full size :D

I am not following you...  If you call it with the imagesize setting, you can tell it to return a large version of the photo...  See the second link.

Or am I missing something?  Which is possible
(I was wrong once) :)






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

chr1831

i mean is it posiable to have cpfetch return the codeing as img src="" so it is exactly as if u where opening it at 100% instead of like 20, 30% where they are some what distorted

vuud

Quote from: chr1831 on September 09, 2005, 01:31:29 AM
i mean is it posiable to have cpfetch return the codeing as img src="" so it is exactly as if u where opening it at 100% instead of like 20, 30% where they are some what distorted

If you are asking if it can return the full size image, yes.

Its the imagesize => large on the page I sent you.  That will not change it at all.

If you are asking if it can return img src without the rest of the stuff it generates, yes - but not easily.  You need to get the data back and make some additional calls




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

chr1831

$options = array( 'subtitle' => '%t' , 'imagesize => "large"' );
$objCpm->cpm_viewRandomMedia(6,3,$options);

whats wrong with this it = no works :/

vuud

Quote from: chr1831 on September 11, 2005, 02:00:18 AM
$options = array( 'subtitle' => '%t' , 'imagesize => "large"' );
$objCpm->cpm_viewRandomMedia(6,3,$options);

whats wrong with this it = no works :/

try this:

$options = array( 'subtitle' => '%t' , 'imagesize' => "large" );
$objCpm->cpm_viewRandomMedia(6,3,$options);

Missing single quote on imagesize in above listing
Extra quote on end of large
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

nate

I just downloaded this and it should work, but it doesn't.

    * Include what version of coppermine you are using 1.3.2
    * a link to your website and gallery http://haylieonline.com/pictures
    * a link to an example of the problem (if possible) http://haylieonline.com/cpmfetch/cftest.php no thumbnails are shown
    * how computer savvy you are (newbie, intermediate, damn good) probably above intermediate
    * what kind of web server you are running on (if known) Apache 1.x
    * Include the syntax of the command you are using. n/a, just the test script

Everything passes, I set the cpg path to /pictures. There's a pictures subdomain but /pictures is the same place. I'm pretty sure all the settings are default; I checked the prefixes and they are.
It does open and close a table tag but there aren't img tags, etc.
Yes, my host is slow, sorry ;) thanks in advance

Edit: Right after I posted I remembered our CPG uses the SMF bridge... I assume that wouldn't have anything to do with it...

vuud

Quote from: nate on September 11, 2005, 10:10:00 PM
I just downloaded this and it should work, but it doesn't.

    * Include what version of coppermine you are using 1.3.2
    * a link to your website and gallery http://haylieonline.com/pictures
    * a link to an example of the problem (if possible) http://haylieonline.com/cpmfetch/cftest.php no thumbnails are shown
    * how computer savvy you are (newbie, intermediate, damn good) probably above intermediate
    * what kind of web server you are running on (if known) Apache 1.x
    * Include the syntax of the command you are using. n/a, just the test script

Everything passes, I set the cpg path to /pictures. There's a pictures subdomain but /pictures is the same place. I'm pretty sure all the settings are default; I checked the prefixes and they are.
It does open and close a table tag but there aren't img tags, etc.
Yes, my host is slow, sorry ;) thanks in advance

Edit: Right after I posted I remembered our CPG uses the SMF bridge... I assume that wouldn't have anything to do with it...

Pre recorded:  Today I cut up my left pointer finger on a table saw.  While the wound required few stiches, I have an enormous dressing on it that makes it very hard to type with.  Please forgive short, abbreviated messages - they are simply because it takes me too long to type with one hand.  Thank you.


probably due to there not being any users in the coppermine users table.  How many smf users?  You van try creating them in coppermine... same problem we had with the phpbb bridge.  lemme know ifd you need help on that. 

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

Shadower

What's the cpm command for showing the textual-link to the last 10 files added.

nate

Quote from: vuud on September 12, 2005, 06:07:02 AM
probably due to there not being any users in the coppermine users table.  How many smf users?  You van try creating them in coppermine... same problem we had with the phpbb bridge.  lemme know ifd you need help on that. 
There are about 100 SMF users and 1 CPG user. Do I need to create 100 users in Coppermien? I tried adding a row in CPG's user db but had no effect... so I don't really know what I'm doing ;).
Thanks for the help.

vuud

Quote from: nate on September 12, 2005, 10:44:15 PM
Quote from: vuud on September 12, 2005, 06:07:02 AM
probably due to there not being any users in the coppermine users table.  How many smf users?  You van try creating them in coppermine... same problem we had with the phpbb bridge.  lemme know ifd you need help on that. 
There are about 100 SMF users and 1 CPG user. Do I need to create 100 users in Coppermien? I tried adding a row in CPG's user db but had no effect... so I don't really know what I'm doing ;).
Thanks for the help.

Woof... Let me mull that over... 100 users.  Not sure if its easier to just recode the query or code up something to move user information :)

Are they in the same database?


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: Shadower on September 12, 2005, 07:56:49 PM
What's the cpm command for showing the textual-link to the last 10 files added.

Pre recorded:  Sep 11th I cut up my left pointer finger on a table saw.  While the wound required few stiches, I have an enormous dressing on it that makes it very hard to type with.  Please forgive short, abbreviated messages - they are simply because it takes me too long to type with one hand.  Thank you.

Function is viewLastAddedMedia from this page
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch07s03.html

Need options array in your call
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06.html

You need noimage option from this page, also subtitle link
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s02.html

You probably want a subtitle so something shows up
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s03.html

Now, if you don't actually want to try to learn this yourself, or check the docs out... it would be something like this:

$options = array("noimage" => "", "subtitlelink" => "", 'subtitle' => 'Image %t is %S KB');
cpm_viewLastAddedMedia(10,1,$options);

Or something like that

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

nate

Quote from: vuud on September 12, 2005, 10:48:23 PM
Quote from: nate on September 12, 2005, 10:44:15 PM
Quote from: vuud on September 12, 2005, 06:07:02 AM
probably due to there not being any users in the coppermine users table.  How many smf users?  You van try creating them in coppermine... same problem we had with the phpbb bridge.  lemme know ifd you need help on that. 
There are about 100 SMF users and 1 CPG user. Do I need to create 100 users in Coppermien? I tried adding a row in CPG's user db but had no effect... so I don't really know what I'm doing ;).
Thanks for the help.

Woof... Let me mull that over... 100 users.  Not sure if its easier to just recode the query or code up something to move user information :)

Are they in the same database?




Yes, same database. We can delete most of them (assuming that wouldn't cause bad things with SMF), but what about when more sign up? Will cpmfetch quit working?

vuud


No, not to delete them... we need to replicate them into the cpg user table if anything



Quote from: nate on September 12, 2005, 11:28:27 PM
Quote from: vuud on September 12, 2005, 10:48:23 PM
Quote from: nate on September 12, 2005, 10:44:15 PM
Quote from: vuud on September 12, 2005, 06:07:02 AM
probably due to there not being any users in the coppermine users table.  How many smf users?  You van try creating them in coppermine... same problem we had with the phpbb bridge.  lemme know ifd you need help on that. 
There are about 100 SMF users and 1 CPG user. Do I need to create 100 users in Coppermien? I tried adding a row in CPG's user db but had no effect... so I don't really know what I'm doing ;).
Thanks for the help.

Woof... Let me mull that over... 100 users.  Not sure if its easier to just recode the query or code up something to move user information :)

Are they in the same database?




Yes, same database. We can delete most of them (assuming that wouldn't cause bad things with SMF), but what about when more sign up? Will cpmfetch quit working?

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

Vini

Please
can anyone help me???
I only want to show the Last Updated Albums on my website!

vuud

Quote from: Vini on September 16, 2005, 01:12:27 AM
Please
can anyone help me???
I only want to show the Last Updated Albums on my website!

How far did you get so far?

This could be what you are looking for:

cpm_showAlbumsUpdatedOverLastDays($numberOfDays,$options="")
in the docs on this page:
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch07s05.html
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

isloera

First of all, I want to thank vuud for cpmfetch. Ok now I will continue with my post  ;)


I downloaded copperminefetch-1.6.2 fisrts and I followed the instructions. I opened cftest.php and everything passed the only weird thing was that the thumbnails were not showing. I tried the version before, copperminefetch-1.6.1, I looked everywhere for a solution and after two hours I found out what was the problem thanks to some posts in this thread.

I'm using Coppermine bridged with phpBB, and the only user that posts pictures is me :). My users send me the pictures and I put them in the Gallery.  The solution, as Vuud suggested before, was to add my username as used in phpBB to the coppemine users table. After doing that it worked :o, well kind of.  The thumbnails dind't show, but the captions with the links to the thumbnails were there and some errors related to the fetching of some more.   After Upgrading back to  copperminefetch-1.6.2 it worked fine and the Thumbnails showed. So far it works I still have to use the functions.