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 2 3 [4] 5 6 7 8 ... 34   Go Down

Author Topic: CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG  (Read 324517 times)

0 Members and 2 Guests are viewing this topic.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #60 on: December 21, 2004, 04:56:39 pm »

And i would like to have a counter on my website (outside the gallery). Your counter only shows:  xx pictures. Correct me if im wrong!
I want to have this on my site: "171 files in 7 albums with 17 comments viewed 6520 times"

Well, I am not sure why it would give XX pictures.  If xx is a number than it is correct.

There is no functionality to do the other line, but it does not seem like it would be hard to do.  I will poke at it later when I get bored with my normal work.  I like the idea anyway.
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: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #61 on: December 21, 2004, 05:01:36 pm »

I had no idea so many people were using cpg for other media!  Anyway, aparently I will have to support this. 

Last added media from a category... no, but that is easy and I will code it in later today / tonight.

I also have to deal with other media formats.  As for the wmv thumbnails, if cpg displays them I can display them - if cpg does not, then its down to a maybe :)


I really want to use the last added media syntax...
the thing is...
I have one category full of wmv files...
when i put the include on my page it came up with just the alt text

i put up a test album with a few jpg files and it worked... since the jpgs were the last added media

so.... do you think you'll be able to call the thumbs from the video files? and link them to the page with the video.. or the album with the video...

and if not... is there a way to call last added media from a certain category... I already played with a few different versions of the include and i kept getting errors...
such as..

<?php $objCpm->cpm_viewLastAddedMediaFromCategory(1,1,2) ?>

Great job with this btw!!!!! I love it already
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: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #62 on: December 21, 2004, 05:04:07 pm »

indeed, no errors anymore.

now i see nothing  ???  :-\\

Do me a favor and post the syntax of what you are doing, and add this to the top of your script and run it.  This will show more errors than normal (and warnings).

<?php
   error_reporting(E_ALL);
   ini_set('display_errors',1);  // 0 is off, 1 is on
?>

Thx,

Vuud

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

peeps

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 29
  • Image pulled by Coppermine Fetch
    • philpeeps.com
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #63 on: December 21, 2004, 07:41:15 pm »

indeed, no errors anymore.

now i see nothing  ???  :-\\

Do me a favor and post the syntax of what you are doing, and add this to the top of your script and run it.  This will show more errors than normal (and warnings).

<?php
   error_reporting(E_ALL);
   ini_set('display_errors',1);  // 0 is off, 1 is on
?>

Thx,

Vuud


After some testing with your latest code, it appears to only return the red X when the filename includes spaces (from looking at the ".last" file). I have quite a few pictures that were named and uploaded by another user that have spaces in the filenames.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #64 on: December 21, 2004, 09:55:25 pm »



Quote
After some testing with your latest code, it appears to only return the red X when the filename includes spaces (from looking at the ".last" file). I have quite a few pictures that were named and uploaded by another user that have spaces in the filenames.
Quote


 ??? Thats strange, but not inconceivable... Being on linux I tend to avoid spaces.  Well, there is only one place that could be causing a problem.  I will tinker with it today.   

I was able to recreate the getting a bad image for other media types.  I am deciding on if it should return the media type icon versus not allowing those to come up at all and only selecting image files.

Ah well.  Hopefully tonight I can get this resolved.
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: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #65 on: December 22, 2004, 01:38:40 am »

I have not been able to reproduce the problem by browsing filenames with spaces.

 Can you post some examples of the contents of the debug file when it happens?  Perhaps its something else in the filenames...

Thanks

Vuud
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

peeps

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 29
  • Image pulled by Coppermine Fetch
    • philpeeps.com
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #66 on: December 22, 2004, 01:45:31 am »

I have not been able to reproduce the problem by browsing filenames with spaces.

 Can you post some examples of the contents of the debug file when it happens?  Perhaps its something else in the filenames...

Thanks

Vuud
Code: [Select]
[21-Dec-2004 12:27:59] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 028.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 114
[21-Dec-2004 12:28:08] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_TashaRehearsal - 09.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 114
[21-Dec-2004 12:29:20] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 209.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 114
[21-Dec-2004 12:29:59] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/userpics/10010/thumb_honeymoon - 20.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 114
[21-Dec-2004 12:31:40] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 056.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 114
[21-Dec-2004 12:31:55] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 017.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 114
[21-Dec-2004 12:37:27] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 141.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 132
[21-Dec-2004 12:39:02] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 121.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 132
[21-Dec-2004 12:47:21] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 139.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 132
[21-Dec-2004 12:49:10] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 075.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 132
[21-Dec-2004 12:49:47] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 054.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 132
[21-Dec-2004 12:50:10] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_TashaRehearsal - 02.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 132
[21-Dec-2004 12:50:27] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 011.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 132
[21-Dec-2004 12:53:35] PHP Warning:  readfile(http://www.philpeeps.com/gallery/albums/userpics/10008/thumb_What a picture2.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 132
As you can see, all failures have a space in the filename....

The change in line #'s is when I switched to your new code....
« Last Edit: December 22, 2004, 01:59:25 am by peeps »
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #67 on: December 22, 2004, 04:44:29 am »

Quote
As you can see, all failures have a space in the filename....

You do make a compelling case on that.  Its strange that the read is executing as a url though, as I believe it should be referring to it as a file://....  Anyway, the spaces may be what causes the problem in that case as they are not encoded (or appear to be).

I coded in a more direct way of sending file contents, and it is in the test version for download.  The coding for the path to cpm has also been moved to the top as a convienence thing. 

http://www.fistfullofcode.com/projects/copperminefetch/copperminefetch-dev.tar.gz

There is also another option in php called allow_url_fopen  (boolean) which if you can, check its state.  You can do that through a phpinfo() call.

The only other difference I can see between my test cases here and there are the extra directory, but I can't see why that would matter.

Let me know how it goes...

Vuud
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

peeps

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 29
  • Image pulled by Coppermine Fetch
    • philpeeps.com
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #68 on: December 22, 2004, 05:20:22 am »

After adding your code, this is what I get

Code: [Select]
[21-Dec-2004 22:00:59] PHP Warning:  main(../gallery/include/config.inc.php): failed to open stream: No such file or directory in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 25
[21-Dec-2004 22:00:59] PHP Warning:  main(): Failed opening '../gallery/include/config.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 25
[21-Dec-2004 22:00:59] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php:25) in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 127
[21-Dec-2004 22:00:59] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php:25) in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 128
[21-Dec-2004 22:01:00] PHP Warning:  main(../gallery/include/config.inc.php): failed to open stream: No such file or directory in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 25
[21-Dec-2004 22:01:00] PHP Warning:  main(): Failed opening '../gallery/include/config.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 25
[21-Dec-2004 22:01:01] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php:25) in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 127
[21-Dec-2004 22:01:01] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php:25) in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 128
[21-Dec-2004 22:01:01] PHP Warning:  main(../gallery/include/config.inc.php): failed to open stream: No such file or directory in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 25
[21-Dec-2004 22:01:01] PHP Warning:  main(): Failed opening '../gallery/include/config.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 25
[21-Dec-2004 22:01:01] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php:25) in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 127
[21-Dec-2004 22:01:01] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php:25) in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 128
[21-Dec-2004 22:01:01] PHP Warning:  fopen(../gallery/albums/wedding/thumb_IMG_0823.JPG): failed to open stream: No such file or directory in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 131

I have to add my full URL to get it to work the same that is has with an error for filenames with spaces...

Code: [Select]
[21-Dec-2004 22:02:44] PHP Warning:  fopen(http://www.philpeeps.com/gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha and Philip Wedding - 228.jpg): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
 in /home/philpeep/public_html/gallery/CoppermineFetch/cfimageget.php on line 131

If I set the filename to

Code: [Select]
$filetoget = 'http://www.philpeeps.com//gallery/albums/wedding/rae_pics_our_wed/thumb_Tasha%20and%20Philip%20Wedding%20-%20228.jpg';
then it works just fine, so maybe it should search out spaces and replace with "%20" or search for spaces and exclude the files....
« Last Edit: December 22, 2004, 05:29:58 am by peeps »
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #69 on: December 22, 2004, 05:45:41 am »


The problem with changing the spaces is that if it access the file by the file:// spec then it will not find the file with spaces encoded.  I am trying to figure out why on yours it seems intent on accessing the file via http:// instead of just directly. 

If we can figure out that, then I can solve your problem pretty easily.

As for having the full url to get to the config.inc.php it looks like you have a setting wrong.  To get from where you have cfimageget installed to where your config.inc.php would be ../../gallery or just ../include ...

What kind of webserver is it, and is there anyway you can put me up a page that shows a phpinfo( ) output?  You can email me the link if you want.

Thanks much






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: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #70 on: December 22, 2004, 07:40:14 am »

The problem with changing the spaces is that if it access the file by the file:// spec then it will not find the file with spaces encoded.  I am trying to figure out why on yours it seems intent on accessing the file via http:// instead of just directly. 

Never mind all that.  I was able to recreate your problem exactly and the problem is all in the less-than-wonderful-docs

In your php file for $pathtocpm you have your website as in URL to cpm I will bet.

So you have $pathtocpm="http://www.philpeeps.com/gallery" or something similar?  Right?  Am I right?

What this should really be is the path from where the cfimageget.php file is to where the coppermine directory is.

For me on my server its $pathtocpm="../photos";

If you have the copperminefetch directory inside your coppermine directory like /gallery/CoppermineFetch/

then you could probably get away with $pathtocpm="..";

Basically it needs to be able to append /albums onto the end to show photos.

If you put the http:// in there, it floats fine all the way through the script until it tries to read the file, then the presence of http:// in the front of it triggers a reaction in php to access it the other way and we end up in unencoded space hell.

 ;D

Hope that does the trick... You should not have any http's anywhere in that script.

Yours should probably look like so:

Code: [Select]
include "coppermine_dao.php";
include "../include/config.inc.php";
$pathtocpm = "..";





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

cxprod

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #71 on: December 22, 2004, 08:39:01 am »

I had no idea so many people were using cpg for other media!  Anyway, aparently I will have to support this. 

Last added media from a category... no, but that is easy and I will code it in later today / tonight.

I also have to deal with other media formats.  As for the wmv thumbnails, if cpg displays them I can display them - if cpg does not, then its down to a maybe :)

Thanks... yes cpg allows you to specify custom thumbs for wmv files.. and it has a default thumb for each type of media that comes up if there is not a custom one uploaded with the media files...

I use cpg for about 10 sites with mostly videos... it would be great addition to have the last added video or photo on the index pages :)
Thanks

CX
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #72 on: December 22, 2004, 08:45:09 am »

Thanks... yes cpg allows you to specify custom thumbs for wmv files.. and it has a default thumb for each type of media that comes up if there is not a custom one uploaded with the media files...

I use cpg for about 10 sites with mostly videos... it would be great addition to have the last added video or photo on the index pages :)
Thanks

CX

Is there a site I can snag a few wmv files from to test this out.  Preferrably one with custom thumbnails so I can make sure it works.

I was poking at it some today and found the default media thumbs.  So you are saying you can make your own thumb specifially for one media file (say a frame from it) and it will serve that up if you have it... default otherwise.

That should not be hard....
( I probably just cursed myself saying that)




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

peeps

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 29
  • Image pulled by Coppermine Fetch
    • philpeeps.com
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #73 on: December 22, 2004, 07:32:55 pm »

http://www.philpeeps.com/wp/test.php

Thanks! That did the trick! Now I just need to figue out how to make it a link to the random image...

Sorry my level of php knowledge cost you some time.

So the ".." is equivalent of the DOS command "cd.." to go up a directory?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #74 on: December 22, 2004, 08:54:50 pm »

http://www.philpeeps.com/wp/test.php

Thanks! That did the trick! Now I just need to figue out how to make it a link to the random image...

Sorry my level of php knowledge cost you some time.

So the ".." is equivalent of the DOS command "cd.." to go up a directory?



Doing it that way, you will not be able to make it a link that I know of.  Unless you make the img tag a link to a specific album and then request from that album.

If you want the other way, I suggest using the main part of the code and not using the cfimageget.php if that is an option.  That actually generates all the html for you.

See the first post in here for more details, I update that often

Glad it worked  ;D

PS. yes .. means go up one, but . means this one.  So ./gallery would mean the directory gallery from where I am now





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

peeps

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 29
  • Image pulled by Coppermine Fetch
    • philpeeps.com
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #75 on: December 23, 2004, 12:28:47 am »

Thanks... yes cpg allows you to specify custom thumbs for wmv files.. and it has a default thumb for each type of media that comes up if there is not a custom one uploaded with the media files...

I use cpg for about 10 sites with mostly videos... it would be great addition to have the last added video or photo on the index pages :)
Thanks

CX

Is there a site I can snag a few wmv files from to test this out.  Preferrably one with custom thumbnails so I can make sure it works.

I was poking at it some today and found the default media thumbs.  So you are saying you can make your own thumb specifially for one media file (say a frame from it) and it will serve that up if you have it... default otherwise.

That should not be hard....
( I probably just cursed myself saying that)

Let me know when this is functional, as I too would like to show the default media thumbnails if that is the last uploaded item, so the look is consistent whether it is a jpeg or wmv that is last uploaded...
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #76 on: December 23, 2004, 05:47:00 am »

I will post a note here when that is working, or I have a good development release ready.  I also updated the first post on this thread with what I hope to have done for the end of the year.

Happy holidays to all
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

snork13

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 260
  • Internet! Is that thing still around?
    • Gallery
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #77 on: December 23, 2004, 06:36:22 am »

Working good for me, i've made a few changes, nothing big..thanks

snork
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #78 on: December 23, 2004, 06:44:10 am »

Working good for me, i've made a few changes, nothing big..thanks

snork

Good to see it worked for someone off the bat.  If you don't mind my asking, what did you change?  I'm on an improvement kick for it now and any thoughts are welcome.

I just coded in the calls for last images from an album or category.  Tinkering with the default media icons now. (neither of them are up 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

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: CoppemineFetch - stats / thumbnails / randoms / last added outside cpm
« Reply #79 on: December 23, 2004, 10:59:33 am »

Great job and mod, vuud. (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Ftu2.net%2Fforums%2Fimages%2Fsmiles%2Ficon_thumbs_up.gif&hash=cbd06a1c9e7ed95fc644412cfb383324) I got it up on my home page. I added the filmstrip look to it.
« Last Edit: January 15, 2006, 06:51:39 pm by TranzNDance »
Logged
Pages: 1 2 3 [4] 5 6 7 8 ... 34   Go Up
 

Page created in 0.036 seconds with 20 queries.