TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 17, 2024, 05:25:37 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,253
  • Total Topics: 21,225
  • Online today: 149
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 120
  • Total: 120

[bugtracker] Tinyportal not compatible with other mods

Started by Dannii, May 26, 2008, 02:25:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dannii

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.

eldacar

Replace the same code in TPmodules.php, it's the same except for the tabs.

IchBin


bloc

I don't really see the point, the FCKeditor is already on root level...and what other mods?


eldacar

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.

OblivionMage

Worked for me. (Got rid of an FCKeditor not found on server problem).

Thanks again Dannii

LoboSolitario


bloc



barnic