How do you install cpmfetch with the new version of coppermine? How do you install cpmfetch with the new version of coppermine?
 

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

How do you install cpmfetch with the new version of coppermine?

Started by laurenlemay, April 09, 2015, 03:58:42 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

laurenlemay



netb

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.

gmc

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
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

laurenlemay

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



phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

gmc

Quote from: laurenlemay on April 13, 2015, 06:48:48 AM
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:

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



Greg
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money