Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#256 2007-07-04 13:59:57

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)

Use the normal download URL, but add ?gzip at the end and you’ll have a compressed, small plugin that will install on your webhost.

Offline

#257 2007-07-04 17:45:05

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: zem_contact_reborn 4.0.3.19 (old version)

Hello,

I am having the hardest time installing this plugin. I’m running 4.0.3. Initially when I would paste the text into the box and hit “upload,” I would immediately get a 404 error. So I tried the compressed version. Still no go. Grasping at straws, I made a couple of small changes in my .htaccess file. Then I was able to upload the plugin and advance to the preview page. Relief! But when I hit “install,” I got the 404 error again. Host is vervehosting. post_max_size=8M.

Anyone have any idea what could be tripping me up?

Here’s my .htaccess file as it now stands:
@DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteBase /
RewriteRule ^(.*) /index.php
</IfModule>

#php_value register_globals 0@

The changes I just made were uncommenting the first line and adding the forward slash before “index.php”.

Offline

#258 2007-07-04 17:50:44

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)

I believe compressed plugins weren’t supported yet in 4.0.3. Upgrading to 4.0.5 is highly recommended (also fixes some security problems).

ferenczi, do you also have problems installing other plugins at the moment?

Last edited by ruud (2007-07-04 17:51:45)

Offline

#259 2007-07-04 17:54:50

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: zem_contact_reborn 4.0.3.19 (old version)

Thanks for the prompt reply, Ruud. Yes, I should upgrade, silly me.

No problems with any other plugins.

But I’ll upgrade and then report back.

Offline

#260 2007-07-04 18:21:24

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: zem_contact_reborn 4.0.3.19 (old version)

Upgrade seemed to go without a hitch in most respects; but now I get: “Fatal error: Call to undefined function: assert_int() in /home/path/to/txp/include/txp_plugin.php on line 265”

My PHP skills are not so hot. Forgive me if someone else got a similar error and mentioned it previously; I did go through all 26 pages of this thread but things are a bit jumbled in my mind right now.

Any idea what could be generating this error?

Last edited by ferenczi (2007-07-04 18:21:55)

Offline

#261 2007-07-04 18:28:31

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

Re: zem_contact_reborn 4.0.3.19 (old version)

Please verify the existence and up-to-dateness of /textpattern/lib/txp_misc.php.

Offline

#262 2007-07-04 18:57:49

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: zem_contact_reborn 4.0.3.19 (old version)

Bingo, Robert. You are brilliant. Thank you. All appears to be well now.

Offline

#263 2007-07-05 00:55:14

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Hi!

I hope this isn’t a too dumb question:

Why the values for the value attribute in radio inputs are those weird numbers?

<input type="radio" checked="checked" name="zemDoSubscribe" class="zemRadio zemDoSubscribe" id="q0bcdc0a16cf7ae26e0a51f5655d5e5ee" value="q0bcdc0a16cf7ae26e0a51f5655d5e5ee"/> <label class="zemRadio zemDoSubscribe" for="q0bcdc0a16cf7ae26e0a51f5655d5e5ee">Si, quiero!</label>
<input type="radio" name="zemDoSubscribe" class="zemRadio zemDoSubscribe" id="qce57c9edb3e7d850eb6bee589a4648bf" value="qce57c9edb3e7d850eb6bee589a4648bf"/> <label class="zemRadio zemDoSubscribe" for="qce57c9edb3e7d850eb6bee589a4648bf">No</label>

This is the relevant code in my ZCR form:

<txp:zem_contact_radio label="Si, quiero!" name="zemDoSubscribe" checked=1 group="suscribir" />
<txp:zem_contact_radio label="No" />

I’m trying to use the ZCR together with the Postmaster plugin.
I think I just would like the values to be “yes” or “no”.

Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#264 2007-07-05 01:29:31

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

Re: zem_contact_reborn 4.0.3.19 (old version)

Julián, have you read my post from yesterday and Ruud’s replies? Maybe they’re helpful.


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

Offline

#265 2007-07-05 07:32:32

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)

maniqui wrote:

Why the values for the value attribute in radio inputs are those weird numbers?
I’m trying to use the ZCR together with the Postmaster plugin.
I think I just would like the values to be “yes” or “no”.

Is the Postmaster plugin using the $_POST array directly instead of using the $zem_contact_values array?

Offline

#266 2007-07-10 07:13:18

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: zem_contact_reborn 4.0.3.19 (old version)

I’m interested in using the ZCR API to develop a companion plugin that stores contact details in a cookie and reads them back out again into the appropriate form fields. I’ve figured out how to grab the data and set the cookie, but I’m not clear on whether the fields can be repopulated through the API. It doesn’t look like it works this way.

Would the repopulation of the fields need to be handled with JavaScript, or is there a server-side way that I’m missing?

Thanks in advance for your help.

Offline

#267 2007-07-10 07:49:06

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)

You’d have to do this client-side.

Offline

#268 2007-07-12 02:59:12

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud wrote:

You’d have to do this client-side.

Thanks for the info.

Another question: Could a plugin using the ZCR API call the zem_contact_secret() function in a way that allows the value of $thing to show up in the e-mail message?

Offline

#269 2007-07-12 08:45:45

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)

No, but you can use zem_contact_store() for that.

Offline

#270 2007-07-12 16:19:04

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: zem_contact_reborn 4.0.3.19 (old version)

So I could also use zem_contact_store() to remove form labels and values from a message, right?

Edit: From the tests I’ve conducted with zem_contact_store(), apparently not.

Last edited by Logoleptic (2007-07-12 20:24:38)

Offline

Board footer

Powered by FluxBB