TinyPortal's use of the FCK editor is not compatible with other mods. This simple change to TPortalAdmin.php fixes the incompatibility:
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "400";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
<script language="JavaScript" type="text/javascript">
function FullEditor(BodyName)
{
var FCKContent = new FCKeditor(BodyName) ;
FCKContent.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKContent.ToolbarSet = "Default"
FCKContent.Height = "400";
FCKContent.Width = "100%";
FCKContent.ReplaceTextarea() ;
}
function SmallerEditor(BodyName)
{
var FCKComment = new FCKeditor(BodyName) ;
FCKComment.BasePath = "' . $boardurl . '/FCKeditor/" ;
FCKComment.ToolbarSet = "Default"
FCKComment.Height = "400";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';
(While you're at it, consider removing the useless "language" attributes.
Replace the same code in TPmodules.php, it's the same except for the tabs.
What a nice misleading title.... ::) :down:
I don't really see the point, the FCKeditor is already on root level...and what other mods?
Any mod that rewrites URLs. Using absolute URLs just guarantees that it will work.
It's not very big, it's just changing "FCKeditor/" to "' . $boardurl . '/FCKeditor/" four times. It won't break anything.
Worked for me. (Got rid of an FCKeditor not found on server problem).
Thanks again Dannii
Worked for me too, thank you Dannii !! :)
Added to TP 1.0.5 beta 2
Worked for me too, thank you Dannii
Thank you, Bloc
Worked for me. I installed SMF Pretty URLs 0.9 mod and I could no longer use the editor. But this fixes it.
Note that FCKeditor isn't part of Tinyportal v1.0 beta3 anymore.