forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: mtrailer on May 01, 2014, 11:43:28 pm
-
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
-
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
http://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album=3
where "3" is the album ID.
-
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
-
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 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
-
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 (http://documentation.coppermine-gallery.net/en/dev_superglobals.htm).
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/";
-
Thank you.
I will give it a try later and let you know what/if it works.
Thanks again.
Martin