Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2017-07-18 23:22:39
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 9,995
- Website
com_connect - form and contact mailer
(formerly zem_contact / zem_contact_reborn)
This plugin is a general purpose contact form emailer. Use it to add a contact form to your site, capturing information from your visitors via text boxes, checkboxes, radio buttons, select lists, etc, then sending the results as plaintext messages to your inbox. You can also use it to share site articles.
Via additional plugin modules, the platform allows you to take things far further. Examples:
- Spam prevention.
- Construct HTML emails.
- Deliver messages via third party sites such as MailChimp.
- Offer list subscribe/unsubscribe.
- File attachments.
Please use this thread or the support issues queue to report issues with the plugin.
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
#2 2017-07-23 16:01:12
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,468
- Website
Re: com_connect - form and contact mailer
Hi Stef,
is the spam patterns extension supported in this plugin?
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Offline
#3 2017-07-23 18:46:26
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 9,995
- Website
Re: com_connect - form and contact mailer
Yes, but not that version. It needs updating to make it work in com_connect:
register_callback('ext_com_connect_verify', 'comconnect.submit');
function ext_com_connect_verify()
{
$emailField = trim(ps('Email'));
$banPatterns = explode("\n", fetch_form('comcon_spam_patterns'));
$evaluation = &get_comconnect_evaluator();
// If the email address matches one of the given patterns, fail.
foreach ($banPatterns as $pattern) {
$pat = trim($pattern);
if ($pat && preg_match($pat, $emailField)) {
$evaluation -> add_comconnect_status(1);
}
}
return;
}
Swap the old verifier plugin code with the above (rename the plugin to ext_com_connect_verify
too if you like) and rename your Form that contains your blacklists to comcon_spam_patterns
. Should be good to go.
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
#4 2017-07-24 05:37:44
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,468
- Website
Re: com_connect - form and contact mailer
Thanks so much stef, I’ll experiment with it on another site first as zcr is currently used beyond our domain and I wouldn’t want to break anything for the next 19 months.
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Offline
#5 2017-07-28 06:53:28
- douglgm
- Member
- From: Bristol
- Registered: 2006-08-23
- Posts: 182
- Website
Re: com_connect - form and contact mailer
Hi Stef,
I’m having a problem trying to install the plugin. When clicking on the install button the site appears to freeze and then I get a 403 Forbidden message (You don’t have permission to access /textpattern/index.php on this server.) and the server is unresponsive…
(Using Textpattern 4.6.2)
Offline
#6 2017-07-28 07:18:12
- douglgm
- Member
- From: Bristol
- Registered: 2006-08-23
- Posts: 182
- Website
Re: com_connect - form and contact mailer
Looks like it the hosting – apparently it triggered some security rules… trying to get some more detail now.
Offline
#7 2017-09-10 08:00:40
- jstubbs
- Moderator
- From: Hong Kong
- Registered: 2004-12-13
- Posts: 2,395
- Website
Re: com_connect - form and contact mailer
Not sure if this has been answered before as a search did not bring results – I was wondering if its possible to style the label
tag separately?
Example:
<txp:com_connect_text label="Name" required="1" break="" class="someclass anotherclass yetanotherclass" placeholder="Enter your name" />
Using the above results in the class names being applied to both the label
and input
tags.. I’d like to style them differently..
Offline
#8 2017-09-10 08:10:59
- phiw13
- Plugin Author
- From: Japan
- Registered: 2004-02-27
- Posts: 2,233
- Website
Re: com_connect - form and contact mailer
jstubbs wrote #306930:
Not sure if this has been answered before as a search did not bring results – I was wondering if its possible to style the
label
tag separately?Example:
<txp:com_connect_text label="Name" required="1" break="" class="someclass anotherclass yetanotherclass" placeholder="Enter your name" />...
Using the above results in the class names being applied to both the
label
andinput
tags.. I’d like to style them differently..
label.someclass {}
, input.someclass {}
? Or maybe, depending on your markup structure, .someclass:first-child { /* label */}
. Or maybe something else, there are so many possibilities.
Where is that emoji for a solar powered submarine when you need it ?
Offline
#9 2017-09-10 08:17:45
- jstubbs
- Moderator
- From: Hong Kong
- Registered: 2004-12-13
- Posts: 2,395
- Website
Re: com_connect - form and contact mailer
phiw13 wrote #306931:
label.someclass {}
,input.someclass {}
? Or maybe, depending on your markup structure,.someclass:first-child { /* label */}
. Or maybe something else, there are so many possibilities.
Thanks…but I meant is it possible to make so that we could have a class option applied to the label
and the input
within the call to txp:com_connect_text
…. maybe this is too much but worth asking :)
Offline
#10 2017-09-10 09:09:26
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,079
- Website
Re: com_connect - form and contact mailer
etc_query
to the rescue?
<txp:etc_query
data='<txp:com_connect_text label="Name" class="someclass" />'
replace="//label@@class=labelclass;//input@@class=anotherclass"
/>
Offline