Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: com_connect - form and contact mailer
There’s no reason why you can’t use:
<div class="myclass1">
<txp:com_connect_text class="" name="name" size="32" label="Name" />
</div>
<div class="myclass2">
<txp:com_connect_email class="" name="email" size="32" />
</div>
And then use CSS like this:
.myclass1 label { *declarations here* }
.myclass1 input { *declarations here* }
So I feel the current plugin behaviour is OK.
Offline
Offline
Re: com_connect - form and contact mailer
etc wrote #306946:
Bloody css/js frameworks, gentlemen, with their proprietary classnames.
Oh. Yes I can see why you’d want to have more directly applied classnames now.
Offline
Re: com_connect - form and contact mailer
philwareham wrote #306947:
Oh. Yes I can see why you’d want to have more directly applied classnames now.
Yes…this is for an updated website using Tachyons which is really nice to use but requires classes to be placed on individual elements which can be a pain…but I do think it is unintuitive to have a class applied to the Textpattern tag which relates to an input
element also apply to a label
element. I’m not sure what to suggest – it is an easy workaround I know.
Offline
#17 2017-11-04 13:57:50
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,304
Re: com_connect - form and contact mailer
placeholder text doesn’t show up. :( what i should check?
my form:
<txp:com_connect to="john@example.com" label="" subject="Message" thanks="Your message has been sent, thank You!" lang="en-gb">
<txp:com_connect_text label=" " placeholder="Name" break="" />
<txp:com_connect_email name="email" type="email" label=" " placeholder="Email" break="" />
<txp:com_connect_textarea rows="4" cols="25" label=" " placeholder="Message" break="" />
<txp:com_connect_submit label="Send" />
</txp:com_connect>
Edit: Replaced email, textilised code. Uli
Last edited by uli (2017-11-04 16:31:54)
Offline
Re: com_connect - form and contact mailer
Gallex wrote #307645:
placeholder text doesn’t show up. :( what i should check?
What is the Doctype
of your site (Amin > Preferences > Site)? That attribute is only applied if it is set to HTML5
.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
#19 2017-11-05 07:44:56
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,304
Re: com_connect - form and contact mailer
phiw13 wrote #307646:
What is the
Doctype
of your site (Amin > Preferences > Site)? That attribute is only applied if it is set toHTML5
.
XHTML. changed to HTML5 and ‘problem’ solved. thank you!
Offline
#20 2017-11-06 09:57:58
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,304
Re: com_connect - form and contact mailer
trying to send pdf file (34 KB).
my form:
<txp:com_connect to="mar...@gmail.com" label="" subject="Messsage" thanks="Thank You!" lang="en-gb">
<txp:com_connect_text label="Name:" break="" />
<txp:com_connect_email name="email" type="email" label="Email:" break="" />
<txp:com_connect_file label="Send file" max="8000000" />
<txp:com_connect_submit label="Send" />
</txp:com_connect>
but still getting error message:
Send file must not exceed 8000000.
Offline
#21 2017-11-07 09:50:35
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,304
Re: com_connect - form and contact mailer
is it something wrong with my code above?
PHP version: 5.4.45
Offline
Re: com_connect - form and contact mailer
I think it’s a bug in the ext_file_attach
module, sorry. But it won’t even run on my server any more as there’s some changes to recent PHP versions which break the headers that com_connect uses so I need to debug that first.
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
#23 2017-11-30 11:19:12
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,304
Re: com_connect - form and contact mailer
Bloke wrote #307671:
I think it’s a bug in the
ext_file_attach
module, sorry. But it won’t even run on my server any more as there’s some changes to recent PHP versions which break the headers that com_connect uses so I need to debug that first.
any progress?
Offline
Re: com_connect - form and contact mailer
Gallex wrote #308056:
any progress?
Ack, thanks for the reminder. I’ll look tonight and see if I can get it fixed.
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