coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: ShadowHarlequin on July 02, 2007, 02:33:42 PM

Title: upload with no login or gallery selection?
Post by: ShadowHarlequin on July 02, 2007, 02:33:42 PM
Hi i was wondering how i could get a form on a page ive made, that has a single text box and browse, upload buttons, ive created a public access account on my gallery but i wanted users to simple upload their file and not have to login/see the main page

i couldnt find a mod to do this :S i guess you would predefine the user account and gallery to upload the images to but im not that great at it

if anyone could point me in the right direction that would be cool, but it might be something to include in a future release too

<posted here after posting in wrong board>
Title: Re: upload with no login or gallery selection?
Post by: Stramm on July 02, 2007, 03:12:45 PM
Why not just allow anonymous users to upload (group control panel)? This way you at least could enable approval (you check uploads before setting them live).
Title: Re: upload with no login or gallery selection?
Post by: ShadowHarlequin on July 02, 2007, 03:22:33 PM
well i really wanted an iframe to load BELOW the gallery slider (http://www.itheme.co.nr click the themes icon, then the gallery link)
and just allow a single upload from there
any ideas?
Title: Re: upload with no login or gallery selection?
Post by: Stramm on July 02, 2007, 03:40:52 PM
No mod, hack, plugin afaik. You'll have to code this.
Title: Re: upload with no login or gallery selection?
Post by: ShadowHarlequin on July 02, 2007, 05:49:01 PM
hmm would you be able to give me a point in the right direction at all?
it seems like a big task for someone who doesnt really knwo what theyre doing
thanks
Title: Re: upload with no login or gallery selection?
Post by: Stramm on July 02, 2007, 05:54:23 PM
For a start I'd look at upload.php and see how the CPG upload works at all
Title: Re: upload with no login or gallery selection?
Post by: Joachim Müller on July 03, 2007, 09:03:22 AM
Not an easy task for a newbie to come up with a working upload form. If it was easy, Stramm would have shown you the code. The fact that he didn't come up with such code in the first place should give you an idea why he told you to code it yourself: it requires some skills and some hours of coding and testing. It's comparatively easy to come up with the HTML code for the form; the difficult part is the server-side (the part of the code that gets executed when the form is actually being submit).
Not a matter of uploading stuff, but a matter of custom code/skinning. Moving from uploads sub-board to themes/skins/templates sub-board.