The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
4answers
6k views

How to validate a user from ouside wordpress/php?

I'm working on an ajax application that will be embedded in a wordpress page. The ajax app exchanges data with servlets running on tomcat. Now the servlets need a way to determine if a request comes ...
0
votes
1answer
1k views

Getting a person's username from a wordpress cookie

My friend has a code that will allow users to receive a special key to gain access into into the closed/open beta event for any game they select. When a person is logged in, they can click on a link ...
1
vote
1answer
216 views

Wordpress cookies

I am trying to set a cookie on click via setcookie('mycookie', 1, time()+60*60*24; but I can not seem to get it working . If i click the button - when I check my cookies, it is not there .
0
votes
2answers
240 views

How to Collect Keyword and Search Engine Data on Webforms?

We have a contact form using Contact Form 7 on our wordpress site. We would like to be able to attach any information about where the user came from: keyword search is the #1 item of interest. We ...
0
votes
1answer
216 views

Trying to set a cookie based on $_POST parameter

I'm doing a bit of language detection that first checks the $_SERVER['HTTP_ACCEPT_LANGUAGE']. If the user wants to override the choice of language, there's a select list, where they can choose ...
1
vote
1answer
2k views

Set a cookie in WordPress, using a select form and Jquery

Hi Guys and thank you in advance for giving me some attention with this. I have this code in wordpress that I just can't get right. I have the US states in a drop-down form. When the user chooses an ...
2
votes
1answer
917 views

Set cookie then immediantly refresh the page

I wrote a small WordPress plugin (mobileesp-for-wordpress) that will redirect mobile users to the mobile site. It's based on mobileesp. The plugin itself works fine the problem is I added an option ...
0
votes
2answers
1k views

How to force “remember me” users to login again?

My question is how to force the users that are auto-logged in because they previously checked "remember me" to log in again? It may be something with cookies, but is there anything I can ...
-2
votes
1answer
966 views

Is it possible to tell if a user is logged into Wordpress from looking at the cookies which are set?

Is it possible to tell if a user is logged into Wordpress from looking at the cookies which are set on a site? If not, how could I add hooks to the login success and logout actions and set my own ...
0
votes
2answers
182 views

Cookies in template

I need to show some part of the page only once, based on cookies. The main problem that I can set cookies only in plugin, hooking init action. I've read 20 pages of google, this site, asked 2 forums, ...
1
vote
2answers
155 views

How does Wordpress remember which editor is being used?

Hey so I am trying to determine how Wordpress remembers which editor is being used for a particular post (HTML or Visual Editor (tinyMCE)). When you write a post, and then come back, it goes to the ...
0
votes
1answer
1k views

Why doesn't the “Remember Me” checkbox work for me on a live website? Only works on a local server environment

If I check "Remember Me", and then log out, my login and password are not remembered. I've tested this on many WordPress sites running WP 3.2.1 on a server here in NZ and also on a completely ...
2
votes
2answers
2k views

Wordpress Redirect based on the prescence of a cookie

I have a tricky situation.... I'd like to check for a cookie. If it doesn't exist then then redirect to an internal wordpress page, and set a cookie. And then carry on browsing the site. But i get ...
4
votes
1answer
329 views

How to detect a user that is not logged in

Is there an easy way to see if a user - someone how has logged in in the past but is not currently logged in - is visiting my site? I was thinking that checking if $COOKIE[TEST_COOKIE] is set, but I ...
2
votes
3answers
7k views

Setting custom cookies in Wordpress

I am trying to set cookies to re-route returning users to my a specific page within my Wordpress site. I'd like some advice with these 2 things: Where in the Wordpress php files should cookies be ...
3
votes
2answers
379 views

Allow guests to save favourite pages?

We're creating a site where we want guest users to add pages to a favourites list (post IDs), so they can print or email their selection if they want. What would the best way be to do this in ...
1
vote
1answer
547 views

Show greetings on first time visitors?

This seems pretty straightforward using cookies in straight HTML. In wordpress, how do I do this? AFAIK, wordpress only provides cookies functions for logging/logged in users. How about when I don't ...
3
votes
1answer
1k views

How to transition cookies from .subdomain.domain.com to .domain.com with minimal impact on users?

I need to extend the cookies of a subdomain.domain.com to all of the domain.com's subdomains (.domain.com in cookie terms). I am trying to minimize the impact of this transition. It seems that ...
0
votes
2answers
343 views

WordPress Plugin: Where should I put my cookies for cURL?

Currently creating a plugin with cURL and I need a place that will work for most WordPress servers (Unix or Windows) to store my cookie file. Anyone have a suggestion or best practices? I've been ...
0
votes
2answers
545 views

Having trouble setting / modifying cookies

I'm working on the admin interface for a plugin I'm developing, and it involves collapsible layouts. I want the state of the layout to be remembered when the page is refreshed, so I'm trying to use ...
1
vote
1answer
110 views

Author Tracking Code!

I need help with coding this piece. Basically i want with someone click on my author page. It stored a cookie of that author name and email. I want the cookie to stay in place untill the person close ...
5
votes
1answer
465 views

Modifying the way WP sets cookies

I'm trying to create a custom plugin that will change the way that wordpress names its cookings. Specifically, I want to write my own version of wp_user_settings(). I know I probably shouldn't hack ...
3
votes
3answers
5k views

How to set custom cookies before output

What's a surefire way to check/set cookies before the php headers are sent? Is there an action or filter that would be the best place to hook a setcookie() function?