cpmfetch on phpfusion cpmfetch on phpfusion
 

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

cpmfetch on phpfusion

Started by Sionape, August 14, 2007, 01:47:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sionape

OK I have seartches this section of the forum and i still can't seem to find what I'm looking for also check your Documents you put in the lazy section
I am not much of a computer wiz kid

I have mamaged to bridge my Portal with Coppermine
and now I want to put Coppermine previews on my front page
I have installed Coppermine to it's directory name www.site.com/events
and I have installed cpmfetch to www.site.com/events/cpmfetch

I have madfe a custom page using the following code


<?php
  
include './events/cpmfetch/cpmfetch.php';
  
$objCpm = new cpm('./events/cpmfetch/cpmfetch_config.php');
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>



and i get

=============
Warning: Unknown(./events/cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in /home/content/g/u/y/site/html/administration/custom_pages.php(71) : eval()'d code on line 2

Warning: Unknown(./events/cpmfetch/cpmfetch.php): failed to open stream: No such file or directory in /home/content/g/u/y/site/html/administration/custom_pages.php(71) : eval()'d code on line 2

Warning: (null)(): Failed opening './events/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/g/u/y/site/html/administration/custom_pages.php(71) : eval()'d code on line 2

Fatal error: Cannot instantiate non-existent class: cpm in /home/content/g/u/y/site/html/administration/custom_pages.php(71) : eval()'d code on line 3
==============
I'm not sure but I've tried everything I can think of or maby sometimes in anger you over look the most simple things,, I am really really really hoping you can help me out on this one
I will be greatefull :)

P.S I edited the file site name that you figure out by now cause I don't wanna get my self in trouible on the bord posting my website

Thanks in advance


Nibbler

That's not the correct path. Should be


<?php
  
include '../events/cpmfetch/cpmfetch.php';
  
$objCpm = new cpm('../events/cpmfetch/cpmfetch_config.php');
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>



I think.

Sionape

WOW your the best lmao
Thanks so much man
geese