Posts

Showing posts from June, 2016

How to fix "Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress"

Image
TL;DR - Check your cookie content in developer tool (Chrome) or Firebug (FF), see if your "cookie" is "httponly". - If yes, somewhere in your Apache config set this: Header set Set-Cookie HttpOnly;Secure Comment this (Don't run this line) and restart your server. Why it occurs? I encountered the line below when I login to WP 4.5.3: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress The problem:  your setcookie() statement in wp-login.php cannot produce a cookie WP needs, even if the function returns "true".  As below (Click to enlarge): If your developer tool shows that, it means that your web server is securely don't allow cookie to be transferred with the web protocal, result in PHP not able to create the cookie WP wants. Now if it is your situation, you just need to disable this function in your web server, and it should be fine (at least it works for me). Or you can chang

How to fix fancy box/Easy Fancybox scroll not work in mobile

Hi The Problem: If you are working on EasyFancybox or just normal fancybox JS , and you have this problem: In your iOS device when a popup is opened, if the page is too wide and your pop up cannot show all, when user taps and drag the screen, the background will be dragged instead of the pop-up content. To fix, add this in your CSS: -webkit-overflow-scrolling: touch !important; So which element should you apply it to? In Easy Fancybox, you will see these 2 lines: <div id="fancybox-content"........>         <iframe id="fancybox-frame" name............... Apply to fancybox-content, not fancybox-frame So in your CSS, it should be: #fancybox-content{         overflow: scroll !important;         -webkit-overflow-scrolling: touch !important; } It works for me, and I hope it helps someone also.

Mike Koenigs/Jordan Belfort Interview 16 Jun 2016

Notes: 5 steps to create your own book: Preparation: Interviewing other expert or become an expert.   Is there a market that you want to write? Does the audience has money? Did people passionate about the topic? Come up 10 key questions to ask yourself or other experts Perform: Title, Subtitle, what is it about, what is the content gonna be Ask what is the most frequent questions you are getting asked about ____? Answer that question, record your response = chapter 10 questions > 10 chapters publish promote profit

[Solved] jQuery: JSONP and JSON: Uncaught SyntaxError: Unexpected token :

This link is, by far, the clearest explanation on JSONP and JSON. http://stackoverflow.com/questions/7936610/json-uncaught-syntaxerror-unexpected-token Hope it helps someone.