TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: Dannii on May 26, 2008, 02:25:41 PM

Title: [bugtracker] Tinyportal not compatible with other mods
Post by: Dannii on May 26, 2008, 02:25:41 PM
TinyPortal's use of the FCK editor is not compatible with other mods. This simple change to TPortalAdmin.php fixes the incompatibility:

Code (find) Select
 <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>';

Code (replace) Select
 <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.
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: eldacar on May 26, 2008, 02:53:37 PM
Replace the same code in TPmodules.php, it's the same except for the tabs.
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: IchBin on June 01, 2008, 06:43:37 AM
What a nice misleading title....  ::)  :down:
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: bloc on June 01, 2008, 12:33:35 PM
I don't really see the point, the FCKeditor is already on root level...and what other mods?

Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: eldacar on June 01, 2008, 05:41:13 PM
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.
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: OblivionMage on June 03, 2008, 11:22:00 PM
Worked for me. (Got rid of an FCKeditor not found on server problem).

Thanks again Dannii
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: LoboSolitario on June 06, 2008, 07:26:44 AM
Worked for me too, thank you Dannii !! :)
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: bloc on June 20, 2008, 09:25:35 AM
Added to TP 1.0.5 beta 2
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: LoboSolitario on June 20, 2008, 05:01:58 PM
Quote from: Bloc on June 20, 2008, 09:25:35 AMAdded to TP 1.0.5 beta 2

Thank you, Bloc ;)
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: barnic on October 01, 2008, 08:50:00 AM
Worked for me too, thank you Dannii
Thank you, Bloc
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: dotch on February 07, 2009, 12:22:03 PM
Worked for me. I installed SMF Pretty URLs 0.9 mod and I could no longer use the editor. But this fixes it.
Title: Re: [bugtracker] Tinyportal not compatible with other mods
Post by: bloc on February 07, 2009, 03:54:49 PM
Note that FCKeditor isn't part of Tinyportal v1.0 beta3 anymore.