Advanced search  

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

Pages: 1 ... 28 29 30 31 [32] 33 34   Go Down

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

0 Members and 1 Guest are viewing this topic.

stez

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #620 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
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 #621 on: June 30, 2005, 01:09:56 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




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

stez

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #622 on: June 30, 2005, 02:01:39 am »

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
Logged

tutone

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 64
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #623 on: July 01, 2005, 07:21:02 pm »

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
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 #624 on: July 02, 2005, 06:06:45 am »

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
« Last Edit: July 03, 2005, 02:36:50 am by 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

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 #625 on: July 03, 2005, 02:39:05 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. 




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 #626 on: July 03, 2005, 07:01:53 am »


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

tutone

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 64
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #627 on: July 04, 2005, 07:25:56 am »

vuud,

seems to be working awesome.  Great work!!!
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Error message
« Reply #628 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.
Logged

Nibbler

  • Guest
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #629 on: July 04, 2005, 05:46:57 pm »

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Error message
« Reply #630 on: July 04, 2005, 05:53:52 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.






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

mrmike987

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG - New dev ver!
« Reply #631 on: July 04, 2005, 08:32:30 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
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 - New dev ver!
« Reply #632 on: July 04, 2005, 08:55:46 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...




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

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #633 on: July 04, 2005, 09:43:26 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.
Logged

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Error message
« Reply #634 on: July 04, 2005, 09:47:41 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! :)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Error message
« Reply #635 on: July 04, 2005, 10:06:16 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! :)
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

mrmike987

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG - New dev ver!
« Reply #636 on: July 04, 2005, 11:17:21 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");
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 - New dev ver!
« Reply #637 on: July 05, 2005, 01:36:23 am »


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

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


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

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




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

marian

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 160
    • BYM Photo Gallery
Re: Error message
« Reply #638 on: July 05, 2005, 09:43:47 am »


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
Logged

unknown_girl

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 23
Re: CpmFetch - stats/thumbnails/randoms/etc from outside CPG
« Reply #639 on: July 05, 2005, 04:51:39 pm »

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
Logged
Pages: 1 ... 28 29 30 31 [32] 33 34   Go Up
 

Page created in 0.034 seconds with 20 queries.