Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2013-04-26 23:25:06

sileibo
Member
Registered: 2012-12-28
Posts: 155

Attachment with a Form

A button for attaching files to a Form.

Is that difficult?

Would it be html or php?

And could a non web designing photographer get his head around the code and what to do with it?

Many thanks

Simon

Offline

#2 2013-04-27 02:16:29

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Attachment with a Form

I believe you can do this using Form to Email Pro: http://formtoemail.com/formtoemail_pro_version.php

And here's a site with code to add the file upload button to your existing form. You'll need to edit the page with the contact form (contact.php in Pages or the CRG index page, depending on where you're doing this) after export.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2013-04-27 03:18:19

sileibo
Member
Registered: 2012-12-28
Posts: 155

Re: Attachment with a Form

Thanks Rod ....

I think you forgot the second link though smile

Cheers

Offline

#4 2013-04-27 04:23:10

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Attachment with a Form


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2013-05-13 02:49:36

sileibo
Member
Registered: 2012-12-28
Posts: 155

Re: Attachment with a Form

Hi,

I upgraded to Form-to-Email Pro and I've configured it to recognise attachments and I've configured the Form and it's all pretty cool me thinks ...

http://www.stompstock.co.uk/contact.php

Just one oddity puzzling me .. the 'choose file' buttons work on an iPad but are greyed out and not available on an iPhone.

Any ideas why that might be?

Thanks

Offline

#6 2013-05-13 03:50:01

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Attachment with a Form

No. But try un-checking the catch iPhones check box in Output Settings and see what happens.

Or it could be that browsing folders in an iPhone isn't allowed or won't work?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2013-05-13 06:17:18

sileibo
Member
Registered: 2012-12-28
Posts: 155

Re: Attachment with a Form

Nice idea - didn't seem to make any difference though :-/

BTW - s there any Wiki info on that 'On Mobile' section of Output Settings (I couldn't find any) ?


I first noticed the buttons weren't working on the iPhone before I got to an iPad.
And presumed it just wouldn't be possible unless written into an App or something.
But when I found it worked fine on an iPad - that made me curious because I thought they were basically the same OS (though I have no real idea).

You can definitely browse folders from within Apps such as Instagram for example and others.
You can't add attachments to email from the Mail program though, you have to open the photo and then select to mail it.

Offline

#8 2013-05-22 15:44:21

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Attachment with a Form

The button probably shouldn't work on the iPad either; maybe a bug on Apple's side that it's available at all. Cleanest solution is probably to hide the button on small displays (assuming that displays below a certain threshold are probably tablets of phones). Something like this ought to work ...

Give the button an id:

<button id="upload-button" />

Use CSS media queries to hide the button on iPads and smaller, in custom CSS file:

@media screen and (max-width: 1024px) {
    #upload-button { display: none; }
} /* max-width: 1024px */

Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB