Album Number Album Number
 

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

Album Number

Started by mtrailer, May 01, 2014, 11:43:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mtrailer

I assume this is a very basic question.

I am attempting to add the email upload option that is now closed in another area.

Everything "seems" to be correct, but the one thing I am unsure of is the album #.  I do not know how to set it or to determine what is already there.

Thanks for the assistance in advance.

Martin

Αndré

Please post a link to the mod you want to apply. If you just want to find out the album ID of a particular album, check your browser's address bar when viewing the thumbnail page. It will look like
Quotehttp://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album=3
where "3" is the album ID.

mtrailer

André

Thank you for the reply.

First, this is all a bit over my head.

Here is the link to the mod I am attempting to get working.

http://forum.coppermine-gallery.net/index.php/topic,33950.0.html

It is basically 3 files inserted into the root file.  Based on reading the thread, I just need to change a few things and it should all work.  I have, or I should say I thought so.

I have tried repeatedly and what I thought was my weak spot was the album number.  I did figure it out correctly, but to no avail yet.

I would like to post the files here, but since I all new to this I don't know if that is permitted.

Thanks again.

Martin

gmc

Unfortunately the mod you refer to was written pre CPG 1.5 - and has been unsupported since 2008.
While I actually have a use for a mod like this, I don't currently have the time to invest in it.

I don't know if anyone else would be willing. The original contributor hasn't been on in for 6 months, and said in thread he was no longer supporting.
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

mtrailer

Thanks for responding Greg.

First, should I start a new subject thread?

I would like to get this function to work, but unsure what, whom, where to get it going.

Is there any info regarding the major differences re; 1.4 and 1.5?

Any suggestions would be appreciated.

thanks again in advance.

Martin

Αndré

Quote from: mtrailer on May 05, 2014, 09:08:19 PM
Is there any info regarding the major differences re; 1.4 and 1.5?
The main difference things won't work in cpg1.5.x that has been working is the Sanitization of Superglobals using Inspekt.

In newcam.php you'll find
$filepath=$_SERVER["DOCUMENT_ROOT"]."/albums/pix/";
(which contains a superglobal and furthermore just support galleries which reside in the document root).

Try if it works with
$filepath="./albums/pix/";
or
$filepath="albums/pix/";
or
$superCage = Inspekt::makeSuperCage();
$filepath=$superCage->server->getRaw('DOCUMENT_ROOT')."/path/to/your/cpg/directory/albums/pix/";

mtrailer

Thank you.

I will give it a try later and let you know what/if it works.

Thanks again.

Martin