CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG - Page 20 CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG - Page 20
 

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 - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG

Started by vuud, December 17, 2004, 10:19:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud

Quote from: cdrake on April 02, 2005, 01:15:40 AM
I have looked through the docs quite a few times but am aparently blind. I have everything figured out now... I think.

Is this correct?
-------
$source = "cat=2,3:album=47";
-------
$objCpm->cpm_viewLastAddedMediaFromCategory (4,1,$source);
-------

It is correct for the source format, but the source only works with the cpm_viewLastAddedMediaFrom(4,1,$source)

Wierd on the error, I will have to see why you are getting that...

As for linking subtitles, no - currently there is no way to do that - but its something I will most likely do in the future...


Hope that helps
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

cdrake

Changing $objCpm->cpm_viewLastAddedMediaFromCategory (4,1,$source); to $objCpm->cpm_viewLastAddedMediaFrom (4,1,$source);  Fixed the error.

will gif support in the next dev release?

vuud

Quote from: cdrake on April 02, 2005, 04:22:38 AM
Changing $objCpm->cpm_viewLastAddedMediaFromCategory (4,1,$source); to $objCpm->cpm_viewLastAddedMediaFrom (4,1,$source);  Fixed the error.

will gif support in the next dev release?

I think I am getting confused between two conversations on gifs...

If you just want it to be able to display gif's as part of your images it can already do that.

Just add in gifs to the filter...

$objCpm->cpm_setFilter(array(".jpg",".gif"));

after you create the object.




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

cdrake

I doesnt display the gifs that are used for custom thumbnails for me.

Ive got

<?php
$objCpm = new cpm('/gallery');
$objCpm->cpm_setFilter(array(".jpg",".gif",".swf"));   
$objCpm->cpm_viewLastAddedMedia (4,1,$source);
?>

It still displays the default http://drakeshangout.com/gallery/images/thumb_swf.jpg and not the custom thumbnail. It works for .jpg so I dunno whats up.

vuud

Quote from: cdrake on April 03, 2005, 03:20:08 AM
I doesnt display the gifs that are used for custom thumbnails for me.

Ive got

<?php
$objCpm = new cpm('/gallery');
$objCpm->cpm_setFilter(array(".jpg",".gif",".swf"));   
$objCpm->cpm_viewLastAddedMedia (4,1,$source);
?>

It still displays the default http://drakeshangout.com/gallery/images/thumb_swf.jpg and not the custom thumbnail. It works for .jpg so I dunno whats up.


hah - sorry, yes it will still ignore gif's in that capacity.

I'm rebuilding a linux firewall to obsd over the next day, then I will get that into a dev version

So check back in a day or two for a posting about it

Thanks


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


Dsq

Hello,

Just trying to play with CpmFetch.

CfTest.php works, after adding the ?>  mentioned in an earlier post.

My problem is that I can't get to work at all.   

Could you tell me what steps I need to take to be able to use cfimageget.php - what do I need to edit and in what files?  I've tried many combinations!   :-\\

Sorry!


Thanks in advance.

David

ISBB

 ???

Parse error on line 38 of cftest.php

???


Tried it two diffrent ways with all the files in just plain /
and in thier own directory /cpmfetch

got the same error runnin it both ways
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

vuud


Regrettably there was a syntax error in the cftest.php ... You can either add a ?> on line 37 or downoad 1.2.1 and use that.

That file has now been added into my build system so it will be syntax checked automatically in the future.

My bad



Quote from: ISBB on April 06, 2005, 01:14:46 AM
???

Parse error on line 38 of cftest.php

???


Tried it two diffrent ways with all the files in just plain /
and in thier own directory /cpmfetch

got the same error runnin it both ways
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


To use cfimageget you only need to edit the top of that file.  Unless you are on a strange web server.

Most importantly

$ALLOW_DIRECT_ACCESS = false;

Has to be set to true if you are going to call that script from html directly.

And the $urltocpm has to be set

Hope that helps!



Quote from: Dsq on April 05, 2005, 09:54:38 PM
Hello,

Just trying to play with CpmFetch.

CfTest.php works, after adding the ?>  mentioned in an earlier post.

My problem is that I can't get to work at all.   

Could you tell me what steps I need to take to be able to use cfimageget.php - what do I need to edit and in what files?  I've tried many combinations!   :-\\

Sorry!


Thanks in advance.

David
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

Dsq

Vuud,

Thanks for the reply.  Still no luck.

> I copied all the CpmFetch files to the server to ensure I started with a clean set.
> I changed line 25 to be $ALLOW_DIRECT_ACCESS = true;.
> I changed line 31 to reflect my Coppermine directory location relative to the root.

No other changes were made to ANY of the files within the CpmFetch directory.

I link an image tag in a HTML document to <img src="cpmfetch/cfimageget.php">.  All I get is a failed image load signified by a small square with a red cross.


Any ideas where I'm going wrong?

Thanks

vuud

Quote from: Dsq on April 06, 2005, 08:36:19 AM
Vuud,

Thanks for the reply.  Still no luck.

> I copied all the CpmFetch files to the server to ensure I started with a clean set.
> I changed line 25 to be $ALLOW_DIRECT_ACCESS = true;.
> I changed line 31 to reflect my Coppermine directory location relative to the root.

No other changes were made to ANY of the files within the CpmFetch directory.

I link an image tag in a HTML document to <img src="cpmfetch/cfimageget.php">.  All I get is a failed image load signified by a small square with a red cross.

Any ideas where I'm going wrong?

Thanks

Sounds like you have it set right.

Somethings to check...

1) Is cfimageget located in the cpmfetch directory under your web page (ie: the path you have in the image tag)..  in other words, can your img tag find it from where it is?

2) Try calling it directly with a web browser (not in a page) ... that way syntax errors will show up on the screen (sometimes you need to View Source IIRC)

The second is very helpful when I run into problems.

Also, right clicking on the X image can also give you an idea of what is wrong... it could list a photo but simply be a bad path... see what the properties are.

Hopefully one of these will be a winner
:D










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

Dsq

Thanks again for the reply.

1) Directory location is correct.

2) Tried a direct call.  Still shows the little square with a red cross.  Looking at the 'image' properties, the 'image' path is the 'cfimageget.php' file and not a real image.

If I add a number of '.'s in the '$urltocpm = ".../aaaaa";' definition, to force and error,  it shows the following:

htdocs.../aaaaa//include/config.inc.php

I can't work out where the second / comes from in the location there.

Crazy!   :D

Thanks.

David

ISBB

works now... one sec and ill have it up in my block on smartor's portal


http://www.zr2nw.com

Block is on the lower right

Works great thx VUUD... any idea when you will have the option for 2 or more random pics w/ the html tags..  I tried just doubling it up but it pulls the same random pic no sweat though..
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

vuud

Quote from: Dsq on April 06, 2005, 10:26:06 PM
Thanks again for the reply.

1) Directory location is correct.

2) Tried a direct call.  Still shows the little square with a red cross.  Looking at the 'image' properties, the 'image' path is the 'cfimageget.php' file and not a real image.

If I add a number of '.'s in the '$urltocpm = ".../aaaaa";' definition, to force and error,  it shows the following:

htdocs.../aaaaa//include/config.inc.php

I can't work out where the second / comes from in the location there.

Crazy!   :D

Thanks.

David

I am betting the second slash is an artifact in the program... to insure that there is a slash... yes, its a bad way to do it, but should not affect your url.

I just checked and I think it is a problem in my program... I will look at it and post again later





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: ISBB on April 06, 2005, 11:48:33 PM
works now... one sec and ill have it up in my block on smartor's portal


http://www.zr2nw.com

Block is on the lower right

Works great thx VUUD... any idea when you will have the option for 2 or more random pics w/ the html tags..  I tried just doubling it up but it pulls the same random pic no sweat though..

its not my program giving you the same image... its your browser deciding it already got one from that exact file and it can just display it again.

Someone reported that you could just stick some bogus parameters after it to trick the browser into doing it again...

cfimageget.php?longtallsally=shessofine
cfimageget.php?happyhappy=joyjoy

That should fix what ails you









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: Dsq on April 06, 2005, 10:26:06 PM
Thanks again for the reply.

1) Directory location is correct.

2) Tried a direct call.  Still shows the little square with a red cross.  Looking at the 'image' properties, the 'image' path is the 'cfimageget.php' file and not a real image.

If I add a number of '.'s in the '$urltocpm = ".../aaaaa";' definition, to force and error,  it shows the following:

htdocs.../aaaaa//include/config.inc.php

I can't work out where the second / comes from in the location there.

Crazy!   :D

Thanks.

David

Get the new stable I just posted, or comment out the line that says

header ("Content-Length...

Aparently that has gone horrible wrong

Let me know if that works for you


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

ISBB

Sweet!!!  THX

One more question if its not tooo big of a hassle... is there any way to make those images clickable taking you to thier respective albums??
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

vuud

Quote from: ISBB on April 07, 2005, 03:06:44 AM
Sweet!!!  THX

One more question if its not tooo big of a hassle... is there any way to make those images clickable taking you to thier respective albums??

If you are specifying the album in your request you can always wrap the img tag in a link tag...

Otherwise no, until I work out an SSI accessor for cpmfetch.  Which I have no idea when that will be

:(
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

luke

Very very minor bug for you vuud, was just poking around coppermine.php to customize layout, and noticed on line 1070 you have closed the opening <th> tag with a </td>. Like I said, very minor but though you might like to know.. :D