Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Plugin Request: improving zem_contact for money
In trying to allow for a selectable mailto addresses, I have run into a problem.
If the select box says <code><select name=“mailto”><option value=“0”>Frank</option>,</select></code>, then textpattern and/or zem_contact returns nothing.
If instead I use <code><select name=“mailto”><option value=“00”>Frank</option>,</select></code>, then the generated email includes “mailto: 00” – which is what I want. In fact, any additional characters will do the trick – it’s just a single digit by itself that fails.
creativesplash, I have emailed you separately with a fuller description.
If anyone else has any ideas, I’d be glad to hear them – I’m a bit stuck at the moment (although I could simply add a character and then strip it for processing the mailto address).
Last edited by aslsw66 (2005-11-29 03:52:57)
Offline
#17 2005-11-29 08:51:20
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Plugin Request: improving zem_contact for money
@thebombsite
i did email zem this thread already but he did not reply… we should forget about zem, he is simply not interested and/or has no time.
Offline
Re: Plugin Request: improving zem_contact for money
Ok. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Plugin Request: improving zem_contact for money
Anura,
I got your mail. I have no clue where things are going wrong! Try posting the code over here so that the coders can view it. Thanx for your effort and sorry about the late reply.
Vasanth
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
Re: Plugin Request: improving zem_contact for money
thebombsite wrote:
Has anybody bothered to ask Zem why he hasn’t updated his plug-in? I don’t know any more than you lot but Zem might. Just a thought.
I did like a week ago, and asked him if I would be to release a new version of his plugin based on forum comments if he wanted me to keep the author/name or wanted me to release it under my name.
He seems still interested on supporting his plugin, so I guess we are going to see a new corrected version. I don’t know any specifics behind those.
I guess if you want to donate, you can on his website :)
Last edited by Jeremie (2005-11-29 20:49:56)
Offline
Re: Plugin Request: improving zem_contact for money
In case anyone is interested, I have successfully managed to modify this plugin so that the user can select a name from a drop-down list to send the email to, with the emailto address modified by the plugin depending on the selection. The modification checks for either an email address in the ‘mailto’ attribute of <txp:zem_contact> or my new tag.
Now I need to tidy it up a bit, combine it with creativesplash’s modifications above and then let people have a play and break it!
Offline
#22 2005-11-30 13:16:37
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Plugin Request: improving zem_contact for money
aslsw… that is gorgious! Thanks a lot. Once you are done i happililly will help testing it :)
Offline
Re: Plugin Request: improving zem_contact for money
aslsw66,
Well done. Thanks for the hard work. I would be happy to test as well. let us know when you have a “cleaner” product : ie the changes adaptations you suggested above, and lets give it a go.
Its interesting how things get done around here when many people need them. The plugin requests that only a few or one need doing, are rare to get accomplished (unless that person is a coder). I guess that’s open source for ya. Hmm.
Looking forward to testing this one out.
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: Plugin Request: improving zem_contact for money
aslsw66 wrote:
In case anyone is interested, I have successfully managed to modify this plugin so that the user can select a name from a drop-down list to send the email to, with the emailto address modified by the plugin depending on the selection. The modification checks for either an email address in the ‘mailto’ attribute of <txp:zem_contact> or my new tag.
With a query from the author table, that could be really interesting. Author’s name displayed, email adress hidden.
Offline
Re: Plugin Request: improving zem_contact for money
aslsw66: Great job! Sorry, I couldnt help much with the e-mail select option! But if you would like me to help with anything else (beta testing or other stuff), I’m ready!
Vasanth
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
Re: Plugin Request: improving zem_contact for money
> Jeremie wrote:
He seems still interested on supporting his plugin, so I guess we are going to see a new corrected version. I don’t know any specifics behind those.
Actually Jeremie, I was thinking more along the lines of whether there were any thoughts of dragging this into the base code. I’ve not heard or seen anything but…
Last edited by thebombsite (2005-12-01 02:12:50)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Plugin Request: improving zem_contact for money
I can’t quote Zem’s email without his approval, but as I understood it it will still be a plugin.
But now you mention it, yep it would be nice to have a real clean (aka spam secure, that mean no email adress in the HTML whatsoever) way of sending email in core code. Maybe keeping the special additionnal field and other goodies for a plugin.
Not major in any cases.
Offline
Re: Plugin Request: improving zem_contact for money
Before people get too excited, I am going away for 2 days – no laptop = no work = no Internet!!
I suddenly remembered some more error-checking is needed – what happens if you list 3 names but only 2 email addresses? So, I’ll be working on this on Sunday night and then hopefully posting something for people to have a look at and break.
Offline
Re: Plugin Request: improving zem_contact for money
In a topic here (… in french) I mentionned that with my provider (OVH france) the header that ZEM_CONTACT plugin sent wasn’t “accepted” by this provider : so no message could arrived.
I’ve hacked the plugin and deleted the 4 <code>\r</code> in the code and that’s OK for me and OVH ;-)
What do you think of that ? Is it something that you can add to the “new” ZEM_CONTACT plugin ?
An other thing : boblet work on an “Internationalizing” of ZEM_CONTACT here and for french people (and other) it’s very interesting to allow a <code>$name</code> with accentueted caracters or like “n° de téléphone” for “phone number”.
françois.
Last edited by fpradignac (2005-12-01 13:17:06)
françois
Offline
Re: Plugin Request: improving zem_contact for money
fpradignac wrote:
What do you think of that ? Is it something that you can add to the “new” ZEM_CONTACT plugin ?
Already discussed a few months ago with Zem. I wasn’t able to get him on that. Other software, such as PunBB, use an OS selector to choose what linefeed to apply to email headers.
Last edited by Jeremie (2005-12-02 04:40:50)
Offline