Statistics: Posted by msafi — September 1st, 2011, 9:28 am
Statistics: Posted by Cristián Lávaque — August 31st, 2011, 8:27 pm
Statistics: Posted by Jason Caldwell — August 30th, 2011, 9:26 pm
Statistics: Posted by Cristián Lávaque — August 30th, 2011, 6:45 pm
That's a great question. There isn't one that I'm aware of, but if you are, please let me know! If anyone else reads this and has suggestions, I'd be appreciative. To my knowledge, HTTP_HOST is the only environment variable available for testing in this regard. s2Member currently scans for 127.0.0.1 at the beginning, and localhost anywhere in the HTTP_HOST environment variable, as it's only way of auto-detecting localhost installations. Anything else must be specified in the /wp-config.php file with define("LOCALHOST", true); in order for s2Member to know.msafi wrote:
I just wanted to say s2Member is brilliant! Thanks a lot for it.
Now, I just wanna ask, isn't there a way for the script to know when it's being run on a localhost, whose domain is other than 'localhost' and notify the user about the required wp-config.php edits?
It wasn't easy landing on this thread and finding the solution that Jason posted.
Statistics: Posted by Jason Caldwell — August 30th, 2011, 5:32 pm
Statistics: Posted by msafi — August 30th, 2011, 2:34 pm
Statistics: Posted by s2pabs — March 24th, 2011, 6:14 pm
define("LOCALHOST", true);
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 11:40 pm
Statistics: Posted by s2pabs — March 23rd, 2011, 10:59 pm
Statistics: Posted by Jason Caldwell — September 7th, 2010, 5:12 pm
Statistics: Posted by aendrew — September 3rd, 2010, 3:40 pm
Statistics: Posted by Liz Ness — August 31st, 2010, 8:45 pm
Statistics: Posted by Jason Caldwell — August 31st, 2010, 6:18 pm
Statistics: Posted by Liz Ness — August 31st, 2010, 2:30 pm
Statistics: Posted by Elizabeth — August 31st, 2010, 10:44 am
Statistics: Posted by aendrew — August 30th, 2010, 9:48 pm