Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#277 2021-02-16 18:12:20
Re: com_connect - form and contact mailer
I was hoping the max attribute would be used only to specify the max file size, and then remove it from the attribute list so it doesn’t appear in the final HTML. Must be more involved than I thought, sorry. I’ll patch the plugin tonight.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#278 2021-02-16 22:05:02
Re: com_connect - form and contact mailer
Okay colak, try v1.0.4 and see if it’s any better. A few little fixes and enhancements to do with the max file size.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#279 2021-02-17 05:45:03
Re: com_connect - form and contact mailer
Hi Stef, thanks so much for looking into this. 1.0.4 actually did fix the particular error but created another one others.
- Attribute
required
not allowed on elementinput
at this point.- Attribute
required
is only allowed when the input type ischeckbox
,date
,datetime-local
,file
,month
,number
,password
,radio
,search
,tel
,text
,time
,url
, orweek
.- The value of the
for
attribute of thelabel
element must be the ID of a non-hidden form control.
Last edited by colak (2021-02-17 06:07:48)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#280 2021-02-17 11:05:21
Re: com_connect - form and contact mailer
Ooops, sorry. Patched it in v1.0.5 with luck.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#281 2021-02-17 17:06:24
Re: com_connect - form and contact mailer
Bloke wrote #328926:
Ooops, sorry. Patched it in v1.0.5 with luck.
This works just fine, although I have yet to test it with files larger than the php.info limits. I’ll be doing that soon.
Many many thanks!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#282 2021-02-18 05:29:54
Re: com_connect - form and contact mailer
I know this is a stupid question but I am trying to style the generated upload button but the applied styles on .comFile
do not appear to make any visual difference.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#283 2021-02-18 06:04:26
Re: com_connect - form and contact mailer
Are you trying to style the button that reads “Browse” in Firefox or “Choose File” in Safari ? That is a bit more difficult as it is in the shadow DOM
For Safari (and Edge <18 !) and Chromium based browsers you can use [type="file"]::-webkit-file-upload-button {}
, with all the usual rules & possibilities (@-webkit-appearance: none needed for Chromium I think.)
For Firefox < 82 you are ought of luck, Firefox newer that 82 supports the following standardised pseudo-element: [type="file"]::file-selector-button {}
(Safari 14.1 will soon support that too, no clue about Chromium brwosers)
For older (IE 11…) I’ll have to dig in my archives.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
#284 2021-02-18 08:49:24
Re: com_connect - form and contact mailer
Thanks so much Philippe, I’ll be experimenting with your suggestions this afternoon.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#285 2021-02-18 08:54:53
Re: com_connect - form and contact mailer
colak wrote #328948:
Thanks so much Philippe, I’ll be experimenting with your suggestions this afternoon.
Have fun!
FWIW, a somewhat ugly test file including support for IE11
and not-fully-up-date example in my Sandspace admin theme
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
#286 2021-02-18 10:21:47
Re: com_connect - form and contact mailer
Interestingly, FF (latest) and Brave (latest, Chromium engine) do not render the styling at all. In Safari 12.1.1 the styling does work.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#287 2021-02-18 13:15:41
Re: com_connect - form and contact mailer
colak wrote #328950:
Interestingly, FF (latest) and Brave (latest, Chromium engine) do not render the styling at all. In Safari 12.1.1 the styling does work.
Weird. Brave up-to-date works as expected here. Firefox probably not on the second link. The stylesheet is out-of-date. I will update that on of these weeks…
I’ve update the first linked file with support for Firefox 82+ and Safari 14.1.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
#288 2021-02-18 15:29:01
Re: com_connect - form and contact mailer
phiw13 wrote #328952:
Weird. Brave up-to-date works as expected here. Firefox probably not on the second link. The stylesheet is out-of-date. I will update that on of these weeks…
I’ve update the first linked file with support for Firefox 82+ and Safari 14.1.
This appears to be working just fine!!!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline