Advanced search  

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]

Pages: 1 ... 16 17 18 19 [20] 21 22 23 24 ... 34   Go Down

Author Topic: CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG  (Read 393000 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 - stats/thumbnails/randoms/etc from outside CPG
« Reply #380 on: April 02, 2005, 01:53:19 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
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

cdrake

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #381 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?

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #382 on: April 02, 2005, 05:03:55 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.




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

cdrake

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #383 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.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #384 on: April 03, 2005, 06:36:07 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


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

cdrake

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #385 on: April 05, 2005, 09:45:02 pm »

ok. I cant wait  ;D ;) :D

Dsq

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
cfimageget.php - not working
« Reply #386 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
Logged

ISBB

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Northwest ZR2's
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #387 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
Logged
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

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #388 on: April 06, 2005, 06:52:59 am »


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



???

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
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: cfimageget.php - not working
« Reply #389 on: April 06, 2005, 06:54:52 am »


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!



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

Dsq

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #390 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #391 on: April 06, 2005, 10:04:19 pm »

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










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

Dsq

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #392 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
« Last Edit: April 06, 2005, 10:53:01 pm by Dsq »
Logged

ISBB

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Northwest ZR2's
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #393 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..
« Last Edit: April 06, 2005, 11:57:23 pm by ISBB »
Logged
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

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #394 on: April 06, 2005, 11:55:53 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





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 - stats/thumbnails/randoms/etc from outside CPG
« Reply #395 on: April 07, 2005, 01:51:00 am »

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









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 - stats/thumbnails/randoms/etc from outside CPG
« Reply #396 on: April 07, 2005, 01:56:44 am »

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


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

ISBB

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Northwest ZR2's
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #397 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??
Logged
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

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #398 on: April 07, 2005, 06:08:43 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

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

luke

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #399 on: April 07, 2005, 12:30:17 pm »

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

Logged
Pages: 1 ... 16 17 18 19 [20] 21 22 23 24 ... 34   Go Up
 

Page created in 0.03 seconds with 19 queries.