forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: mtrailer on May 01, 2014, 11:43:28 pm

Title: Album Number
Post 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
Title: Re: Album Number
Post by: Αndré on May 02, 2014, 09:25:20 am
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
Quote
http://coppermine-gallery.net/demo/cpg15x/thumbnails.php?album=3
where "3" is the album ID.
Title: Re: Album Number
Post by: mtrailer on May 02, 2014, 08:26:57 pm
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
Title: Re: Album Number
Post by: gmc on May 03, 2014, 03:56:14 pm
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.
Title: Re: Album Number
Post by: mtrailer on May 05, 2014, 09:08:19 pm
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
Title: Re: Album Number
Post by: Αndré on June 16, 2014, 12:53:30 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 (http://documentation.coppermine-gallery.net/en/dev_superglobals.htm).

In newcam.php you'll find
Code: [Select]
$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
Code: [Select]
$filepath="./albums/pix/";or
Code: [Select]
$filepath="albums/pix/";or
Code: [Select]
$superCage = Inspekt::makeSuperCage();
$filepath=$superCage->server->getRaw('DOCUMENT_ROOT')."/path/to/your/cpg/directory/albums/pix/";
Title: Re: Album Number
Post by: mtrailer on June 27, 2014, 09:48:05 pm
Thank you.

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

Thanks again.

Martin