Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How do you install cpmfetch with the new version of coppermine?  (Read 3804 times)

0 Members and 1 Guest are viewing this topic.

laurenlemay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21

I think I'm using version 1.5, but I'm not sure.
http://www.laurynlemay.com
Logged

laurenlemay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: How do you install cpmfetch with the new version of coppermine?
« Reply #1 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
Logged

netb

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
Re: How do you install cpmfetch with the new version of coppermine?
« Reply #2 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.
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 692
    • GMC Design Photo Gallery
Re: How do you install cpmfetch with the new version of coppermine?
« Reply #3 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
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

laurenlemay

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: How do you install cpmfetch with the new version of coppermine?
« Reply #4 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


Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4383
    • Windsurf.me
Re: How do you install cpmfetch with the new version of coppermine?
« Reply #5 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 692
    • GMC Design Photo Gallery
Re: How do you install cpmfetch with the new version of coppermine?
« Reply #6 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
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money
Pages: [1]   Go Up
 

Page created in 0.068 seconds with 20 queries.