Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#496 2025-12-10 11:17:49
Re: com_connect - form and contact mailer
Bloke wrote #341655:
That’s Google’s shoddy code. I expect they’ve fixed it in a later version of the ReCaptcha API files
Google is sunsetting the free version of this API at the end of 2025. Going forward you will be required to use the Enterprise version. This version will remain free till the end of the year, then over 10K requests a month you have to pay about $8 a month or more.
Quelle surprise.
In the meantime, if you want a PHP 8.4 compatible library, check out: phpfui/recaptcha. Should be a drop in replacement.
I’ll do that instead then 😁
(and it also supports PHP 8.5)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#497 2025-12-10 11:48:57
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,331
Re: com_connect - form and contact mailer
Bloke wrote #341655:
Start up the web inspector console, visit the Console or Network panels and refresh the website page with the captcha on it. Are there any errors thrown? Google may have changed their API or there could be some security setting that is forbidding the captcha from loading cross-domain. I can’t see any major errors (assuming it’s the kyla one you were referring to yesterday).
yes, the same page. if even you don’t see, then this part is ok, i assume…
Last edited by Gallex (2025-12-12 06:01:45)
Offline
#498 2025-12-10 11:52:55
Re: com_connect - form and contact mailer
Gallex wrote #341657:
yes, the same page. if you can’t see yourself, then this part is ok, i assume…
Yes, but the bizarre thing is if you look in the page source code, the hidden captcha form element and JavaScript code have NOT been added to the page. I’ve no idea why that would be.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#499 2025-12-16 08:53:58
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,331
Re: com_connect - form and contact mailer
Bloke wrote #341658:
Yes, but the bizarre thing is if you look in the page source code, the hidden captcha form element and JavaScript code have NOT been added to the page. I’ve no idea why that would be.
actually it is, look at line 222 and the captcha button also appears nicely in the bottom right corner – it was just hidden under other layers before, I brought it to the top now.
your plugin actually works – it sends the message and it arrives nicely, just after sending some errors appear. if only we could get rid of them there too… ;)
Offline
#500 2025-12-16 08:55:36
Re: com_connect - form and contact mailer
Gallex wrote #341723:
actually it is, look at line 222 and the captcha button also appears nicely in the bottom right corner – it was just hidden under other layers before, I brought it to the top now.
Ah, cool. Glad it works…
your plugin actually works – it sends the message and it arrives nicely, just after sending some errors appear. if only we could get rid of them there too… ;)
… sort of. Can you please post the errors and we’ll fix them. Thank you.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#501 2025-12-16 10:34:29
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,331
Offline
#502 2025-12-16 10:36:15
Re: com_connect - form and contact mailer
Oh, those. Okay, sorry, I thought you meant new errors. I’ll fix them when I get a chance.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#503 2025-12-31 20:53:44
Re: com_connect - form and contact mailer
colak wrote #312784:
I compiled the pap_contact_cleaner plugin with the changes suggested by Stef so as to make it play with com_connect. It is not fully tested yet but it does not break my site.
# Name: pap_comconnect v0.1.2 (compressed)...
Is this still compatible with 4.9.?
A hole turned upside down is a dome, when there’s also gravity.
Offline
#504 2025-12-31 20:55:59
Re: com_connect - form and contact mailer
jayrope wrote #342048:
Is [pap_contact_cleaner] still compatible with 4.9.?
It should be, as long as you have the latest com_connect.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#505 2025-12-31 21:04:41
Re: com_connect - form and contact mailer
Bloke wrote #342049:
It should be, as long as you have the latest com_connect.
Thank you, this really helped. I had found only the 4.90 beta before. Steph, thank you loads for your work! Where can i find the donation link?
Last edited by jayrope (2025-12-31 21:21:30)
A hole turned upside down is a dome, when there’s also gravity.
Offline
#506 2025-12-31 21:35:43
Re: com_connect - form and contact mailer
jayrope wrote #342050:
Where can i find the donation link?
Here’s the link to the dev team donations. Thank you so much in advance. And happy new year.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#507 2026-01-01 15:53:13
Re: com_connect - form and contact mailer
Happy New Year everyone!
From the plugins list in the backend pap_comconnect 1.2 links to https://forum.textpattern.io/viewtopic.php?pid=312784#p312784 – a non-existing link, it should be https://forum.textpattern.com/viewtopic.php?pid=312784#p312784 at the least.
Just FYI.
Last edited by jayrope (2026-01-01 15:53:51)
A hole turned upside down is a dome, when there’s also gravity.
Offline
#508 2026-01-01 16:09:59
Re: com_connect - form and contact mailer
@jayrope. ext_com_connect_verify is another mini plugin that you can use to flag ban words patterns. You can customise the comcon_spam_patterns form to block the spam you often get. It usually looks pretty ugly, e.g. (‘ve removed the really offensive words from this)
/[Ff]ore[Mm]edia/
/(Per|Pay)[-\s]Per[-\s]Click/
/(Google|Bing|Facebook)\sAds?/
/[Aa]pp\s[Dd]eveloper/
/(SEO|seo)\s[Ss]pecialist/
/social[-\s]media marketing/
/shopping carts?/
/truly amazing/
/free consultation/
/invermectin/
/[Vv]ideo [Gg]ames/
/[Ww]eb\s?[Dd]esign(er)?/
/[Ww]eb\s?[Dd]evelop(er|ment)/
/Word[Pp]ress/
/reviews/
TXP Builders – finely-crafted code, design and txp
Offline
#509 2026-01-01 16:13:02
Re: com_connect - form and contact mailer
And there’s another even more effective method which swaps out the form action after a time delay, causing automated bots which fill out forms quickly to land in nirvana while allowing regular (slower) people to submit the form.
Use the delay attribute to specify the number of seconds before it switches the form action and the action attribute to specify an alternative (e.g. throwaway) action target, followed by the real one. If it’s the same page as the form, just end the attribute with a comma. Both go in the initial txp:com_connect tag, for example:
delay="5-15" action="https://binit.domain.com/,"
I found that to be most effective so far.
It’s documented here.
TXP Builders – finely-crafted code, design and txp
Offline
#510 2026-01-01 16:25:55
Re: com_connect - form and contact mailer
jakob wrote #342060:
jayrope. "ext_com_connect_verify":./viewtopic.php?pid=306402#p306402 is another mini plugin that you can use to flag ban words patterns. You can customise thecomcon_spam_patterns@ form to block the spam you often get. It usually looks pretty ugly, e.g. (‘ve removed the really offensive words from this)
/[Ff]ore[Mm]edia/...
Thank you, Jakob. I am not versed with patterns, or RegEx for that matter. I did see Bloke’s advice somewhere in this VERY long thread. I suppose it would make sense to combine that info into a help article of sorts, so that the same questions and remarks aren’t asked / made over and over again?
Last edited by jayrope (2026-01-01 16:26:52)
A hole turned upside down is a dome, when there’s also gravity.
Offline