Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 ... 41 42 43 44 [45] 46 47 48 49 ... 54   Go Down

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

0 Members and 6 Guests are viewing this topic.

Nibbler

  • Guest
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #880 on: July 18, 2006, 02:52:21 pm »

Use a path not an url.
Logged

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #881 on: July 18, 2006, 03:53:55 pm »

I did try
Code: [Select]
$objCpm = new cpm('/cpg148'); as well but that still gives same error
Logged
Comptia A+ / Network + certified

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #882 on: July 19, 2006, 01:30:30 pm »

cftest is giving the following errors

Code: [Select]
Notice: Undefined index: SCRIPT_FILENAME in e:\domains\s\simaviatorsuk.co.uk.streamlinenettrial.co.uk\user\htdocs\cpmfetch\cftest.php on line 214
5 You set your partial URL to /cpg148 PASS
10 No dots in partial url PASS
15 coppermine.php not present PASS
20 coppermine_dao.php not present PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = Windows NT IIS686 5.2 build 3790 INFO
40 WebServer = Microsoft-IIS/6.0 INFO
45 PHP Version = 4.3.2 INFO
55 DOCUMENT_ROOT: e:\\domains\\s\\simaviatorsuk.co.uk.streamlinenettrial.co.uk\\user\\htdocs INFO
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 not a good match BAD
80 Found CPG config file PASS

but I'm getting thumbnails
Logged
Comptia A+ / Network + certified

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #883 on: July 20, 2006, 02:28:52 pm »

Sorry just wandering if any update on this. This is the last part I'm trying to get finished on a website before I go live.

latest is that on a test page I've made, I get

Code: [Select]
Fatal error: Cannot instantiate non-existent class: cpm in e:\domains\s\simaviatorsuk.co.uk.streamlinenettrial.co.uk\user\htdocs\pictest.php on line 11

which is the line pointing it to the gallery.

Full code is

Code: [Select]
<?php
include "http://www.simaviatorsuk.co.uk.streamlinenettrial.co.uk/cpmfetch/cpmfetch.php";
$objCpm = new cpm('http://www.simaviatorsuk.co.uk.streamlinenettrial.co.uk/cpg148');
$objCpm->cpm_viewRandomMedia (10,1);
$objCpm->cpm_close(); ?>

I've tried the paths with full URLS and without.

The php file is stored in http://www.simaviatorsuk.co.uk.streamlinenettrial.co.uk/pictest.php

Gallery is stored in http://www.simaviatorsuk.co.uk.streamlinenettrial.co.uk/cpg148

and cpmfetch is installed in http://www.simaviatorsuk.co.uk.streamlinenettrial.co.uk/cpmfetch

Really hope someone can help before I try a different gallery
Logged
Comptia A+ / Network + certified

Nibbler

  • Guest
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #884 on: July 20, 2006, 02:52:07 pm »

Use a path not an URL.

Code: [Select]
include "cpmfetch/cpmfetch.php";
$objCpm = new cpm('/cpg148');
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 #885 on: July 20, 2006, 04:06:13 pm »

cftest is giving the following errors

Code: [Select]
Notice: Undefined index: SCRIPT_FILENAME in e:\domains\s\simaviatorsuk.co.uk.streamlinenettrial.co.uk\user\htdocs\cpmfetch\cftest.php on line 214
35 Server OS = Windows NT IIS686 5.2 build 3790 INFO
40 WebServer = Microsoft-IIS/6.0 INFO
45 PHP Version = 4.3.2 INFO
55 DOCUMENT_ROOT: e:\\domains\\s\\simaviatorsuk.co.uk.streamlinenettrial.co.uk\\user\\htdocs INFO
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 not a good match BAD

but I'm getting thumbnails

I don't really support windows for webservers with this... it does work, but they seem to be fast and loose with the environmental variables they set.  If your getting thumbnails though it is fine.

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

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #886 on: July 20, 2006, 04:26:58 pm »

ok swapped over to linux database, assuming this is preferred to windows server.

got rid of that error now, just have another one which also shows up on the cftest.php.  Cftest.php is showing all ok for everything and nothing bad just the following error

Code: [Select]
Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/fhlinux205/s/simaviatorsuk.co.uk.streamlinenettrial.co.uk/user/htdocs/cpmfetch/cpmfetch_dao.php on line 710
Logged
Comptia A+ / Network + certified

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 #887 on: July 20, 2006, 04:50:13 pm »

ok swapped over to linux database, assuming this is preferred to windows server.

got rid of that error now, just have another one which also shows up on the cftest.php.  Cftest.php is showing all ok for everything and nothing bad just the following error

Code: [Select]
Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/fhlinux205/s/simaviatorsuk.co.uk.streamlinenettrial.co.uk/user/htdocs/cpmfetch/cpmfetch_dao.php on line 710

Linux servers and nicer anyway. 

Read the readme that came with it... it explains what to do to get rid of that error.

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

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #888 on: July 20, 2006, 04:57:47 pm »

yep just found out I need to uncomment and comment stuff, working at last.  now I can play and get just images from certain albums
Logged
Comptia A+ / Network + certified

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #889 on: July 20, 2006, 05:20:51 pm »

Spoke too soon.  Managed to get one column showing random images but I can't get a second column to work showing last added.

I think it's got something to do with it already opening the connection.

Can someone quickly please paste the script I need. So far I have

Column 1
Code: [Select]
include "cpmfetch/cpmfetch.php";
$objCpm = new cpm('/cpg148');
$objCpm->cpm_viewRandomMedia (10,1);
$objCpm->cpm_close();

column 2
Code: [Select]
$objCpm = new cpm('/cpg148');
$objCpm->cpm_viewLastAddedMedia (10,1);
$objCpm->cpm_close();
Logged
Comptia A+ / Network + certified

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 #890 on: July 20, 2006, 07:50:46 pm »

Code: [Select]
[quote author=stuarta link=topic=19564.msg159269#msg159269 date=1153408851]
Spoke too soon.  Managed to get one column showing random images but I can't get a second column to work showing last added.

I think it's got something to do with it already opening the connection.

Can someone quickly please paste the script I need. So far I have

Column 1 [code]include "cpmfetch/cpmfetch.php";
$objCpm = new cpm('/cpg148');
$objCpm->cpm_viewRandomMedia (10,1);
$objCpm->cpm_close();

column 2
Code: [Select]
$objCpm = new cpm('/cpg148');
$objCpm->cpm_viewLastAddedMedia (10,1);
$objCpm->cpm_close();
[/quote]

You just need one new and one close...

At the start of your page (or at least before column 1)
$objCpm = new cpm('/cpg148');


1st column
$objCpm->cpm_viewRandomMedia (10,1);

2nd column
$objCpm->cpm_viewLastAddedMedia (10,1);


End of page (or at least after the 2nd column)
$objCpm->cpm_close();

[/code]

If you still get errors, please post what the error / problem is...

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

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #891 on: July 20, 2006, 08:15:00 pm »

yep works thanks
Logged
Comptia A+ / Network + certified

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 #892 on: July 20, 2006, 08:44:08 pm »

yep works thanks

Good.  Remember you can issue as many calls as you want between the "new" and the "close".  In fact, its most efficent this way.

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

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #893 on: July 20, 2006, 08:52:51 pm »

goin to try calling from particular album now
Logged
Comptia A+ / Network + certified

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #894 on: July 20, 2006, 11:43:30 pm »

Just uploaded some new pics to my gallery and they aren't showing up under the last added images using $objCpm->cpm_viewLastAddedMedia (10,1);

Logged
Comptia A+ / Network + certified

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 #895 on: July 21, 2006, 03:36:35 am »

Just uploaded some new pics to my gallery and they aren't showing up under the last added images using $objCpm->cpm_viewLastAddedMedia (10,1);

They should.  Did you upload them to a private album or something?  Whats the link?
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

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #896 on: July 21, 2006, 08:24:05 am »

nope album same as the other one.

home page is  http://www.simaviatorsuk.co.uk.streamlinenettrial.co.uk/home.php

once on the gallery, the screenshots I added last night are showing as Last Added
Logged
Comptia A+ / Network + certified

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #897 on: July 21, 2006, 04:55:10 pm »

Sorry only me again.

Ok, got random media but for some reason last added still isn't working  ???

Just managed to pull out the author name but having problems styling the font.

I have a tag in my stylesheet called .copyright which I want to use.  I've applied the following code but it's not formatting.

Code: [Select]
$options = array('subtitle'=>'%t by %o',"cellstyle"=>".copyright");
$objCpm->cpm_viewRandomMedia (5,1,$options);
Logged
Comptia A+ / Network + certified

kronik

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #898 on: July 21, 2006, 09:45:44 pm »

Hi

Is it possible to show last/random images in Flash using cpmfetch?
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 #899 on: July 21, 2006, 09:56:36 pm »

Hi

Is it possible to show last/random images in Flash using cpmfetch?

If you can remotely retrieve an image (as in http://www.yourdomainname.com/imagename.jpg) from flash you can.  I don't know flash that well, but I suspect its possible
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 ... 41 42 43 44 [45] 46 47 48 49 ... 54   Go Up
 

Page created in 0.036 seconds with 20 queries.