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

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]

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

stez

vuud - your example on the test page is not quite what I meant.   An example of what I meant might perhaps generate a result that looks like this in the output:

32 comments were added in the last 90 days.

Similar to your lastAddedMedia object call...:

23 items were added to the gallery in the last 90 days.

Just a thought really.. nothing more!

Now, I've installed your latest dev (1.38 last time I checked, seems to be a new one out every week ;) )... and I've put it on a new php host (my isp has decided to upgrade their cgi servers where dynamic scripts are hosted) and I sometimes get an error when using cfimageget.php   (still using C_DOCUMENT_ROOT fix).

<br />
<b>Warning</b>:  fopen(/files/home1/username//gallery/albums/new_pics/weardale2-june2005/thumb_weardale_june05%20072.jpg): failed to open stream: No such file or directory in <b>/files/home1/username/cpmfetch/cfimageget.php</b> on line <b>275</b><br />

The file do exist thumb_weardale_june05 072.jpg (without the %20 onto it as above) , having checked up via ftp and I know you previously said "spaces" were ok a few posts ago to another user, but it appears to not to work in instances like above?   

I hate spaces and funny symbols too but some ppl never learn.    :-\\

Kind regards,
Kyle

vuud

Quote from: stez on June 30, 2005, 12:17:08 AM
vuud - your example on the test page is not quite what I meant.   An example of what I meant might perhaps generate a result that looks like this in the output:

32 comments were added in the last 90 days.

Similar to your lastAddedMedia object call...:

23 items were added to the gallery in the last 90 days.

Just a thought really.. nothing more!

Now, I've installed your latest dev (1.38 last time I checked, seems to be a new one out every week ;) )... and I've put it on a new php host (my isp has decided to upgrade their cgi servers where dynamic scripts are hosted) and I sometimes get an error when using cfimageget.php   (still using C_DOCUMENT_ROOT fix).

<br />
<b>Warning</b>:  fopen(/files/home1/username//gallery/albums/new_pics/weardale2-june2005/thumb_weardale_june05%20072.jpg): failed to open stream: No such file or directory in <b>/files/home1/username/cpmfetch/cfimageget.php</b> on line <b>275</b><br />

The file do exist thumb_weardale_june05 072.jpg (without the %20 onto it as above) , having checked up via ftp and I know you previously said "spaces" were ok a few posts ago to another user, but it appears to not to work in instances like above?   

I hate spaces and funny symbols too but some ppl never learn.    :-\\

Kind regards,
Kyle

Well, we are nearing a new stable, so the development releases are bug fixes and last minute functionality.  I should do more stable releases (you should see the massive list of features added since 1.2).

I am on vacation/holiday this week, so I won't really be tinkering with this until I get back on the weekend.  Hope the spaces problem is not too bad for you.   When I get back in a few days I will test this out and bang out another development release.

Hopefully they will slow down as I think we have exhausted the list of things we can do...

: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

stez

I think you deserve it, I'm impressed at the rate!  It's not too much of a problem, as I try and keep silly filenames to a minimum anyway, so it's only returning a blank/error every now and again.  And I don't have to use the new server for another 2 months yet before I'm forced to move!

Enjoy your holiday man.

Kyle

tutone

vuud,

I updated to 1.38... but i still get some missing pics (probably the same problem as the person that posted the same problem after our previous exchange).. 

here is the ouput:

<table >
<tr>
<td><a href="/portal/gallery/displayimage.php?pos=-1346"  ><img class="test1" alt="Uploaded: 07-May-2005, Filename: Emma Dressed Up as a Flower Girl for Candice & Walt's Wedding #1 (UP, WA) 050705.jpg, Size: 12423, Album: Mobile Family Pictures, Uploaded By: msn, Title: " title="Uploaded: 07-May-2005, Filename: Emma Dressed Up as a Flower Girl for Candice & Walt's Wedding #1 (UP, WA) 050705.jpg, Size: 12423, Album: Mobile Family Pictures, Uploaded By: msn, Title: " src="/portal/gallery/albums/wpw-20050507/thumb_Emma Dressed Up as a Flower Girl for Candice & Walt's Wedding #1 (UP, WA) 050705.jpg"/></a><br /><center></center></td>
</tr>

</table>

thanks

vuud

Quote from: tutone on July 01, 2005, 07:21:02 PM
src="/portal/gallery/albums/wpw-20050507/thumb_Emma Dressed Up as a Flower Girl for Candice & Walt's Wedding #1 (UP, WA) 050705.jpg"

Geeze...  Its probably the & as that has a very special meaning in URL's... its part of the whole GET format for data being sent.  Your just asking for trouble now.

I will see what I can do - probably tomorrow...

How are you adding these into your gallery?  FTP upload or through the web browser interface?

EDIT:  I named a file the same as yours and it seems to work here... I uploade via a web browser though. 
When you upgraded did you change the includes to use cpmfetch.php instead of coppermine.php?
Otherwise nothing would be different even with the upgrade


Thanks!

Vuud

P.S.: STEZ - I got your problem on the list also
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: stez on June 30, 2005, 12:17:08 AM

Now, I've installed your latest dev (1.38 last time I checked, seems to be a new one out every week ;) )... and I've put it on a new php host (my isp has decided to upgrade their cgi servers where dynamic scripts are hosted) and I sometimes get an error when using cfimageget.php   (still using C_DOCUMENT_ROOT fix).

<br />
<b>Warning</b>:  fopen(/files/home1/username//gallery/albums/new_pics/weardale2-june2005/thumb_weardale_june05%20072.jpg): failed to open stream: No such file or directory in <b>/files/home1/username/cpmfetch/cfimageget.php</b> on line <b>275</b><br />

The file do exist thumb_weardale_june05 072.jpg (without the %20 onto it as above) , having checked up via ftp and I know you previously said "spaces" were ok a few posts ago to another user, but it appears to not to work in instances like above?   

I hate spaces and funny symbols too but some ppl never learn.    :-\\

Kind regards,
Kyle

Good news, I was able to replicate your problem...  Thanks for Tutones filename anyway.   I know what the issue is, just have to fix it.  Later tonight perhaps. 




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


STEZ, Tutone... 1.3.9 has been posted and I think it should fix at least Stez's problem/

Tutone - see my other post about cpmfetch.php versus coppermine.php ... 

Goodnight
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

tutone

vuud,

seems to be working awesome.  Great work!!!

marian

I get an error message when trying cftest.php
CoppermineFetch Install test page

Thank you for using CoppermineFetch...
ERROR: Path to Coppermine incorrect. (/home/bymnews/public_html/sphotos//include/config.inc.php)
Your installation seems correct so far, you should see a small grid of thumbnails from your gallery
Fatal error: Call to a member function on a non-object in /home/bymnews/public_html/copperminefetch/cpmfetch/coppermine.php on line 648

I hope you can give me some advice, please let me know if you want further information.

Nibbler

Why did you put sphotos ? surely that should be just photos ?

vuud

Quote from: marian on July 04, 2005, 05:39:42 PM
I get an error message when trying cftest.php
CoppermineFetch Install test page

Thank you for using CoppermineFetch...
ERROR: Path to Coppermine incorrect. (/home/bymnews/public_html/sphotos//include/config.inc.php)
Your installation seems correct so far, you should see a small grid of thumbnails from your gallery
Fatal error: Call to a member function on a non-object in /home/bymnews/public_html/copperminefetch/cpmfetch/coppermine.php on line 648

I hope you can give me some advice, please let me know if you want further information.

Nibblers right - you need to edit the top of the cftest.php file...

Do yourself a favor and download the latest dev version instead.  It will save you time later as the filenames have changed and the install works a bit better...

I think its 1.3.9 and its at http://cpmfetch.fistfullofcode.com

It will be a stable release in about a week so its fine for use..., unless this other program kills me first.






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

mrmike987

Quote from: vuud on March 28, 2005, 06:50:15 AM
Quote from: mrmike987 on March 27, 2005, 08:09:05 PM
Can you do time sisce added?  (This image was added 1 hour and 23 minutes ago. And if it's days later  (3 days 4 hours and 32 minutes ago)

Also ;D This gallery was updated 6 days 2 hours and 15 minutes ago.

Short answer: no
Long answer: no

Perhaps something to be added in the future.  I will accept patches for this for functionality... but it has to be in %x format for the subtitles... since that way it is language independent.  Also, there would have to be one for days ago, hours ago, minutes ago...  it opens up a whole can of works to do it right and in a non-language dependent manner.  Once you do that there is no logic in there for eliminating the days if there are 0 days...

If lots of people want this, I will do it... but otherwise I have other spots I can improve it in

Sorry









Is this still no?  LOL

vuud

Quote from: mrmike987 on July 04, 2005, 08:32:30 PM
Quote from: vuud on March 28, 2005, 06:50:15 AM
Quote from: mrmike987 on March 27, 2005, 08:09:05 PM
Can you do time sisce added?  (This image was added 1 hour and 23 minutes ago. And if it's days later  (3 days 4 hours and 32 minutes ago)

Also ;D This gallery was updated 6 days 2 hours and 15 minutes ago.

Short answer: no
Long answer: no

Perhaps something to be added in the future.  I will accept patches for this for functionality... but it has to be in %x format for the subtitles... since that way it is language independent.  Also, there would have to be one for days ago, hours ago, minutes ago...  it opens up a whole can of works to do it right and in a non-language dependent manner.  Once you do that there is no logic in there for eliminating the days if there are 0 days...

If lots of people want this, I will do it... but otherwise I have other spots I can improve it in

Sorry

Is this still no?  LOL

First, thanks for this post - it dragged me away from some other code that I am just not enjoying writing.   :D

Second, Yes, this is still No.  Many reasons why this is, come flooding back to me now.  Why do you want this anyway?  I mean isn't getting down the minute a little over zealous?

If you know PHP, you can get the data back and then do the date math and stuff yourself to display the subtitle the way you want it.
I think for the gallery level you can do something to display how many days ago ... no wait, I am wrong about that.

Anyway, no one else has asked for this sort of thing, but I can see the wisdon in a "days ago" marker... So if I don't forget I will add that in soon.

As for the rest... well, it opens a big can of worms as far as coding goes - so that won't be happening unless the public outcry is so great that I feel compelled to do that.

In the mean time, I suggest sitting down with a six pack and watching bubba ho-tep  http://www.bubbaho-tep.com/aboutbht.html

That should help you

  :D

Maybe I will add something later to this post extending cpmfetch to do it...




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

marian

Quote from: Nibbler on July 04, 2005, 05:46:57 PM
Why did you put sphotos ? surely that should be just photos ?
I didn't put sphotos. I just downloaded Copermine Fetch, about 4 d&ys ago, and followed the instructions and that is what I got.

marian

Quote from: vuud on July 04, 2005, 05:53:52 PM
Quote from: marian on July 04, 2005, 05:39:42 PM
I get an error message when trying cftest.php
CoppermineFetch Install test page

Thank you for using CoppermineFetch...
ERROR: Path to Coppermine incorrect. (/home/bymnews/public_html/sphotos//include/config.inc.php)
Your installation seems correct so far, you should see a small grid of thumbnails from your gallery
Fatal error: Call to a member function on a non-object in /home/bymnews/public_html/copperminefetch/cpmfetch/coppermine.php on line 648

I hope you can give me some advice, please let me know if you want further information.

Nibblers right - you need to edit the top of the cftest.php file...

Do yourself a favor and download the latest dev version instead.  It will save you time later as the filenames have changed and the install works a bit better...

I think its 1.3.9 and its at http://cpmfetch.fistfullofcode.com

It will be a stable release in about a week so its fine for use..., unless this other program kills me first.

OK, I'll download again and reinstall. It will be tomorrow as its late here and I still have a pile of work for tonight.
Looking forward to getting it going, it sounds great! :)

vuud

Quote from: marian on July 04, 2005, 09:47:41 PM
Quote from: vuud on July 04, 2005, 05:53:52 PM
Quote from: marian on July 04, 2005, 05:39:42 PM
I get an error message when trying cftest.php
CoppermineFetch Install test page

Thank you for using CoppermineFetch...
ERROR: Path to Coppermine incorrect. (/home/bymnews/public_html/sphotos//include/config.inc.php)
Your installation seems correct so far, you should see a small grid of thumbnails from your gallery
Fatal error: Call to a member function on a non-object in /home/bymnews/public_html/copperminefetch/cpmfetch/coppermine.php on line 648

I hope you can give me some advice, please let me know if you want further information.

Well, it is great at what it does...  At least I think so.

Anyway, the sphotos is the default in the cftest.php file...  Look at the top of the file.

The one thing that is lacking in cpmfetch is comprehensive documentation...  I forget half the stuff I added.

I have half an eye on the docbook format, which may be what I redo a nice user guide in.

Anything is possible



Nibblers right - you need to edit the top of the cftest.php file...

Do yourself a favor and download the latest dev version instead.  It will save you time later as the filenames have changed and the install works a bit better...

I think its 1.3.9 and its at http://cpmfetch.fistfullofcode.com

It will be a stable release in about a week so its fine for use..., unless this other program kills me first.

OK, I'll download again and reinstall. It will be tomorrow as its late here and I still have a pile of work for tonight.
Looking forward to getting it going, it sounds great! :)
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

mrmike987

Quote from: mrmike987 on July 04, 2005, 08:32:30 PM
Quote from: vuud on March 28, 2005, 06:50:15 AM
Quote from: mrmike987 on March 27, 2005, 08:09:05 PM
Can you do time sisce added?  (This image was added 1 hour and 23 minutes ago. And if it's days later  (3 days 4 hours and 32 minutes ago)

Also ;D This gallery was updated 6 days 2 hours and 15 minutes ago.

Short answer: no
Long answer: no

Perhaps something to be added in the future.  I will accept patches for this for functionality... but it has to be in %x format for the subtitles... since that way it is language independent.  Also, there would have to be one for days ago, hours ago, minutes ago...  it opens up a whole can of works to do it right and in a non-language dependent manner.  Once you do that there is no logic in there for eliminating the days if there are 0 days...

If lots of people want this, I will do it... but otherwise I have other spots I can improve it in

Sorry









Is this still no?  LOL

Ok......

im using this code:
$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,4,array("subtitle" => "<center>The gallery was last updated:<br>%w","imagelink" => "album"));
the problem is that you can center the text but not the image.
Is there a way to show last added date(%w) without showing an image?

I would use
$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,4,array("subtitle" => ","imagelink" => "album"));
And then use seperate code to show when the last image was added.
I tried this but I suck at coding and it didnt work...
$objCpm->cpm_formatStats(0,0,4("Last updated %w");

vuud


All my examples here use a recent version (get the lastest dev version)

Quote from: mrmike987 on July 04, 2005, 11:17:21 PM
Im using this code:
$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,4,array("subtitle" => "<center>The gallery was last updated:<br>%w","imagelink" => "album"));
the problem is that you can center the text but not the image.

$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,4,array("subtitle" => "The gallery was last updated:<br>%w","imagelink" => "album", cellattributes" => array("align"=>"center")));

Will align the contents of the TD tag


Quote from: mrmike987 on July 04, 2005, 11:17:21 PM
Is there a way to show last added date(%w) without showing an image?


$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,4,array("subtitle" => "%w","imagelink" => "album", cellattributes" => array("align"=>"center"), noimage=>"", subtitlelink=>""));

This will only show the date the last image was added, no image will be shown, the date will be a link to the album.  If you do not want the link, remove the subtitlelinkl tag

Quote from: mrmike987 on July 04, 2005, 11:17:21 PM
I would use
$objCpm->cpm_viewLastAddedMediaFromAlbum(1,1,4,array("subtitle" => ","imagelink" => "album"));
And then use seperate code to show when the last image was added.
I tried this but I suck at coding and it didnt work...
$objCpm->cpm_formatStats(0,0,4("Last updated %w");

Well, the above thing we just did will do that... But in any case, this was wrong.  Terribly terribly wrong.  :)
Nobody sucks at coding... everyone just has different skill levels. Practice and have faith.

Above syntactically should have been array("subtitle" => "","imagelink" => "album")

Vuud




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

marian

Quote from: vuud on July 04, 2005, 05:53:52 PM

Do yourself a favor and download the latest dev version instead.  It will save you time later as the filenames have changed and the install works a bit better...

I think its 1.3.9 and its at http://cpmfetch.fistfullofcode.com

It will be a stable release in about a week so its fine for use..., unless this other program kills me first.

I have done that and changed line 5, but I still have 1 Fail
80   CPG Config file not found: /home/bymnews/public_html/public_html/photos/include/config.inc.php   FAIL
I have tried various changes to the script, but I still get the error message with public_html in twice.
My latest change was to:
$testnumber = 80;
$cpgconfigfile = $_SERVER['DOCUMENT_ROOT'] . $ChangeThisToYourPartialUrlToCPG . '/photos/include/config.inc.php';
if (file_exists($cpgconfigfile)) {
   OutputTestRow($testnumber, "Found CPG config file", "PASS");
Sorry to have to ask, I did try to fix it myself.





Quote

unknown_girl

Hello! I'm not really into codding and that things, and I would like help with cpmfetch, because I want to put the 2 last images uploaded... but I don't understand nothing about this.... pls someone can help me... we can talk on msn : nidiadias@hotmail.com