Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1471 2015-01-14 14:00:20
Re: zem_contact_reborn 4.0.3.20
Hi all!
I have Txp 4.5.4 and zem_contact_reborn 4.0.3.20 working just fine.
However I recently copied the whole TXP installation to another directory (along with the database) to make a separate version of the website and in this new directory the forms don’t work – I always get a “nice try” error. Tried re-istalling plugins with no luck. And it drives me mad!
Could you point me in the right direction?
Thanks
Offline
#1472 2015-01-14 18:15:05
Re: zem_contact_reborn 4.0.3.20
@Si:
Login to your control pane
Go to Admin
Go to Preferences
Go to Advanced
Change the Maximum URL length (in characters) to a higher value til it works!
Offline
#1473 2015-01-14 20:34:09
Re: zem_contact_reborn 4.0.3.20
wow, thanks a million, Ruud! how could I miss that
problem solved
Offline
#1474 2015-01-14 21:20:21
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: zem_contact_reborn 4.0.3.20
Si wrote #287361:
[…] working just fine. […] copied the whole TXP installation […]
Ruud, dim user here, trying to get a little smarter: How did you get the idea to change the URL length value that was copied over from a working installation?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#1475 2015-01-15 16:04:40
Re: zem_contact_reborn 4.0.3.20
I googled for “TXP nice try”. Seriously :)
Offline
#1476 2015-01-15 16:39:29
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: zem_contact_reborn 4.0.3.20
Very often I’m not doing any different, myself. But here I’d have thought “Can’t be the prefs, copied values, was working with these before. Result: reason will be something from the new environment (read: server), at most new/forgotten htaccess”.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#1477 2015-02-26 13:26:05
Re: zem_contact_reborn 4.0.3.20
Where is the most recent (compiled) version of this plugin? Stef’s version is the raw PHP file so I can’t paste it into plugin page. Cheers.
Offline
#1478 2015-02-26 13:53:54
Re: zem_contact_reborn 4.0.3.20
philwareham wrote #288622:
Where is the most recent (compiled) version of this plugin?
You’ve got mail. Really need to get the new version released and stop clogging up Ruud’s 4.3.2.0 thread.
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
#1479 2015-03-05 08:29:22
Re: zem_contact_reborn 4.0.3.20
Hi Stef,
Any chance you can compile and tag a beta of the plugin on GitHub, with the latest amends I committed rolled in?
Mighty want to look at the new attributes I added first and make sure all is well. In particular the autocomplete which is currently a value of on and off (the W3C spec) but you may want to also allow 1 and 0 (for consistency with Textpattern conventions).
Offline
#1480 2015-03-14 14:15:10
Re: zem_contact_reborn 4.0.3.20
Hi folks ;)
Uli, or any others, can you explain me in details how to proceed to populate a field into a zem_contact form?
Ref. http://forum.textpattern.com/viewtopic.php?pid=253414#p253414
Thanks lot by advance.
Cheers,
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
#1481 2015-03-14 15:36:40
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: zem_contact_reborn 4.0.3.20
Hi Patrick, here’s what I meant by “suffixing”, immediately in the shape of the code I used for a small publishing house:
<a title="Order this book" href="<txp:site_url />directorder?title=<txp:php>echo(rawurlencode($GLOBALS['thisarticle']['title']));</txp:php>&price=<txp:custom_field name="price" />&article=<txp:article_id />" class="order">Order <txp:title /></a>
It creates a link to a section directorder and adds parameters as “suffixes” to the URL, here ?title=NameOfTheBook&price=Value&article=IdOfTheBook. You usually would get along without resorting to txp:php but here I had book titles with accented letters and cedillas, like you have in France, too :)
On the directorder page with your zem_cr form you then can read the URL parameters with adi_gps and use the adi tags to fill in your form fields:
<txp:zem_contact_text name="book" label="book" default='<txp:adi_gps name="title" />' />
Edit: typos.
Last edited by uli (2015-03-14 15:38:31)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#1482 2015-03-14 17:43:15
Re: zem_contact_reborn 4.0.3.20
;)
Thanks lot Uli!
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
#1483 2015-03-14 20:50:40
Re: zem_contact_reborn 4.0.3.20
Depending on your setup, you could also just pass the <txp:article_id /> via the url and then use that to look up the respective item details on the form page.
You could then pass the relevant details into disabled/non-editable form fields or as a secret input item. That prevents people from manipulating the url to get another price, for example, or bots from sending you rubbish. You can also use that to filter what can be sent, e.g. in uli’s case to prevent orders being made for products that may no longer exist or are out of stock.
If you do use an article id, you should also check that a) it exists and b) is of the right kind, e.g. is in the correct section. Ideally, you want to be sure that all data passed via the url is cleaned before being passed on.
TXP Builders – finely-crafted code, design and txp
Offline
#1484 2015-03-15 16:34:48
Re: zem_contact_reborn 4.0.3.20
since the first of March I have received 8 spam emails from different IPs which all share some similarities. There is no flood as such but I would rather not receive them as they also subscribe to our newsletter so I have to also delete them from the db. Is there a way which I could detect those common elements and stop them from posting or more importantly registering?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#1485 2015-03-16 09:07:06
Re: zem_contact_reborn 4.0.3.20
colak wrote #289087:
since the first of March I have received 8 spam emails from different IPs which all share some similarities. There is no flood as such but I would rather not receive them as they also subscribe to our newsletter so I have to also delete them from the db. Is there a way which I could detect those common elements and stop them from posting or more importantly registering?
It would be nice to have a Recaptcha tag which could be used, as part of the zen_contact_reborn toolset. I’ve opened an issue and we can discuss there.
Recent versions of Recapture aren’t as painful for users as it used to be, I feel.
Offline