2005-02-28 02:56:31

cziggurat
Plugin Author
alpha

[archived] czg_if_comment_cookies

Notice: This thread is archived, this functionality is available with current txp versions.

**********************************************************

Two tags.

<code><txp:if_cookie></txp:if_cookie></code> simply returns its contents if the user has a TXP cookie remembering their comment details.

<code><txp:if_no_cookie></txp:if_no_cookie></code> returns its contents if the users does not have a TXP cookie. Probably redundant what with this new txp:else business, but there it is anyway for you to use.

Download it here.
Or if that doesn’t work, download it here

Used it to great effect on a blog to produce the 1976-esque effect of shunting all the inputs aside except the message one when the user has a cookie to deal with it.

Tested with RC3.

[2007-11-24, Ruud: added new download link]

Last edited by cziggurat (2005-02-28 04:39:45)

Offline

 

2005-02-28 10:39:07

ChrisJ
Member
delta
Real name: Chris
From: Vienna, Austria
Known languages: en, de, pl
Website

Re: [archived] czg_if_comment_cookies

Nice idea, worth to try out. Thanks!

Offline

 

2005-08-03 12:45:17

kennethlove666
Member
zêta
Real name: Kenneth Love
From: arkansas
Website

Re: [archived] czg_if_comment_cookies

I keep getting the following error:

Warning: Missing argument 2 for if_cookie() in /home/l0vek3/public_html/eyeheartzombies-com/textpattern/lib/txplib_misc.php(429) : eval()‘d code on line 2

Any ideas? Yes, I have the closing tags for each instance of if_cookie.


Listen to Kenneth

Offline

 

2005-08-03 14:54:06

creativesplash
Member
thêta
Real name: Vasanth Vasudevan
From: Coimbatore, India
Website

Re: [archived] czg_if_comment_cookies

Which version of TXP are you using? Have you set the “production status” in the preferences tab to “live”?


“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

 

2005-08-03 17:17:12

michaelkpate
Moderator
lambda
Real name: Michael K. Pate
From: Avon Park, FL
Known languages: English
Website

Re: [archived] czg_if_comment_cookies

I just tried it and it looked fantastic, but …

How do you pass the required values through the form without displaying them? I ended up on a plain white page that said: Please enter your name

Most of what I know about forms I learned from reverse-engineering those of someone else.


Textpattern Community Member since 2004-02-23 | World Headquarters

Offline

 

2005-08-03 22:29:30

thebombsite
Plugin Author
omega
Real name: Stuart
From: Exmouth, England
Known languages: Doh!
Website

Re: [archived] czg_if_comment_cookies

If you mean what I think you mean Michael you need to leave the 3 info boxes in the form but hide them with display:none;


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

2005-08-04 18:01:04

kennethlove666
Member
zêta
Real name: Kenneth Love
From: arkansas
Website

Re: [archived] czg_if_comment_cookies

rc5, and when i set to live the error goes away (obviously), but i’d rather the error not be there at all. :)


Listen to Kenneth

Offline

 

2005-08-04 22:45:50

thebombsite
Plugin Author
omega
Real name: Stuart
From: Exmouth, England
Known languages: Doh!
Website

Re: [archived] czg_if_comment_cookies

A lot of plug-ins are throwing notices or warnings at the moment. They’ve been there for a while. It’s just that since RC4 the error reporting has been made visible. I doubt much will get done until 1.0 is available, then all the plug-in authors might get into a bit of updating. :)


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

2006-09-30 20:24:30

fineartdavid
Member
beta
Real name: David Owens
From: Brixton, London, UK
Website

Re: [archived] czg_if_comment_cookies

Is anybody able to mirror the plugin code? The website which is linked to is down due to the bandwidth being exceeded. I’m happy to put it somewhere for you if you like.

Offline

 

2006-10-01 00:09:14

playpiggy
Member
delta
Real name: XL Pan
From: Changchun, China
Known languages: cn, en

Re: [archived] czg_if_comment_cookies

fineartdavid wrote:

Is anybody able to mirror the plugin code? The website which is linked to is down due to the bandwidth being exceeded. I’m happy to put it somewhere for you if you like.

I think you can put it on TextBook.


Welcome to the REAL World…

Offline

 

Powered by FluxBB