fakeoutdoorsman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: TinyMCE is not definedI got it to work after editing tiny_mce_gzip.php. The PHP function “realpath” wasn’t working on the host’s server.
Open tiny_mce_gzip.php.
Find all instances of:
realpath(
Replace with
realpath2(
After:
@ require('../../../wp-config.php');
Add:
function realpath2($path)
{
////check if realpath is working
if (strlen(realpath($path))>0)
return realpath($path);///if its not working use another method///
$p=getenv(“PATH_TRANSLATED”);
$p=str_replace(“\\”,”/”,$p);
$p=str_replace(basename(getenv(“PATH_INFO”)),””,$p);
$p.=”/”;
if ($path==”.”)
return $p;
//now check for back directory//
$p=$p.$path;$dirs=split(“/”,$p);
foreach($dirs as $k => $v)
{if ($v==”..”)
{
$dirs[$k]=””;
$dirs[$k-2]=””;
}
}
$p=””;
foreach($dirs as $k => $v)
{
if (strlen($v)>0)
$p.=$v.”/”;
}
$p=substr($p,0,strlen($p)-1);if (is_dir($p))
return $p;
if (is_file($p))
return $p;return false;
}
Find:
$tinymce = file_get_contents(realpath("tiny_mce.js"));
Replace with:
$tinymce = file_get_contents("tiny_mce.js");
Forum: Fixing WordPress
In reply to: TinyMCE is not definedI downloaded todays nightly build and I am still having problems with tinymce not loading.
Forum: Everything else WordPress
In reply to: Blog Spamming and GoogleI’m wondering how the spam machines are actually finding wordpress sites. Mine wasn’t targeted until the day I reinstalled and redesigned the whole thing using the Oct. 18 nightly. The former install was using a 1.3 nightly version as well. Maybe they do a search for “powered by wordpress” or somehow intercept notifications to site update services. Anyone have any ideas?
Forum: Everything else WordPress
In reply to: Blog Spamming and GoogleOh, ok. Thanks for the clear up. Duh…
Forum: Everything else WordPress
In reply to: Blog Spamming and GoogleBeel…I don’t get you you mean.