forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: laurenlemay on April 09, 2015, 03:58:42 am

Title: How do you install cpmfetch with the new version of coppermine?
Post by: laurenlemay on April 09, 2015, 03:58:42 am
I think I'm using version 1.5, but I'm not sure.
http://www.laurynlemay.com
Title: Re: How do you install cpmfetch with the new version of coppermine?
Post by: laurenlemay on April 09, 2015, 04:31:52 am
ok,
I got this far:  http://laurynlemay.com/cpmfetch/install.php?do=install&force=true
how do I add them on my website?
where do I find the code?

http://www.laurenlemay.org
Title: Re: How do you install cpmfetch with the new version of coppermine?
Post by: netb on April 09, 2015, 09:09:59 pm
You should have a folder
Quote
/copperminefetch-2.0.0/docs/basic/index.html
in which there is more info on how to place the code into other pages. Here's a modified example from another site showing what could be done. http://sosugary.com/latestphotosblock.htm I myself have been meaning to tinker with the plug-in for some time but still haven't so I this may not be of much help to you.
Title: Re: How do you install cpmfetch with the new version of coppermine?
Post by: gmc on April 11, 2015, 02:28:16 pm
Lauren,
First, you are running CPG V1.4.23.. The current version is 1.5.34.  You really should upgrade before going further.
The current downloads for CPMFETCH expect 1.5 code.

The install script properly displays photos from your gallery, and gives sample code to use.
Where are you trying to place the photos? And what code have you tried?

Greg
Title: Re: How do you install cpmfetch with the new version of coppermine?
Post by: laurenlemay on April 13, 2015, 06:48:48 am
hi
thank you
if I update, it will mess the whole thing up and I would have to start all over again.
I did that before and my whole website was deleted with all my pictures.

I used this code
<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

and I want to put it above the updates from facebook at http://www.laurenlemay.org

but when I paste the code, it just shows the text and no pictures.
the pictures show here at CpmFetch Installer though:  http://laurynlemay.com/cpmfetch/install.php?do=install&force=true


Title: Re: How do you install cpmfetch with the new version of coppermine?
Post by: phill104 on April 13, 2015, 10:15:39 am
Upgrading really is essential. There are a number of security issues with the old 1.4.x versions that we retired from service a number of years ago. In addition, with the later versions of PHP, 1.4.x simply will not work. If your host is still using those old versions of PHP then that leaves even more security problems. It is just a matter of time before you are hacked and all your hard work is lost.

Upgrading should not mess up your site and you should always take backups anyway, both files and the database.
Title: Re: How do you install cpmfetch with the new version of coppermine?
Post by: gmc on April 13, 2015, 03:12:59 pm
if I update, it will mess the whole thing up and I would have to start all over again.
I did that before and my whole website was deleted with all my pictures.
I have to repeat Phil's advice - updating isn't a choice - the site will break when your provider upgrades PHP levels - or get hacked...
1.4 releases are too old.
Take a look at the upgrade docs - 1.4 to 1.5 isn't a hard upgrade. You do need to address any plugins you are using - or mods you might have made directly to CPG code.

Quote
I used this code
<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>
You need to adjust the code copied from the install page to reflect where you are calling it from - that was an example 'if your gallery was located at ./gallery....'
Your gallery is installed at the website root - and that is where you are calling cpmfetch from - so the code would be:
Code: [Select]
<?php
  
include "./cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>


Greg