Page 1 of 1

Funky Image References

PostPosted: June 5th, 2010, 10:51 pm
by sun4tzu
I've installed this plugin and everything looks just fine with one exception. On the s2Member Information page, the images on the right are missing. In viewing the source, I get references such as "http://www.myURL.com/wp-contentC:\Inetpub\vhosts\myURL.com\httpdocs\wp-content\plugins\s2member/images/brand-updates.png". It's fairly obvious that the "C:\Inetpub\vhosts\myURL.com\httpdocs\wp-content" portion of the reference is incorrectly inserted but why and how do I fix it?

Re: Funky Image References

PostPosted: June 23rd, 2010, 4:00 pm
by Jason Caldwell
Sorry for my extremely delayed response.
s2Member has NOT been tested on a Windows platform yet, only on Unix/Apache.
Thank you VERY much for reporting this though.
I'll be checking in on Windows compat soon, and this helps to get feedback.

My guess is lines 26 - 29 inside /s2member/includes/syscon.inc.php
Code: Select all
/*
Determine the full url to the directory this plugin resides in.
*/
$GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir_url"] = WP_CONTENT_URL . /* URL to the plugin directory. */
preg_replace ("/^(.*?)(\/" . preg_quote (basename (WP_CONTENT_DIR), "/") . ")/", "", dirname (dirname (__FILE__)));

Re: Funky Image References

PostPosted: June 23rd, 2010, 5:46 pm
by sun4tzu
Thanks Jason. I'm on holiday at the moment so I don't have access to my code (and my wife doesn't know I'm checking my email) so I'll see if I can experiment with those lines when I get home.

Re: Funky Image References

PostPosted: June 23rd, 2010, 10:37 pm
by Jason Caldwell
No problemo. Thanks for your patience with us.