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 ... 6 7 8 9 [10] 11 12 13 14 ... 34   Go Down

Author Topic: CpmFetch - (OLD/LOCKED) stats/thumbnails/randoms/etc from outside CPG  (Read 389153 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

Hi Vuud,

thanks to your docs and examples this is the first time I've posted in this thread.  Just wanted to say thanks for all your work on cpmfetch.  Now my friends and family think I'm a genius!  - actually I give you full credit

Thanks much,
N704FN

Well, Thanks!   ;D

PS. Personally I am not happy with the docs...   

Oh yeah, and check back soon for nifty stuff that is being added...

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
Yay! Development 1.1.1 is out
« Reply #181 on: January 14, 2005, 08:17:38 am »

To whom it may concern:

The latest dev release, 1.1.1 is available for download from the web site. 

cpmfetch.fistfullofcode.com < and see the downloads section.

 ??? What wonderous stuff is in this iteration... you may ask:

Bugfix for coppermine being installed in the root of a web server - hopefully this fixes a slight bug when coppermine is installed right in the web root

setReturnType([print, html, resultset]) to have functions return rowsets, htmldata or print it
All functions recoded to support setReturnType as much as possible


These sort of go together.  The default behavior for a function called in CoppermineFetch is to print the output.  Now, you have the option to call $obj->cpm_setReturnType( type ); to tell it what to return.  not everything is supported across all options... see the phpdocs to see which ones are.

Valid types:
print - dumps directly to output
html - returns a string variable containng the html
resultset - returns a mysql result set containing the data that would have been formatted.


Lots of internal changes to make extension easier (aka RSS Feeds) - I've been tinkering with RSS and figured I would try extending in that direction.  Its coming along pretty well.  There is an example in the cpmfetch directory... Not recommended for use, but if you are good with php you can try it out  All these changes have helped the code some, but may also have broken things.  if you can test - great!

Added a debug flag in case anything happens out there - right now setting cpm_setDebugMode(true) mostly dumps out sql statements.  Primarily for my use.

Added in prototype for java popup window
This provides a nicer way to display full size images instead of a whole new browser window.  Right now it only works if three conditions are met

1) Somewhere in your page you include the cpmfetch.js as an external javascript
<script language="JavaScript" src="./cpmfetch.js"></script>

2) Your imagelink option is set to "large"

3) Your windowtarget option is set to "_blank"

*note* this is still really new, and there is much I do not like about it.  So it will be changing, but let me know if you have any suggestions.

 :( Promises broken  :(

I had noted a function for showing the last added albums and categories.  I checked and this is just not going to work out.  CPM does not track when these were created, and if I start tracking metadata about the data I am going to be more tied to one release.  I like to keep it as loose as possible.

Sorry if anyone was thrilled with that idea

So right now, I have on my list still to do:  subtitles for images, last comment added with image, limiting the size of an image displayed, category list with images added recently (like the album one), and polish up the javascript popup

Take care, have a nice day





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

First of all : thank you Vuud for this so_great_hack for coppermine;
I was searching for this kind of mod for a long time and you did it  :o ;D

I've installed the 1.1-dev version from your CoppermineFetch on my webserver;
I don't have any folder for my coppermine web gallery and the websurfers browse
directly the webgallery when they hit www.x-poz.org.

I've followed your instructions & tested with your stable 1.0 mod too
and I really don't know why I've got nothing else than the titles of my shots & bad href links

Everything is here : http://x-poz.org/cftest.php

BTW I've tested with a small .php webpage & I've got the same strange result :
Code: [Select]
<?php 
include "./coppermine.php";
$objCpm = new cpm("/");
$objCpm->cpm_viewRandomMedia(3,3);
$objCpm->cpm_close();
?>


The last suggestion I issued probably did not work all that well.  There is a 1.1.2 dev release that definately fixes this problem.  I made a dev server here to test it and it works good now.

Its on the web site


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

@protox, what version of coppermine are you using.

I had the same result as you with this version of fetch, but as I am using it on a test version(1.4) of cpg, thought it was related.
version 0.9 .2 does work (mostly) with 1.4.


Hey Casper,

Same goes for you with the new version... if you were experiencing path problems there are two new functions you can call for wierd situations:

$objCpm->cpm_OverridePathToCoppermine("/var/www/html/artiphoto");
$objCpm->cpm_OverrideUrlToCoppermine("/artiphoto");

To be honest with you, at 5:30am this is not completely clear to me.  What the
two new functions (in order)

#1 - Tells copperminefetch to not use its generate path based on the document
root and instead uses what you tell it

#2 - affects how the links are made.

You still need to get the object created, but after that this will adjust the behaviour specifically.  90% of the people should not need this...

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

protox

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 49
  • Digital Photographer
    • x-poz

Just small words to say that everything is working good with your mod Vuud; THXXXX ;)
Logged
Latest shot from " Les disséqueurs de société " :

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fx-poz.org%2Fcpmfetch%2Fcfimageget.php%3Fcmd%3Dlast&hash=6c9ccde658006a5ed432bbbd56630302b3cb9b7d)

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

Just small words to say that everything is working good with your mod Vuud; THXXXX ;)

Excellent to hear.  Within the next few days I will be putting out the final dev release, so it will have all the features of the next stable version.  otherwise I will be only doing bug fixes, documentation improvment and possibly some more work on cfimageget.php and cfrssget.php

Have a great day!

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

protox

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 49
  • Digital Photographer
    • x-poz

Now .. next problem : I cannot write the xml file ... strange ..
it says :
Quote
Warning: fopen(feed.xml): failed to open stream: Permission denied in /home/www/db42903[...]6bcc6bf748cb626/web/libs/feedcreator.class.php on line 686

Error creating feed file, please check write permissions.

I think that I've got a CHMOD thing to do .. but where ...
Logged
Latest shot from " Les disséqueurs de société " :

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fx-poz.org%2Fcpmfetch%2Fcfimageget.php%3Fcmd%3Dlast&hash=6c9ccde658006a5ed432bbbd56630302b3cb9b7d)

fpatten

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

Is there a way to modify the CFimageget.php file to display the latest image instead of a random one? I have everything working at http://www.frankpatten.ca or http://www.frankpatten.ca/cpmfetch/CFimageget.php

Thanks for any help
Logged
RandomImage                        LatestImage
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.frankpatten.ca%2Fcpmfetch%2FCFimageget-r.php&hash=97c500c5fd88938ab34aaed4303f0fe2d8aedb97) (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.frankpatten.ca%2Fcpmfetch%2FCFimageget-l.php&hash=9dce2ddf7430aaa575b508d13770b3a08603cc7d)

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

Now .. next problem : I cannot write the xml file ... strange ..
it says :
Quote
Warning: fopen(feed.xml): failed to open stream: Permission denied in /home/www/db42903[...]6bcc6bf748cb626/web/libs/feedcreator.class.php on line 686

Error creating feed file, please check write permissions.

I think that I've got a CHMOD thing to do .. but where ...

The RSS feed is still very much in its beginning stages...  You do need to have writeable mods to that directory though... 

It will be better supported soon, not to mention finished!





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

Is there a way to modify the CFimageget.php file to display the latest image instead of a random one? I have everything working at http://www.frankpatten.ca or http://www.frankpatten.ca/cpmfetch/CFimageget.php

Thanks for any help

I guess to answer your question - nope.  At this point it can only do random from specific albums, categories, etc.  That does seem like a good feature though - so I will add it into the next dev release.  That whole cfimageget.php really needs a good once over from my point of view.

Possibly by tomorrow (ie: very late tonight) or the next day I will have a new dev version up that has pretty much everything I had to do left.  Especially subtitles for under photos...  cool stuff.

Have a nice day

Bill






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

Alaska

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: CoppermineFetch - CSS
« Reply #190 on: January 18, 2005, 11:03:14 pm »

Bill:

What is your feedback on the CSS examples.  I like the one with the singlle image the best.  All would look better if the images were all of the same size (height - width).  It is interesting what can be done without the use of a table.

Jim
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppermineFetch - CSS
« Reply #191 on: January 18, 2005, 11:42:18 pm »

Bill:

What is your feedback on the CSS examples.  I like the one with the singlle image the best.  All would look better if the images were all of the same size (height - width).  It is interesting what can be done without the use of a table.

Jim

Hey Jim,

Being the first one to admit that I can do little more with CSS than change fonts and alignment...  I think they are really cool, and I really could not tell what was a table and what was not...

Any feedback on what I could do to make it easier for people that want to use pure CSS (e.g.: CSS for layout and stuff) would be great.

Thanks

Bill






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

Alaska

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: CoppermineFetch - CSS More
« Reply #192 on: January 19, 2005, 12:15:26 am »

Bill:

In order to make this work, the coppermine.php file was altered to remove all of the table tags (table - td - tr).  i.e. to totally remove all table functions.  Then <ul class = "photolist"> is used to replace the beginning table tag.  The close table tag then becomes </ul>

Then the td tags were replaced with <li> and </li>.  The tr tags were just commented out so that they would not show up.

This makes for a nice fluid design in which the text below the pictures moves up or down as needed.  The next task will be to see what can be done for either a left or right vertical photo gallery.  Most likely that can be done with the same code being place in a few nicely placed  <divs>.  Will see if it works out and if so, will then add them to the sample.

You may have some suggestions on perhaps a function could be developed to allow the choice of either a table or CSS output for the coppermine.php script.  Of course it then would be nice to have a choice to what the ul class would be called.  I chose photolist, but others may want to used something different or nothing at all.

Jim
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CoppermineFetch - CSS More
« Reply #193 on: January 19, 2005, 01:48:48 am »

You may have some suggestions on perhaps a function could be developed to allow the choice of either a table or CSS output for the coppermine.php script.  Of course it then would be nice to have a choice to what the ul class would be called.  I chose photolist, but others may want to used something different or nothing at all.

Thats pretty much the plan - I just have to figure out the whole CSS thing... :)



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
Dev 1.1.3 is out
« Reply #194 on: January 19, 2005, 06:54:02 am »

Dev version 1.1.3 is out

This marks the last features to be added to the core coppermine.php program for the 1.x series.  When I think it is ironed out enough it will become 2.0.  I beg, and plead for anyone interested in using cpmFetch to use this version (or whatever the newest in the dev listing is) and report any bugs or problems so we can iron out all the little bugs that creep up :)

I'll be ironing out some of the accessory programs.

This release has the

Added subtitle option (same syntax as alttag) - to display subtitles in the grid layouts

Added cpm_showCategoriesUpdatedOverLastDays($numberOfDays,$options="")

Added cpm_viewLastCommentedImages - shows last commented images, provides subtitle access to comment

As I said, go for the newest release on my downloads page... 1.x.x ...

http://cpmfetch.fistfullofcode.com

If you check the readme file, you can see what has been updated since whatever version you have now.

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

fpatten

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

I was going through the latest 1.1.3 dev release and was experimenting with the code. I replaced all the "RandomMedia" with "LastAddedMedia" and it seem to work just fine.

see it here..       http://www.frankpatten.ca/cpmfetch/cfimageget-l.php "l" is for LastAddedMedia
as opposed to..  http://www.frankpatten.ca/cpmfetch/cfimageget-r.php "r" is for RandomMedia
Logged
RandomImage                        LatestImage
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.frankpatten.ca%2Fcpmfetch%2FCFimageget-r.php&hash=97c500c5fd88938ab34aaed4303f0fe2d8aedb97) (https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.frankpatten.ca%2Fcpmfetch%2FCFimageget-l.php&hash=9dce2ddf7430aaa575b508d13770b3a08603cc7d)

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

I was going through the latest 1.1.3 dev release and was experimenting with the code. I replaced all the "RandomMedia" with "LastAddedMedia" and it seem to work just fine.

see it here..       http://www.frankpatten.ca/cpmfetch/cfimageget-l.php "l" is for LastAddedMedia
as opposed to..  http://www.frankpatten.ca/cpmfetch/cfimageget-r.php "r" is for RandomMedia

Yep, that should work fine.  Part of the download has phpdocs in it, so you can even get a better idea of what other wonders are available for those brave enough to face the undocumented coppermine_dao (better in line code documentation is on the way).  :)

I also layed out the replacement for cfimageget which will have the same call but more options - and be easier to add on your own calls.

Good job!

Bill

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

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net

Vuud : I use on my site http://www.sortons.net/photos/

with displayimage.php 0 TABLE ...

Do not use UL LI ... bad thing for galleries (but great for menus)

Rather instead <div></div> or <p></p> using float:left

Or ... <dl><dt><dd></dd></dt></dl>

n704fn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 31

Hi,

quick question about cfimageget.php.  Both my Coppermine folder and Coppermine fetch folders are off the root...  root/cpg132 and root/cfetch.  I'm not quite sure about this:

Code: [Select]
include "coppermine_dao.php";
include "../cpg132/include/config.inc.php";

// This is the path (NOT URL) from where your cfimageget.php file is to your coppermine directory
$pathtocpm = "../cfetch";

// This is the partial url (part AFTER your domain name, to get to the coppermine directory
$urltocpm = "/cpg132";

Should the path to cpm be the same as url to cpm, or do I have it correct?  I've had it both ways and from here it seems to work either way.  I'm a bit confused.

Thanks
N704FN
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.thechouinards.com%2Fcfetch%2Fcfig_random.php&hash=562ee9e4ceefcfa4cca83d45f784b926a8235733)

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

Hi,

quick question about cfimageget.php.  Both my Coppermine folder and Coppermine fetch folders are off the root...  root/cpg132 and root/cfetch.  I'm not quite sure about this:

Code: [Select]
include "coppermine_dao.php";
include "../cpg132/include/config.inc.php";

// This is the path (NOT URL) from where your cfimageget.php file is to your coppermine directory
$pathtocpm = "../cfetch";

// This is the partial url (part AFTER your domain name, to get to the coppermine directory
$urltocpm = "/cpg132";

Should the path to cpm be the same as url to cpm, or do I have it correct?  I've had it both ways and from here it seems to work either way.  I'm a bit confused.

Thanks
N704FN

The way you have is stramge.  The PATH is from where ever cfimageget.php is installed to your coppermine folder, not to the coppermine fetch folder

In your case it should be "../cpg132"

The URL is the partial url to where coppermine photo gallery is installed.  "/cpg132"

I am 50% done with a complete re-write of that code.  Maybe tonight it will be done and be posted in a new dev release.

Fun fun fun

Bill



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
Pages: 1 ... 6 7 8 9 [10] 11 12 13 14 ... 34   Go Up
 

Page created in 0.046 seconds with 19 queries.