Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2005-12-15 16:03:10

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Plugin Request: improving zem_contact for money

boblet wrote:

If someone can explain to me how to add plugin translations to txp_prefs, or refer me to a plugin that does this, I’ll have a go at attempting it.

Maybe Sencer can help here with some hints? I will forward this thread to him.

Offline

#62 2005-12-15 16:10:34

boblet
Member
Registered: 2005-08-08
Posts: 53

Re: Plugin Request: improving zem_contact for money

alexandra wrote:

Maybe Sencer can help here with some hints? I will forward this thread to him.

thanks. I won’t be able to properly check those two extra forum links I mentioned until January, so it’s possible I’ll be able to figure it out on my own then. However more advice is always welcome!

Last edited by boblet (2005-12-15 16:11:05)

Offline

#63 2005-12-15 17:20:42

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Plugin Request: improving zem_contact for money

Recently i asked in the german forum section for some php programmer who could help aslsw with the contact plugin. Now someone (-> Paxtettern) did reply. He turned aslsw´s Code (No./v. 8) into a plugin. I could install the plugin easily but did not test it yet.
The plugins php code can be found here: textpattern.pastebin.com/465406.

TextPattern can read english but writing is a problem to him. So i write for him.

Before things get mixed up, it would be great if aslsw could send his code to TextPattern and he turns it into a plugin and checks the code. Good idea? However, we need a plugin and not the pure php for testing.

Offline

#64 2005-12-15 17:31:09

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Plugin Request: improving zem_contact for money

> aslsw66 wrote:

> alexandra,

Sorry, but I’m really feeling my way with this at the moment. Beause I’m modding zem’s plugin for my own benefit (and anyone else’s who cares to take an interest), I’m not really sure what the correct thing to do here is. Do I release this as my own plugin (crediting zem of course)? Or ask zem to re-release his own?

I think it is hopeless to ask Zem. He did not reply once in all the time. Crediting him, seems to be fine.

Offline

#65 2005-12-15 19:04:07

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Plugin Request: improving zem_contact for money

When I asked zem in the past about additions I made to his plugins he always replied to just release it as my own if I wanted to.

I think as long as credit is given it would be fine after all if zem is no longer the one providing the new versions he also shouldn’t be expected to support problems in these new versions.


Shoving is the answer – pusher robot

Offline

#66 2005-12-15 20:01:11

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Plugin Request: improving zem_contact for money

Most of the time I get answers from Zem. And yes he publish his plugins under GPL, so we can do pretty much what we want with them. As I said before, it seems he wants to release a new version of zem_contact, but no news since.

If someone manage to edit zem_contact and integrate all the modifications, upgrades and so on proposed here and there on the forum, I think he should release it under his name (with proper credits of course). It’s been a month, so maybe it will wake up the beast :p

Offline

#67 2005-12-16 00:58:16

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: Plugin Request: improving zem_contact for money

Wow, this plugin seems to be forking all over the place!

Alexandra, I had a look at the version by the German coder – do you know what it was they changed? I can see some hard-coding of defaults in there.

I’m definitely with Jeremie on this one. We need to go back to a solid list of what is needed, work on them one item at a time, give people time to test that change and then go on to the next issue. And I like what Alexandra did in getting help from others.

I could probably keep going on my own to make something that suits me, but I would prefer to work on something that helps out others too.

Are we saying the outstanding issues are these:

  1. handling of international characters submitted by the form,
  2. putting plugin messages/errors into txp prefs if possible, and
  3. then move onto other improvements.

I’ve been experimenting with jg Plug-In Creator to turn my work into a plugin. Unfortunately, it is based on an older version of txp_plugin.php and messes up the admin interface a bit but in future I will release updates as a straight plugin if it makes it easier for people.

Offline

#68 2005-12-16 19:52:11

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Plugin Request: improving zem_contact for money

> aslsw66 wrote:

Alexandra, I had a look at the version by the German coder – do you know what it was they changed? I can see some hard-coding of defaults in there.

I did ask PaxTettern and will answer you as soon as i know. May be he replies himself?

We need to go back to a solid list of what is needed, work on them one item at a time, give people time to test that change and then go on to the next issue.

I absolutely agree. Which version of the plugin is the newest now?

I’ve been experimenting with jg Plug-In Creator…

Hasn´t Zem written a plugin creator, which is more up to date? ( i will search the forum…hang on)

EDIT I here it is:
Zems textpattern-plugin-template

EDIT II
Sencers plugin instructions

Last edited by alexandra (2005-12-16 19:59:25)

Offline

#69 2005-12-17 00:31:09

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin Request: improving zem_contact for money

The most up-to-date plugin template, complete with instructions, is here.

So that you can have the result of any Textpattern tag to be defined as an email address (say a miscellaneous form, or perhaps something really cool like per-author emailing via a custom field):

Within the function zem_contact, find these two lines.

$mailto = (empty($atts['mailto']) ? '' : $atts['mailto']);
$mailfrom = (empty($atts['mailfrom']) ? '' : $atts['mailfrom']);

Change them to:

$mailto = !empty($atts['mailto']) ? parse($atts['mailto']) : '';
$mailfrom = !empty($atts['mailfrom']) ? parse($atts['mailfrom']) : '';

I just modified Alex’s existing plugin version (0.6), since I don’t know how many alternate versions are floating around. But it should be pretty simple to adjust for the other versions.

Offline

#70 2005-12-17 02:02:06

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plugin Request: improving zem_contact for money

Mary,
THANKS! This is great for all.

Matthew


Offline

#71 2005-12-17 02:27:58

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plugin Request: improving zem_contact for money

Oops,
Mary, that didn’t work for me after all:

Here’s how I am using it:

This is the article form called “intro”:
<code>
<h3 class=“content-title”>
<txp:title /></h3>
<a href=”#author”>my details</a>
<txp:body />
<div id=“author”>
<txp:ext_authors form=“author” />
</div>
<h3 class=“content-title”>send me an email</h3>
<txp:ext_authors form=“author-email” />
<div id=“contact”>
<txp:zem_contact mailto=”<txp:ext_authors form=“author-email” />”>
<txp:zem_contact_text label=“Full Name” /><br />
<txp:zem_contact_email label=“Email” /><br />
<txp:zem_contact_textarea label=“Message” /><br /><br/>
<txp:zem_contact_submit label=“Send” />
</txp:zem_contact>
</div>
</code>

This is what I have in my page:
<code>
<txp:article form=“intro” status=“sticky” limit=“1” />
</code>

note: I also tried to put the individual tag <code><txp:ext_author_email /></code> in the mailto portion of zem_contact, but with no success. I have tried it directly in the page as well, but inside zem_contact it will not output the required text.

Any other suggestions?

Matthew

ps. The specific error is No mailto address specified”>
pps. I am using the .6 version of zem_contact

Last edited by ma_smith (2005-12-17 02:30:55)


Offline

#72 2005-12-17 03:01:43

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin Request: improving zem_contact for money

Hm. Well, let’s check what you’ve got there. Can you post your copy to pastebin?

Offline

Board footer

Powered by FluxBB