ideadude
Forum Replies Created
-
Forum: Plugins
In reply to: More on Setting Cookie in HeadOk. I’ve got it working for me. It seems like the problem was on the retreaval of the cookie, not the setting of it. I changed this line:
$c_password = $HTTP_COOKIE_VARS[“Winelog_Password”];
to
$c_password = $_COOKIE[“Winelog_Password”];
Forum: Fixing WordPress
In reply to: wordpress cookies and skins?Ok. I’ve got it working for me. It seems like the problem was on the retreaval of the cookie, not the setting of it. I changed this line:
$c_password = $HTTP_COOKIE_VARS[“Winelog_Password”];
to
$c_password = $_COOKIE[“Winelog_Password”];
Forum: Plugins
In reply to: More on Setting Cookie in HeadMy guess is that Dave’s problem was more with the “localhost” part of his call than the “/” part.
EDIT: On second thought, that doesn’t make sense.
Forum: Plugins
In reply to: More on Setting Cookie in HeadColdForged, I have a similar problem. Simplifying the setcookie code didn’t work for me.
According to the setcookie manual: “If [the path is] set to ‘/’, the cookie will be available within the entire domain.” https://us3.php.net/setcookie
So something like this should work, no?
setcookie(“name”, “value”, time()+3600*24*30, “/”, “.domain.net”, 0);
But my code, when included from a wp page, doesn’t get the cookie value. (It does detect the cookie through the isset function though.)
I tried these two changes, which didn’t seem to work either:
setcookie(“name”, “value, time()+3600*24*30);
and
setcookie(“name”, “value”, time()+3600*24*30, “/”, “.domain.net”, 0);
setcookie(“name”, “value”, time()+3600*24*30, “/blog”, “.domain.net”, 0);Any ideas?
Forum: Fixing WordPress
In reply to: wordpress cookies and skins?Also having the same problem :). It seems like the code running in the WP folder is detecting the cookie but doesn’t get the correct value. I’ll post if I find an answer.
Forum: Plugins
In reply to: pagination like flickr and diggI’ll have to checkout those plugins. If you think you could do it custom, I just posted a demo for this the other day. You can see it here:
https://www.strangerstudios.com/sandbox/pagination/diggstyle