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]   Go Down

Author Topic: cpmfetch on phpfusion  (Read 3785 times)

0 Members and 1 Guest are viewing this topic.

Sionape

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
cpmfetch on phpfusion
« on: August 14, 2007, 01:47:16 am »

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

Code: [Select]
<?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

« Last Edit: August 14, 2007, 08:40:27 am by GauGau »
Logged

Nibbler

  • Guest
Re: cpmfetch on phpfusion
« Reply #1 on: August 14, 2007, 02:13:39 am »

That's not the correct path. Should be

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


I think.
Logged

Sionape

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: cpmfetch on phpfusion
« Reply #2 on: August 14, 2007, 02:59:53 am »

WOW your the best lmao
Thanks so much man
geese
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 15 queries.