Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-11-07 09:36:57

ar
Member
Registered: 2012-03-08
Posts: 16

How zem_contact_reborn 4.0.3.21 works with Textpattern 4.6.2

Hi,

just in case you missed it: This is the answer (thank you, Bloke).

I got an error with mysql_real_escape_string().

Go to Textpattern > Administration > Plugins > zem_contact_reborn:

Step 1: Search for function zem_contact. Below (after the { bracket), add $DB, right after global.

Step 2: Search for $nonce = mysql_real_escape_string(ps('zem_contact_nonce')); and replace it with $nonce = mysqli_real_escape_string($DB->link, ps('zem_contact_nonce'));

Now zem_contact_reborn is truly reborn. :-)

Best,

Alex

Last edited by ar (2016-11-07 09:42:14)

Offline

#2 2016-11-07 09:47:02

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,293
Website

Re: How zem_contact_reborn 4.0.3.21 works with Textpattern 4.6.2

Have you tried the new version?


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

#3 2016-11-07 09:55:40

ar
Member
Registered: 2012-03-08
Posts: 16

Re: How zem_contact_reborn 4.0.3.21 works with Textpattern 4.6.2

Not yet. Did I understand correctly that it is more recommended for “fancier” stuff? Because I have just a really simple contact form (message, optional name, optional email, send button).

Offline

#4 2016-11-07 10:05:55

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,539
Website

Re: How zem_contact_reborn 4.0.3.21 works with Textpattern 4.6.2

Hi ar, I found that the latest version of zcr was not compatible with txp 4.6.x. Stef’s recommended version works like a breeze.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#5 2016-11-07 10:06:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,293
Website

Re: How zem_contact_reborn 4.0.3.21 works with Textpattern 4.6.2

ar wrote #302735:

“fancier” stuff?

Yes, fancier stuff like HTML5 tag support, along with a few new tags (select options) and developer callbacks. If you’re not using any HTML5 doctype, or just doing a really simple contact form, v4.3.20 is fine.


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

#6 2018-02-06 08:20:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,539
Website

Re: How zem_contact_reborn 4.0.3.21 works with Textpattern 4.6.2

I am using zcr 4.5.0.0 with the spam patterns plugin but I have been recently getting spam from porn and loan sites.

Is there a way to stop this? (maybe through a word filter?)


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#7 2018-02-06 11:41:12

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,293
Website

Re: How zem_contact_reborn 4.0.3.21 works with Textpattern 4.6.2

colak wrote #309098:

I have been recently getting spam from porn and loan sites.

Well you need a loan to feed a porn habit, so what’s the issue? ;-)

Word filters are okay, but you spend a lot of time working around times when people use “Pay Day L 0 a n s”. adi_contact has some spam tools in it. Might be worth a look since you’re not using com_connect here.


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

#8 2018-02-06 11:47:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,539
Website

Re: How zem_contact_reborn 4.0.3.21 works with Textpattern 4.6.2

Bloke wrote #309107:

Well you need a loan to feed a porn habit, so what’s the issue? ;-)

Hi did you know? :)

Word filters are okay, but you spend a lot of time working around times when people use “Pay Day L 0 a n s”. adi_contact has some spam tools in it. Might be worth a look since you’re not using com_connect here.

Thanks so much stef. I’ll look into it


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

Board footer

Powered by FluxBB