Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1096 2011-10-05 19:48:20

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: zem_contact_reborn 4.0.3.20

Hello again,

I was wondering… you can use a textpattern forms for the layout of the form itself, as well as for the ‘to’, ‘from’, ‘subject’ and ‘thanks’ attibutes, but what about for the email that is sent out? I’d love to be able to use a form to send out something other than a plain list of labels and input, and create a custom email template to rearrange results, add some text here and there, and use some php to tweak the email. Is there anyway to do that? Or would something like that put me into plugin writing territory?

Thanks!

iris

Offline

#1097 2011-10-05 20:41:01

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

Re: zem_contact_reborn 4.0.3.20

I’ve been thinking the same myself. I have a project underway, and my first priority is to tweak ZCR so that I can use BCC to send bulk emails to members of my site (not big deal, there are only 40 or so anyway). But my next priority is to see if I can turn off the display of the “subject” in the body of the email, as that is already in the … subject of the email.

Offline

#1098 2011-10-06 06:33:34

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: zem_contact_reborn 4.0.3.20

aslsw66 wrote:

I’ve been thinking the same myself. I have a project underway, and my first priority is to tweak ZCR so that I can use BCC to send bulk emails to members of my site (not big deal, there are only 40 or so anyway). But my next priority is to see if I can turn off the display of the “subject” in the body of the email, as that is already in the … subject of the email.

For sending emails to all members of your site, you might also want to consider the Postmaster plugin, which does allow you to use a form to compose your emails.

At a textpattern site I did years ago, I used Ben Bruce’s old Email-on-Post plugin, which is an earlier incarnation of the Postmaster plugin, remade by Manfre. This plugin let me send emails to members that were controlled by forms – what I’m looking for now is a sort of hybrid between that functionality, and using a zem_contact form for the email’s input data. Hope that makes sense…

Offline

#1099 2011-10-06 08:31:44

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

Re: zem_contact_reborn 4.0.3.20

Does Postmaster integrate with the ign_users table? I have membership tightly integrated with the site – in fact, you must be a member to have any access at all. Because the numbers are so small, and also the members are all known, I thought adding bcc functionality to ZCR would make the process simpler.

Also, I have made a lot of effort to design a sort of customised front-end dashboard so that senior members of the group can manage memberships (including member details), create articles etc from the front-end. Mostly this is because they tend to be people of more ‘advanced years’ and generally resistant to technology and change – the standard Txp backend would scare them off. Integrating bcc into ZCR makes it simple to send an email from a custom-designed web form.

Offline

#1100 2011-10-06 09:04:58

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: zem_contact_reborn 4.0.3.20

aslsw66 wrote:

Also, I have made a lot of effort to design a sort of customised front-end dashboard so that senior members of the group can manage memberships (including member details), create articles etc from the front-end. Mostly this is because they tend to be people of more ‘advanced years’ and generally resistant to technology and change – the standard Txp backend would scare them off. Integrating bcc into ZCR makes it simple to send an email from a custom-designed web form.

Nods. Accommodating less technically minded users is also exactly the reason I’m looking for a way to change the standard email output of zem_contact. Instead of a plain list of all the form items and their data, I want to add a bit of text to explain what the email is for, and because I have a lot of checkboxes in this form, I want leave out any that have been left unchecked and only include the ones that were checked in the email (because a long list of “Option X: no” entries will only cause confusion for these users). On other sites, I’ve just a hidden form field to add a bit of text to the email, but now I’m looking for a way to do a bit more than that.

Offline

#1101 2011-10-09 11:07:21

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: zem_contact_reborn 4.0.3.20

Hi,

How would it be possible to pass values to a zem_contact form, to auto-populate certain fields?

This is what my scenario is:

1. Tons of articles with data in custom fields
2. User shortlists them using filters on the front-end (through glz_custom_fields)
3. Each item in the result and the actual article has a “Send Request” link, that takes the user to a zem_contact form
4. On this form, certain fields are auto-populated from that article’s custom fields

Appreciate any help!

Cheers,
Husain

Offline

#1102 2011-10-09 11:57:59

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,316

Re: zem_contact_reborn 4.0.3.20

You’d suffix the request links with an article element that’s unique, typically the ID, and use adi_gps on the target page to read that ID and then populate the form with ID-prefilled txp tags.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#1103 2011-10-09 12:04:59

M_i
Member
Registered: 2006-03-05
Posts: 122

Re: zem_contact_reborn 4.0.3.20

husainhk wrote:

How would it be possible to pass values to a zem_contact form, to auto-populate certain fields?

Maybe I misunderstand your question, but wouldn’t you simply be able to auto-populate fields with something along the lines of,

<txp:zem_contact_text default='<txp:custom_field name="yourcustomfield" />' />

And switch between showing the article content and the send request form on the article page with something like chs_if_urlvar.

Last edited by M_i (2011-10-09 12:13:49)

Offline

#1104 2011-10-11 02:37:38

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

Re: zem_contact_reborn 4.0.3.20

I’ve just upgraded to 4.4.1 from 4.3 and I’m getting the following two errors:

A problem occured while loading the plugin: zem_contact_reborn -> Warning: Please contact support about failure on line 653

The above errors were caused by the plugin:zem_contact_reborn

A problem occured while loading the plugin: pap_contact_cleaner -> Warning: Please contact support about failure on line 653

The above errors were caused by the plugin:pap_contact_cleaner

To be fair – they errors may have existed before the update – I can’t remember. Any ideas on what I should check or do?
zem_contact_reborn 4.0.3.20
pap_contact_cleaner 0.1
Thanks

Offline

#1105 2011-10-11 10:55:11

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: zem_contact_reborn 4.0.3.20

You need to enable/install the zem_contact_lang plugin to get rid of the error.


Greetz [Axel]

Offline

#1106 2011-10-11 12:12:37

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

Re: zem_contact_reborn 4.0.3.20

zem_contact_lang is already installed and enabled

edit// I just deleted and re-installed zem_contact_lang to no effect – the two errors remain

switching to debug mode gives the following:

A problem occured while loading the plugin: zem_contact_reborn -> Warning: Please contact support about failure on line 653

textpattern/lib/txplib_misc.php:653 load_plugins()
textpattern/publish.php:118 load_plugins()
index.php:44 include()

The above errors were caused by the plugin:zem_contact_reborn

A problem occured while loading the plugin: pap_contact_cleaner -> Warning: Please contact support about failure on line 653

textpattern/lib/txplib_misc.php:653 load_plugins()
textpattern/publish.php:118 load_plugins()
index.php:44 include()

The above errors were caused by the plugin:pap_contact_cleaner

Last edited by wolfcry911 (2011-10-11 12:37:08)

Offline

#1107 2011-10-11 12:50:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,388
Website GitHub Mastodon Twitter

Re: zem_contact_reborn 4.0.3.20

did you try disabling pap_contact_cleaner?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

#1108 2011-10-11 13:09:28

[Axel]
Member
From: Switzerland/Denmark
Registered: 2007-07-26
Posts: 65
Website

Re: zem_contact_reborn 4.0.3.20

Both plugins work together (I tried it) I only get the error if I disable zem_contact_lang. Are you using the latest version of zem_contact_lang? Try reinstalling zem_contact_reborn.


Greetz [Axel]

Offline

#1109 2011-10-11 20:11:44

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

Re: zem_contact_reborn 4.0.3.20

I’ve now deleted and reinstalled all three plugins using the most current version (which I believe I had before anyway).
I get the same errors. I’m sure they work together as I have other sites with the same combination. I’ve even disabled all other plugins but these three and still receive the error – I’m baffled.

colak, yes I tried disabling pap_contact_cleaner which clears that error but the zem_contact_reborn error continues.

Last edited by wolfcry911 (2011-10-11 20:25:10)

Offline

#1110 2011-10-12 01:15:37

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

Re: zem_contact_reborn 4.0.3.20

I just found a thread by someone with a similar problem with the same host. Apparently they’re running a module called strainer which blocks some PHP functions. I’ll contact my host and hopefully post a resolution soon.

Edit// Confirmed – it was a module the host (A2hosting.com) was using. They disabled it and now everything is running normal. Thanks for your help.

Last edited by wolfcry911 (2011-10-12 11:54:08)

Offline

Board footer

Powered by FluxBB