Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-02-28 02:56:31
- cziggurat
- Archived Plugin Author
- Registered: 2004-12-17
- Posts: 8
[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
Re: [archived] czg_if_comment_cookies
Nice idea, worth to try out. Thanks!
Offline
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
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
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.
Offline
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
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
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
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
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
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
#10 2006-10-01 00:09:14
- playpiggy
- Member
- From: Changchun, China
- Registered: 2004-11-23
- Posts: 55
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
Re: [archived] czg_if_comment_cookies
I just read my post again and realised it didn’t make as muh sense as I thoght. Does anybody have a copy of the plug in code? I was offering to host it. I don’t actually have it.
Offline
Re: [archived] czg_if_comment_cookies
This plugins isnt working with TxP 4.0.4 and higher. Anyone have another plugins or method to do same function like this?
Offline