Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2017-09-11 10:23:24

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,545
Website GitHub Twitter

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

#14 2017-09-11 11:31:12

etc
Developer
Registered: 2010-11-11
Posts: 4,548
Website GitHub

Re: com_connect - form and contact mailer

philwareham wrote #306945:

There’s no reason why you can’t use:

<div class="myclass1">...

And then use CSS like this:

.myclass1 label { *declarations here* }...

Bloody css/js frameworks, gentlemen, with their proprietary classnames.

Offline

#15 2017-09-11 11:32:56

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,545
Website GitHub Twitter

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

#16 2017-09-11 12:12:49

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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,223

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

#18 2017-11-04 22:21:32

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,513
Website

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 ?

Offline

#19 2017-11-05 07:44:56

Gallex
Member
Registered: 2006-10-08
Posts: 1,223

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 to HTML5.

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,223

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,223

Re: com_connect - form and contact mailer

is it something wrong with my code above?

PHP version: 5.4.45

Offline

#22 2017-11-07 11:12:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,565
Website GitHub

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,223

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

#24 2017-11-30 13:48:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,565
Website GitHub

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

Board footer

Powered by FluxBB