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 2 3 4 5 [6] 7 8 9 10 ... 54   Go Down

Author Topic: CpmFetch 1.4 On... Displaying data and images from CPG on your website  (Read 965927 times)

0 Members and 2 Guests are viewing this topic.

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #100 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/

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #101 on: July 29, 2005, 01:17:23 am »

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
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
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #102 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 :)

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #103 on: July 29, 2005, 02:23:43 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


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
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #104 on: July 29, 2005, 03:08:20 am »

Done (bis)

:)

Rodinou

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • Tournicoti, Tournicota
    • http://www.sortons.net
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #105 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 ...

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #106 on: July 29, 2005, 06:03:11 am »


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


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 ...
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
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #107 on: July 29, 2005, 01:09:58 pm »

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #108 on: July 29, 2005, 04:41:29 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
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

Hamsterpants

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
    • My Staffie.com
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #109 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
Logged
Dillon Weyer
dill@mystaffie.com

Hamsterpants

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 34
    • My Staffie.com
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #110 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
Logged
Dillon Weyer
dill@mystaffie.com

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #111 on: July 29, 2005, 06:52:26 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.

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 1.4 On... Displaying data and images from CPG on your website
« Reply #112 on: July 29, 2005, 06:53:27 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
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 1.4 On... Displaying data and images from CPG on your website
« Reply #113 on: July 30, 2005, 06:08:35 am »

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





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 1.4 On... Displaying data and images from CPG on your website
« Reply #114 on: July 30, 2005, 06:58:52 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #115 on: July 30, 2005, 07:19:16 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:
Code: [Select]
<?php
include('http://mysite.tld/testpage.php');
?>
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #116 on: July 30, 2005, 07:54:52 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:
Code: [Select]
<?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
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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

reyn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #118 on: July 30, 2005, 05:31:16 pm »

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

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #119 on: July 31, 2005, 09:23:59 am »

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 ;)?
Logged
Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 54   Go Up
 

Page created in 0.029 seconds with 20 queries.