Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by Michael Munger
at 2024-08-03 21:45:48
Point:500 Replies:8 POST_ID:828695USER_ID:11410
Topic:
JavaScript;jQuery;PHP Scripting Language
If a user came to my page three months ago, and +1'd it, then they returned, I want to treat that user differently than someone who has never +1'd that page. (Give them a different welcome).
How can you tell?
How can you tell?
Author: Michael Munger replied at 2024-08-10 23:34:57
This question is basically continued here:
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28206791.html
Additional comments are welcomed from you all.
http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28206791.html
Additional comments are welcomed from you all.
Author: Michael Munger replied at 2024-08-10 23:32:19
Thanks for the API docs, but I had already read them.
We independently came to the same conclusion: set a cookie. So, I am accepting your answer since, ultimately, it was the path I chose.
We independently came to the same conclusion: set a cookie. So, I am accepting your answer since, ultimately, it was the path I chose.
Accepted Solution
Expert: leakim971 replied at 2024-08-04 11:38:45
500 points EXCELLENT
I think google don't want to expose this to you...
The https://developers.google.com/+/web/+1button/
So are you OK to set a cookie?
http://jsfiddle.net/8Hq2K/1/
The https://developers.google.com/+/web/+1button/
So are you OK to set a cookie?
http://jsfiddle.net/8Hq2K/1/
window.onload = function() { var params = { callback: function(j) { alert("button is " + j.state); cookieExpire = new Date(); cookieExpire.setYear(cookieExpire.getFullYear() + 3); // save this for 3 year ! document.cookie = "GooglePlus=" + j.state + "; expires="+ expireDate.toGMTString() + ";"; // j.state is set to "on" or "off" }, onready: function() { alert("no infos, alas!"); } } gapi.plusone.render("gp1", params);} 1:2:3:4:5:6:7:8:9:10:11:12:13:14:
I don't think you need help to read cookie on the server side.
Author: Michael Munger replied at 2024-08-04 08:14:58
There has to be something like this....
http://stackoverflow.com/questions/9163936/determine-if-a-user-has-liked-my-page-using-facebook-php-sdk
But for Google...
http://stackoverflow.com/questions/9163936/determine-if-a-user-has-liked-my-page-using-facebook-php-sdk
But for Google...
Expert: Ray Paseur replied at 2024-08-04 04:35:36
Conceptually, this article shows the idea.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_3314-How-to-Show-an-Introductory-Web-Page-Once-Using-PHP.html
In practice you would need some kind of hook to intercept the +1 action and set the cookie.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_3314-How-to-Show-an-Introductory-Web-Page-Once-Using-PHP.html
In practice you would need some kind of hook to intercept the +1 action and set the cookie.
Expert: duncanb7 replied at 2024-08-03 21:59:28
I think you need to save all your coming visitor with their last login date in one
area or database, and then compare it with the current access date and
send the new message of "welcome" if he met the re-send "new welcomoe""
requirement , i think you need php coding
But first thing, he has registrated into your sql database and get your login name approved by you
area or database, and then compare it with the current access date and
send the new message of "welcome" if he met the re-send "new welcomoe""
requirement , i think you need php coding
But first thing, he has registrated into your sql database and get your login name approved by you
Author: Michael Munger replied at 2024-08-03 21:52:45
Sorry. I was referring to Goggle's +1 button.
+1'd it = clicked the Google +1 button.
+1'd it = clicked the Google +1 button.
Expert: duncanb7 replied at 2024-08-03 21:48:40
What isthat mean ", and +1'd it".
Could you re-write it clearly with also some gramma ?
Could you re-write it clearly with also some gramma ?
If a user came to my page three months ago, and +1'd it, then they returned, I want to treat that user differently than someone who has never +1'd that page. (Give them a different welcome).
How can you tell?
How can you tell?