CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 6 CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 6
 

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 1.4 On... Displaying data and images from CPG on your website

Started by vuud, July 08, 2005, 06:43:10 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Rodinou

As there is no index.htm / php on the cpmfetch dir, you can download the files to see where is it's "wrong" ...
http://www.sortons.net/cpmfetch/

vuud

Quote from: Rodinou on July 28, 2005, 11:55:47 PM
As there is no index.htm / php on the cpmfetch dir, you can download the files to see where is it's "wrong" ...
http://www.sortons.net/cpmfetch/

That does not work.  PHP is recognized by the server, and executed when called.  If I was able to just download a php file, then that would mean your server was incredibly misconfigured.

Make a copy of your cpmfetch.php to a file named cpmfetch.php.html so I can look at that please.

Thanks
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

Done :)

Server seems to be OK ... but if you have ideas to configure it better, I take :)

vuud

Quote from: Rodinou on July 29, 2005, 01:20:52 AM
Done :)

Server seems to be OK ... but if you have ideas to configure it better, I take :)

Hey,

You did the wrong file...  cfig_random.php  NOT cpmfetch.php...

But the server executed the PHP in it anyway so ...

copy cpmfetch.php to cpmfetch.php.txt

It should not execute that anyway


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


Rodinou

Like the Song of Danny Elfman for the last film of Tim Burton, about Augustus Gloop

"A miracle has taken place, a miracle has taken place"

I have renamed in .txt ... reupload the 2 files (php and txt) ... and ... !!!!!!!!!! It works !

I have not the logic in php/mysql ... and with this, I understand less :)

Now learn how to USE it ...

vuud


Your crazy... ;)  Adding the text file does nothing. 

What happened was that you did not upload the changed file with the thumb_ versus tn_ before.  I looked at the cftest.php when I posted last and it was going after your files with thumb_ not tn_ ... I wanted to see the cpmfetch.php file to make sure that was the case.

In any case, I am glad it is working for you


Quote from: Rodinou on July 29, 2005, 03:13:54 AM
Like the Song of Danny Elfman for the last film of Tim Burton, about Augustus Gloop

"A miracle has taken place, a miracle has taken place"

I have renamed in .txt ... reupload the 2 files (php and txt) ... and ... !!!!!!!!!! It works !

I have not the logic in php/mysql ... and with this, I understand less :)

Now learn how to USE 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

Rodinou

I forgot to upload, indeed > Very dumb ... and yes, very crazy too ... :( don't bite me ! :)

vuud

Quote from: Rodinou on July 29, 2005, 01:09:58 PM
I forgot to upload, indeed > Very dumb ... and yes, very crazy too ... :( don't bite me ! :)

No problem - I've made mistakes before that are waaaaay beyond that.  Glad its working for you now

Have a nice day
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

Hamsterpants

Hi all,

Not sure if this is a coppermine question of CMPFetch question. I want to display the top rated pictures down the side of my page in the coppermine gallary, which I have been able to do. The problem or question is how do I prevent these images showing unless the user is logged in. I currently require users to be logged in before they can view any images.

Thanks in advance
Dill
Dillon Weyer
dill@mystaffie.com

Hamsterpants

another question, can you use fmpfetch to get images from a coppermin installation on another domain? Sorry if this has allready been answered, I did search, I promise, please point me to the post

Thanks
Dill
Dillon Weyer
dill@mystaffie.com

vuud

Quote from: Hamsterpants on July 29, 2005, 06:19:07 PM
another question, can you use fmpfetch to get images from a coppermin installation on another domain? Sorry if this has allready been answered, I did search, I promise, please point me to the post

Thanks
Dill

Yes and no... You can use cfimageget.php to access images on another server, or if you are big with javascript, you could probably use cfrssget.php to get a bunch of images and parse the rss and display them like that.

You cannot use cfimageget directly onto another domain since it needs to have access to see what files are available on the drive.  Since CPG will not make a file named normal_ if the picture you uploaded is already the right size.

Ah well... let me know how things work out... I'd be interested if the rss thing worked for you.

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: Hamsterpants on July 29, 2005, 05:59:05 PM
Hi all,

Not sure if this is a coppermine question of CMPFetch question. I want to display the top rated pictures down the side of my page in the coppermine gallary, which I have been able to do. The problem or question is how do I prevent these images showing unless the user is logged in. I currently require users to be logged in before they can view any images.

Thanks in advance
Dill

I'd assume you'd have to code it into your template to only do it if they are logged in... not sure how though
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: Hamsterpants on July 29, 2005, 06:19:07 PM
another question, can you use fmpfetch to get images from a coppermin installation on another domain? Sorry if this has allready been answered, I did search, I promise, please point me to the post

Thanks
Dill

Pants of Hamster...

I've been drinking beer and mulling over my comment about using RSS feeds to show content on a different site.  I now, thanks to the magic of hops and the divine fermentation, have a new idea.

1) Create a php page on your site using the traditional cpmfetch methodologies.   Have it display whatever you want for the other site

2) Make it so that it prefixes it with    document.write("

3) Make it postfix it with    ")

4) On the other site, enter in something like

<script language="JavaScript"
        src="http://www.yourdomainname.com/phpfile.php">
</script>

In theory it should generate the html and then send it to your other web site.  In theory. 

The only problem I can think of is that the full url will not be added in.  You may have to invoke the function about overriding the url to cpg... its in the docs under functions, forget the name of it.

Let me know if this works,  a few beers and I want to know





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

Well, I am going to release a new stable version in a few days.  If anyone feels up to it, please test the latest dev version from

http://cpmfetch.fistfullofcode.com

and PM if it works for you or not.

In other news, I am in need of help for the documentation aspect... if anyone feels like writing up something, example, corrections - ANYTHING for the docs, send them on over.  Full credit given.

The docs are online at the above site... they are as new as the day you look at them (I don't hold anything back).

Thanks much

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

Joachim Müller

Quote from: vuud on July 30, 2005, 06:08:35 AM
2) Make it so that it prefixes it with    document.write("
3) Make it postfix it with    ")
4) On the other site, enter in something like

<script language="JavaScript"
        src="http://www.yourdomainname.com/phpfile.php">
</script>

In theory it should generate the html and then send it to your other web site.  In theory. 
Why use buggy JavaScript instead of actually pulling the content using php's include? The only thing you'll need is: your webhost on the server you're pulling from must allow url_fopen. Just try it, create a test file with this code:<?php
include('http://mysite.tld/testpage.php');
?>

vuud

Quote from: GauGau on July 30, 2005, 07:19:16 AM
Quote from: vuud on July 30, 2005, 06:08:35 AM
2) Make it so that it prefixes it with    document.write("
3) Make it postfix it with    ")
4) On the other site, enter in something like

<script language="JavaScript"
        src="http://www.yourdomainname.com/phpfile.php">
</script>

In theory it should generate the html and then send it to your other web site.  In theory. 
Why use buggy JavaScript instead of actually pulling the content using php's include? The only thing you'll need is: your webhost on the server you're pulling from must allow url_fopen. Just try it, create a test file with this code:<?php
include('http://mysite.tld/testpage.php');
?>


Interesting...  I assume that will execute the php on the remote site then?  I suppose it would be a horrible security risk if it did not :)

Worth trying I'd say
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


reyn

Help required please, Running local IIS 5.1 server, php 4.3.10, Win XP Pro, MySql 4.1, cpmfetch 1.5.3
I have run cftest.php and get two Bads and an error message.

5   You set your partial URL to ../../cpg141   PASS
10   No dots in partial url   PASS
15   coppermine.php found   PASS
20   coppermine_dao.php has been removed   PASS
25   cpmfetch.php found   PASS
30   cpmfetch_dao.php found   PASS
35   Server OS = Windows NT OMEGA 5.1 build 2600   INFO
40   WebServer = Microsoft-IIS/5.1   INFO
45   PHP Version = 4.3.10   INFO
55   DOCUMENT_ROOT: Not found   BAD
60   C_DOCUMENT_ROOT: Not found   INFO
65   doc_root: Not found (IIS Servers only)   INFO
70   SCRIPT_FILENAME: Not found   BAD
75   DOCUMENT_ROOT is a good match   PASS
80   Found CPG config file   PASS

Your installation seems correct so far, you should see a small grid of thumbnails from your gallery
Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in g:\LocalWebSites\kuckoo\cpg141\cpmfetch\cpmfetch_dao.php on line 686

Oh dear! what does all this mean?
With a little help I may yet get there.

Frank


Joachim Müller

IIS is notorious for not populating all required server vars, which appears to be the case for your setup (no DOCUMENT_ROOT and no SCRIPT_FILENAME). Use phpinfo() to find out what server var holds the information that is needed. Have I ranted in this thread already that self-hosting is not recommended, especially on a non-server-OS ;)?