cfimageget don't work ... i don't know how setting it cfimageget don't work ... i don't know how setting it
 

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]

Main Menu

cfimageget don't work ... i don't know how setting it

Started by mc0676, November 16, 2007, 10:34:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mc0676

I've read about 20 thread but ... i don't understand how i must setting this file.

I want esecute in my ie explore this url:
http://www.vwgolfcommunity.com/cpg/cpmfetch/cfimageget.php?cat=0

to display one photo from my album (categoria 0).

I've installed cpg here:
- http://www.vwgolfcommunity.com/cpg

I've installed cpmfetch here:
- http://www.vwgolfcommunity.com/cpg/cpmfetch

Now the file cfimageget is setting in this way:


// This one you need to adjust unless your galler is at http://www.youname.com/photos
// If you installed right to the root of your web site, just use a /
// TODO This should be path to config file
$urltocpm = "/cpg/cpmfetch/";
$pathToConfigFile = "/";

and

$ALLOW_DIRECT_ACCESS = false;

and i receive this error:

Warning: fopen(albums/userpics/12348/thumb_DSC01396.JPG) [function.fopen]: failed to open stream: No such file or directory in /cpg/cpmfetch/cfimageget.php on line 263

From the install cpmfetch i receive this.

Somebody can tell me the right setting ???

Thanks.

---

CpmFetch Install Script version 2.0.0
do=
path=
force=
Running default command: install
* * BEGIN SERVER SETTINGS * *
SERVER REDIRECT_UNIQUE_ID: jbKsElFYMQIAAGbYJz0AAAAQ
SERVER REDIRECT_SCRIPT_URL: /cpg/cpmfetch/install.php
SERVER REDIRECT_SCRIPT_URI: http://www.vwgolfcommunity.com/cpg/cpmfetch/install.
php
SERVER REDIRECT_HOMETLD: /www/HOME
SERVER REDIRECT_URLEXCHANGE: https://www.exchangehosting.it/exchange/
SERVER REDIRECT_PATHR: /cpg/cpmfetch/install.php
SERVER REDIRECT_NOSIMPLE: 0
SERVER REDIRECT_SPECIAL: 0
SERVER REDIRECT_NEXT: 1
SERVER REDIRECT_TLDA: com
SERVER REDIRECT_DOMA: vwgolfcommunity
SERVER REDIRECT_DOMP: /
SERVER REDIRECT_PATHS: /www/HOME/com
SERVER REDIRECT_DOM: vwgolfcommunity
SERVER REDIRECT_RPATH: /www/HOME/com/v/w/g/vwgolfcommunity/www//
SERVER REDIRECT_FPATH: /www/HOME/com/v/w/g/vwgolfcommunity/www//cpg/cpmfetch/ins
tall.php
SERVER REDIRECT_BRAND: register.it
SERVER REDIRECT_HANDLER: php-cgiwrap
SERVER REDIRECT_STATUS: 200
SERVER UNIQUE_ID: jbKsElFYMQIAAGbYJz0AAAAQ
SERVER SCRIPT_URL: /cpg/cpmfetch/install.php
SERVER SCRIPT_URI: http://www.vwgolfcommunity.com/cpg/cpmfetch/install.php
SERVER HOMETLD: /www/HOME
SERVER URLEXCHANGE: https://www.exchangehosting.it/exchange/
SERVER PATHR: /wrap/php-cgiwrap/nobody/cpg/cpmfetch/install.php
SERVER NOSIMPLE: 0
SERVER SPECIAL: 0
SERVER NEXT: 1
SERVER TLDA: com
SERVER DOMA: vwgolfcommunity
SERVER DOMP: /
SERVER PATHS: /www/HOME/com
SERVER DOM: vwgolfcommunity
SERVER RPATH: /www/HOME/com/v/w/g/vwgolfcommunity/www//
SERVER FWRAP: 1
SERVER FPATH: /www/HOME/com/v/w/g/vwgolfcommunity/wrap/php-cgiwrap/nobody//cpg/c
pmfetch/install.php
SERVER BRAND: register.it
SERVER HTTP_ACCEPT: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, applica
tion/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, applicatio
n/x-shockwave-flash, */*
SERVER HTTP_ACCEPT_LANGUAGE: it
SERVER HTTP_UA_CPU: x86
SERVER HTTP_ACCEPT_ENCODING: gzip, deflate
SERVER HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)
SERVER HTTP_HOST: www.vwgolfcommunity.com
SERVER HTTP_CONNECTION: Keep-Alive
SERVER HTTP_COOKIE: bblastvisit=1195242098; bblastactivity=0; bbsessionhash=f702
188cd76b5dac7ec9b744820d8926; bbforum_view=49c6f38841f8554d7885cd8928cb665ca-3-%
7Bi-76_i-1195242699_i-75_i-1195242719_i-30_i-1195244260_%7D; bbthread_lastview=b
0e1f036a5e2ce719f04c47e905f1d67a-6-%7Bi-6097_i-1195242354_i-6080_i-1195242541_i-
3128_i-1195242593_i-6098_i-1195242823_i-6093_i-1195244380_i-6038_i-1195246198_%7
D; bbuserid=2; bbpassword=32bb5d9014f65e0625203c11e5183d20; coppermine_data=YTo0
OntzOjI6IklEIjtzOjMyOiI2MGJhMzY1NjVmYzNiZTZlOGNhYmIwYTQxYWYxZTdmMyI7czoyOiJhbSI7
aToxO3M6NDoibGFuZyI7czo3OiJpdGFsaWFuIjtzOjM6ImxpdiI7YToyOntpOjA7czoyOiIzNSI7aTox
O3M6MjoiMjMiO319
SERVER PATH: /usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
SERVER SERVER_SIGNATURE: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.
8b DAV/2 PHP/5.1.2 Server at www.vwgolfcommunity.com Port 80

SERVER SERVER_SOFTWARE: Apache/2.2.3 (Unix) mod_ssl/2.2.3 OpenSSL/0.9.8b DAV/2 P
HP/5.1.2
SERVER SERVER_NAME: www.vwgolfcommunity.com
SERVER SERVER_ADDR: 172.29.152.32
SERVER SERVER_PORT: 80
SERVER REMOTE_ADDR: 213.45.142.213
SERVER DOCUMENT_ROOT: /
SERVER SERVER_ADMIN: webmaster@register.it
SERVER SCRIPT_FILENAME: /cpg/cpmfetch/install.php
SERVER REMOTE_PORT: 4783
SERVER REDIRECT_URL: /cpg/cpmfetch/install.php
SERVER GATEWAY_INTERFACE: CGI/1.1
SERVER SERVER_PROTOCOL: HTTP/1.1
SERVER REQUEST_METHOD: GET
SERVER QUERY_STRING:
SERVER REQUEST_URI: /cpg/cpmfetch/install.php
SERVER SCRIPT_NAME: /cpg/cpmfetch/install.php
SERVER PATH_INFO:
SERVER ORIG_PATH_INFO:
SERVER ORIG_SCRIPT_NAME: /cpg/cpmfetch/install.php
SERVER ORIG_SCRIPT_FILENAME: /cpg/cpmfetch/install.php
SERVER PATH_TRANSLATED:
SERVER PHP_SELF: /cpg/cpmfetch/install.php
SERVER argv: Array
SERVER argc: 0
* * END SERVER SETTINGS * *
Found config file at ../include/config.inc.php
Found init file at ../include/init.inc.php
Checking for existing cpmfetch config file
Found cpmfetch_config.php file - now reading
Config file is version 2.0.0 read in
Last flagged version is 1.9.9
Config written version same or newer than last flagged version - reinstall optio
nal
Producing output screen and exiting




lobosden

when you go to your cpmfetch/screen does it display the pics?

we can not see because your cpmfetch folder for some reason is forbidden access

mc0676

Display 4 photos but last line contain this error:

Fatal error:  Call to undefined function printArray() in /cpg/cpmfetch/screen.php on line 313


lobosden

ok
ignore the error right now

where are you making the php page to fetch the pics?

mc0676

In the vbulletin root.

I need that user can post in some post the html tag <img src> to display the thumbnail.

The vb is in:
www.vwgolfcommunity.com/vbulletin

lobosden

ok that's your problem... you are trying to make the php file in yoursite/bulliten

you need to make it yoursite/picfetch.php

then you can use it there


lobosden

http://www.vwgolfcommunity.com/cpg/cpmfetch/

is where your fetch is

now use the display codes, adjust it to point at where your pics are at like it says on screen.php

then make this save it as test here

http://www.vwgolfcommunity.com/test.php

got it

then see if it works

Your photos most likely are in albums directory

lobosden


mc0676

I've already try this way eheeh.

I've this file:

http://www.vwgolfcommunity.com/prova.html

that is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

<img src="http://www.vwgolfcommunity.com/cpg/cpmfetch/cfimageget.php?cat=0">

</body>
</html>


But it don't run  >:(

lobosden


lobosden


lobosden

try this code

<?php
  include "./cpg/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./cpg/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewRandomMedia(1,4,array("windowtarget" => "_parent"));
  $objCpm->cpm_close();
?>

lobosden

I think it is because this folder is private...

can you make this a public folder?

lobosden

ok I see your screen this file
http://www.vwgolfcommunity.com/cpg/cpmfetch/screen.php

it works... everything seems to be running.

Sometimes it takes a bit for the fetch to collect up the uploads.

I would use the above php code I just gave you. you can change the number of pics to display from 1,4 to just 1 or 1,10 for that fact, however many you want to display.

I think you will be better that way.

then you can change the random to recent upload or whatever

I would check out this docs manual out... I think most of your answers needed are here.

http://cpmfetch.fistfullofcode.com/docs/stable_basic/index.html

mc0676

Quote from: lobosden on November 16, 2007, 11:45:23 PM
try this code

<?php
  include "./cpg/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./cpg/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewRandomMedia(1,4,array("windowtarget" => "_parent"));
  $objCpm->cpm_close();
?>

This work !

But the line:
<img src="http://www.vwgolfcommunity.com/cpg/cpmfetch/cfimageget.php?cat=0">

dont't work.

Do you know if i can make a personal bbcode in vbulletin to recall an image ?

embed in the same file (in the root).


lobosden

well if that's all you need there are a few plugins that you can use for that TagBlitz actually will put a link above your pic in the gallery, when you click on it it will give you the codes to place it in bbc or html for promoting the pic.

also there is a plugin that will place the url under the pic so then you just need to do then you can just do the bbc manually.

lobosden

go here
download the plugin packet

http://sourceforge.net/project/downloading.php?group_id=89658&use_mirror=superb-east&filename=cpg1.4.x_plugin_pack_v3.zip&38416833


There are some good plugins in it

MAKE SURE YOU READ THE READ ME FILES FIRST

And DO NOT INSTALL A PLUGIN IF YOU DON'T NEED IT


I would install the Tagblitz, it is more of what you are looking for I believe. If you have a user, and the want to post a pic from the gallery in your forum.
It gives them the code.

Joachim Müller

The plugin packet goes unsupported and definitely is not related to cpmFetch, nor is TagBlitz related to cpmFetch. This board is dedicated to cpmFetch only, so please don't clutter it with references to unrelated stuff.