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

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

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 1 Guest are viewing this topic.

vuud

Quote from: bjorn666 on June 02, 2005, 11:58:30 AM
Hi all, im new her end ave read all the post but not get my answer:(
I wanna have tha latest up load images in a plain html.... is it poseble?

Thanks

Probably, what do you mean by plain html?

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

Joachim Müller

I guess he wants to pull coppermine contents on a plain html page (one that is not php-powered). If I'm correct with my guess then the answer is: not possible, unless you use some foul tricks with an iframe that points to a php-enabled page. HTML pages are static, there's no way to add dynamic content to it (well, there is limited dynamics when using JavaScript, but you can't pull stuff that require server-sided calculations).

vuud

Quote from: GauGau on June 03, 2005, 07:27:33 AM
I guess he wants to pull coppermine contents on a plain html page (one that is not php-powered). If I'm correct with my guess then the answer is: not possible, unless you use some foul tricks with an iframe that points to a php-enabled page. HTML pages are static, there's no way to add dynamic content to it (well, there is limited dynamics when using JavaScript, but you can't pull stuff that require server-sided calculations).

Ah, let me try something... I have an idea that is just crazy enough that it may just work...

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

bjorn666

Thanks, am happy for all help ;)   And yes its a html that is not php-powered.

pszone

I need help. My site is game portal. I want my website's main page to load the latest 6 titles of the last updated or created albums, from one cathegory only (e.g. catherory 2). At present I'm doing this manually all by my own, but it takes awfully long time ( http://pszone.headoff.com - Sections "Screenshots" and "Videos"). I also wandered if it is possible before every new name of an album to apeear tha date of the update. For example:

02/05/05 Max Payne 2
06/05/05 Metal Gear Solid 3

vuud

Quote from: bjorn666 on June 03, 2005, 11:59:34 AM
Thanks, am happy for all help ;)   And yes its a html that is not php-powered.

WOW, SSI for CpmFetch was EASY!


;D  I just started a new thread and posted how you can accomplish what you want.

http://forum.coppermine-gallery.net/index.php?topic=18547.0

Someday there will be a better solution, but for now - this is pretty darned good - and is probably more versitile than the ssi add on I will be writing.

If you have problem please post them in the other thread

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

vuud

Quote from: pszone on June 03, 2005, 12:48:17 PM
I need help. My site is game portal. I want my website's main page to load the latest 6 titles of the last updated or created albums, from one cathegory only (e.g. catherory 2). At present I'm doing this manually all by my own, but it takes awfully long time ( http://pszone.headoff.com - Sections "Screenshots" and "Videos"). I also wandered if it is possible before every new name of an album to apeear tha date of the update. For example:

02/05/05 Max Payne 2
06/05/05 Metal Gear Solid 3

You just want a text list of albums and dates?  There is nothing in there to do exactly that, but you can do it pretty easily using the cpmfetch program.  Let me know if that is exactly what you want and I will spend the time coding an example.

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

pszone

Yes, I want just last 6 text list of albums and dates only from one categorie, thats all, but I don't know how to do that. Is there possible to put some code, becouse I am not gut with PHP. Sorry for bad english.

vuud

Quote from: pszone on June 03, 2005, 07:28:38 PM
Yes, I want just last 6 text list of albums and dates only from one categorie, thats all, but I don't know how to do that. Is there possible to put some code, becouse I am not gut with PHP. Sorry for bad english.

Looking at the code now, there is really no easy way to accomplish this without a lot of PHP code, which I don't have time to write up for you right now  (paid work and lunch calls to me).  I will think it over a little later and if I come up with something I will post it...  Its not impossible, I am just trying to think of a way to do it without changing my program and pushing a new release.

I have one that does last updated since a date, and displays thumbnails next to it...

See third example down...
http://www.fistfullofcode.com/cftest/index4.php


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

pszone


Elisabeth

Quote from: vuud on May 16, 2005, 06:34:48 AM
Try this:

<?php   
include "/cpmfetch/coppermine.php";
$objCpm = new cpm('/gallery');
$objCpm->cpm_viewRandomMedia (1,1);
$objCpm->cpm_viewLastAddedMedia (1,1);
$objCpm->cpm_close();
?>

That will show 1 random and also the last added.

If not, let me know what it does...




Quote from: Elisabeth on May 16, 2005, 06:00:12 AM
Hmmm...yes, I think I will subscribe. ;)

Actually, I am having a problem.  This isn't correct, is it?

<?php   
include "http://twilight-whispers.com/cpmfetch/coppermine.php";
$objCpm = new cpm('http://twilight-whispers.com/gallery');

$objCpm->cpm_viewRandomMedia (1,1);
$objCpm->cpm_viewLastAddedMedia (1,1);

$objCpm->cpm_close();

?>

I'm a real newbie at PHP (I know HTML though ;)), so excuse any glaring errors.

Thank you for that code.  I had to add in the direct address to CPMFetch, but then it worked.  However, I have to wonderfully fashionable blue link squares around my images...how would I go about eliminating them?  I already set it not to in my CSS, but it does it anyway.  Any suggestions?  Thanks!

vuud

Quote from: Elisabeth on June 05, 2005, 04:03:31 AM
Thank you for that code.  I had to add in the direct address to CPMFetch, but then it worked.  However, I have to wonderfully fashionable blue link squares around my images...how would I go about eliminating them?  I already set it not to in my CSS, but it does it anyway.  Any suggestions?  Thanks!

Yeah, they are fashionable are they not...

Are you sure the CSS is correct?  Can you post it here, along with any style options you are passing to cpmfetch?

Glad to see its generally working

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


I tried moving the post, but somehow just removed it.  I have the contents and will post it to there...

Sorry
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

Elisabeth

I guess I didn't have it right anyway!  It wasn't correct in the CSS. :P

Elisabeth

Ahhh, but now I've discovered another problem.  Is there some way to target the link?  Since there's no <a href> section to put "target="target"" into, I'm completely lost. ::)

vuud

Quote from: Elisabeth on June 07, 2005, 06:23:32 AM
Ahhh, but now I've discovered another problem.  Is there some way to target the link?  Since there's no <a href> section to put "target="target"" into, I'm completely lost. ::)

Its in the documentation:

http://www.fistfullofcode.com/projects/copperminefetch/docs/readme.html#optionsarray

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

Hello,

I have to say that I'm stumped at the first hurdle, and I don't usually get stuck with installing php scripts - running cftest.php brings up an error and no thumbnails:
Quote
ERROR: Path to Coppermine incorrect. (/usr/local/www/data//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 /files/home1/stez/gallery/coppermine.php on line 648

I've tried variations of the directory path to attempt to make it find it, and I noticed that the test script displays a path to something like

usr/local/www/data/gallery/    rather than     files/home1/stez/gallery/ 

and I can't see where I can change this as I'm don't understand php language.   Coppermine is the latest 1.3.3 stable.  I've extracted the files into the /gallery dir as well as a directory of it's own at same dir level as gallery.

It doesn't run on a windows server (as you can see, but on FreeBSD, dunno what version, and runs at least php version 4.2 (I know it's the latest version, but not php v5) with mysql admin for the db. 

I appreciate the help, and looks like a fantastic idea from what I've seen from other sites :-)

Cheers,
Kyle

vuud


Hey Stez,

Did you change the variable at the top to  "/gallery"

If so, please PM me a link to your site so I can see the cftest.php (and hopefully the phpinfo output)

Thanks

Vuud

PS. Yah FreeBSD... I'm an OBSD person myself, but not one of the angry ones :)



Quote from: stez on June 08, 2005, 03:04:36 AM
Hello,

I have to say that I'm stumped at the first hurdle, and I don't usually get stuck with installing php scripts - running cftest.php brings up an error and no thumbnails:
Quote
ERROR: Path to Coppermine incorrect. (/usr/local/www/data//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 /files/home1/stez/gallery/coppermine.php on line 648

I've tried variations of the directory path to attempt to make it find it, and I noticed that the test script displays a path to something like

usr/local/www/data/gallery/    rather than     files/home1/stez/gallery/ 

and I can't see where I can change this as I'm don't understand php language.   Coppermine is the latest 1.3.3 stable.  I've extracted the files into the /gallery dir as well as a directory of it's own at same dir level as gallery.

It doesn't run on a windows server (as you can see, but on FreeBSD, dunno what version, and runs at least php version 4.2 (I know it's the latest version, but not php v5) with mysql admin for the db. 

I appreciate the help, and looks like a fantastic idea from what I've seen from other sites :-)

Cheers,
Kyle
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

ledotn

It looks like I'm getting the same type of error that Stez was getting.

"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/liquidem/www/www/gallery/coppermine.php on line 687"

It should be correct.  The coppermine.php file is in that location.  I'm using Coppermine 1.3.3 and CoppermineFetch 1.3.5-dev.  I also tried it with version 1.2.2 and got the same error.

Thanks!!  I'm really excited about using this once I get it working, lol.
-Stephanie

vuud

Quote from: ledotn on June 10, 2005, 06:17:56 AM
It looks like I'm getting the same type of error that Stez was getting.

"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/liquidem/www/www/gallery/coppermine.php on line 687"

It should be correct.  The coppermine.php file is in that location.  I'm using Coppermine 1.3.3 and CoppermineFetch 1.3.5-dev.  I also tried it with version 1.2.2 and got the same error.

Thanks!!  I'm really excited about using this once I get it working, lol.
-Stephanie

Hey Stephanie...  first off - sorry I bounced your subscription to the forum request... I am not doing any coppermine stuff there.  if you want on for other reasons, re-apply...  I did intend to at one point, but they are fixing the forums here and I have the mailing list - so...

Regrettably, the problem stetz has is simialr to every problem... once you get past this, everything just works fine!

Is there supposed to be 2 "www" directories in your path? 



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