Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#157 2007-05-03 16:49:58

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

Re: zem_contact_reborn 4.0.3.19 (old version)

@rudd
It seems that ZCR don’t send values keep by php session.
I use this kind of code :

<txp:php>
if (isset($_POST['choice'])) {
$_SESSION['choice'] = $_POST['choice'];
echo '<txp:zem_contact_text label="Your choice :" default="'.$_SESSION['choice'].'" name="choice" />';
} else {
if (!empty($_SESSION['choice'])) {
echo '<txp:zem_contact_text label="Your choice :" default="'.$_SESSION['choice'].'" name="choice" />';
} else {
echo '<txp:zem_contact_text label="Make a choice :" default="'.$_SESSION['choice'].'" name="choice" />';}
}</txp:php>

Have you any idea to send this values within ZCR?
Tks lot for your answer.
Cheers,

Last edited by Pat64 (2007-05-03 16:51:44)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#158 2007-05-03 17:22:05

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

There’s no need to use a session, because:
  • if the form is submitted succesfully, the form variables should not longer be stored.
  • if an error does occur, the user gets a chance to alter form input, so whatever was stored in $_SESSION would be over-written with the new form input.

When $_POST is empty, there shouldn’t be anything ZCR related in $_SESSION either, so wherever $_SESSION is used, you can use $_POST instead and get the same result.

PS. the value of the “default” attribute should be HTML escaped.

Offline

#159 2007-05-03 21:44:28

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: zem_contact_reborn 4.0.3.19 (old version)

Hello.

I have a multi-author blog: it would be great for me an hack which allows Zem Contact Reborn to operate with different e-mail address. Example, I read the post of Author A and I want to contact him: I go to the contact form, write my request, put subject, name and address and, with a drop down menu (with Author A, B, C… and so on, names), choosing the right recipient can I send him the e-mail.
Even a “Send to all” option would be useful for the authors themselves.

I think this would be useful but I don’t know how much is difficult to do.

Last edited by candyman (2007-05-03 21:48:24)

Offline

#160 2007-05-03 22:53:55

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

candyman, read the plugin help, you’ll find how to do this in the ‘advanced examples’ section of the plugin help.

Offline

#161 2007-05-08 09:36:47

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

Re: zem_contact_reborn 4.0.3.19 (old version)

It would be really nice this plugin could get a seperate home with all the info in one place and some samples too. Isn´t here anybody around who likes to set up a zem_contact_reborn Home :)

Offline

#162 2007-05-08 10:22:53

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

alexandra, such a home already exists. It’s called the plugin help. At least, that’s where I’ve tried to put all the relevant information and examples. If it needs improvements, feel free to make suggestions. Using the plugin help has the advantage that it’s contents are always in sync with the plugin itself and there’s no risk of it disappearing.

Last edited by ruud (2007-05-08 10:30:30)

Offline

#163 2007-05-08 11:10:26

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

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud, i was thinking of a website with some samples and some docu concerning the plugin. I am not sure newbies find this plugin easily. parts of the docu i do not understand myself. i am no programmer and my english is …sigh.. somehow often not sufficient to understand right away. However, thanks so much for all the work you put in and of course for all your other efforts on coding txp :)!!

Offline

#164 2007-05-08 17:23:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Asking questions here and/or pointing out the parts that can be improved, that really does help to improve the documentation. For me it’s sometimes hard to see what the user sees as difficult, so that’s why getting feedback from users is important.

Writing documentation is a lot of work especially for plugins as big as ZCR, so instead of duplicating effort, I’d like to focus on improving what’s already there. If the plugin help is too difficult (compared to TextBook), I think that’s a bug… and bugs should be fixed ;)

I can make the plugin documentation available on the same website that hosts the plugin download.

Offline

#165 2007-05-08 17:43:46

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

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud schrieb:

I can make the plugin documentation available on the same website that hosts the plugin download.

I think that is a step forward. There is documentation on Stuarts site but i do not know if this is still up to date. However a centrale place for the plugin with some docu and samples would make life easier. I could link it from the german txp resource blog instead of linking all those different places.

Offline

#166 2007-05-10 07:50:22

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

Re: zem_contact_reborn 4.0.3.19 (old version)

Started experimenting with this plugin.. It was about time as I remember its different incarnations since… forever.
I remember that I saw somewhere in this forum that there is an add on to this to protect from spam. Maybe I’m wrong.. Not sure what to search for…


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

Offline

#167 2007-05-10 08:00:37

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: zem_contact_reborn 4.0.3.19 (old version)

pap_contact_cleaner, an orphaned plugin.

Offline

#168 2007-05-17 00:19:18

Bronwyn
New Member
Registered: 2007-05-17
Posts: 5

Re: zem_contact_reborn 4.0.3.19 (old version)

I’m setting up a Textpattern site for the first time, and have tried to install this plugin, but get a blank page when I should be getting the screen that shows me the code and the helpfile. I’ve tried a few different browsers, but have not tried another computer. (I don’t have access to a second webhost.)

Any idea what is wrong?

Offline

Board footer

Powered by FluxBB