TinyPortal

Development => Support => Topic started by: brianjw on July 28, 2008, 01:38:18 AM

Title: WYSIWYG Editor Not Working [SOLVED]
Post by: brianjw on July 28, 2008, 01:38:18 AM
TP Version: 1.05
SMF Version: 1.1.5

Problem:
I went into my download section for the first time I was about to use the WYSIWYG editor in TinyPortal since I upgraded to 1.05. I noticed that instead of showing an editor when editing a download, it showed an iframe of my homepage saying unable to load 'main' template at the very bottom.

I searched and the only thing that was related was a documentation G6 wrote in March of 2007 and hasn't been updated recently. It was outdated. I am not very active in TinyPortal so I don't really know what editor you all are focusing on now. But The URL the iframe showed: http://www.gamerzgarage.com/index.php/action,tpmod/FCKeditor/editor/fckeditor.html?InstanceName=newdladmin_text&Toolbar=Default
(NOTE: I have search engine friendly urls activated as you probably can notice above)

Thank you very much!
Brian
Title: Re: WYSIWYG Editor Not Working
Post by: JPDeni on July 28, 2008, 02:05:17 AM
http://www.tinyportal.net/index.php?topic=24158
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on July 28, 2008, 02:27:16 AM
That didn't fix the problem at all. It still looks like an iframe showing the entire homepage and then a little message under all the center blocks that says
An Error Has Occurred!
Unable to load the 'main' template. 

Thanks,
Brian

EDIT:

I am looking at the download section here, and noticed when I go to upload it shows the WYSIWYG tools but doesn't show the textarea box.
Title: Re: WYSIWYG Editor Not Working
Post by: IchBin on July 28, 2008, 03:37:08 AM
If that didn't fix the problem I would say that you probably should run through the manual install to make sure all of the files and code changes are there.
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on July 28, 2008, 03:40:32 AM
Okay, I will do that tomorrow and will post back with some updates! :) Thanks.
Title: Re: WYSIWYG Editor Not Working
Post by: G6Cad on July 28, 2008, 11:05:56 AM
Wasent that a bug posted in the bugtracker to ?

Im not sure it's been fixed in Beta1 but it is in beta2 though.
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on July 28, 2008, 12:55:34 PM
I just looked through the TP 1.05 beta and it looks like it doesn't have all the files required. Would I need to do a manual install of TP 0.9.8 and then a manual install over that of TP 1.05?

G6, do you think you can give me the source code to fix this?
Title: Re: WYSIWYG Editor Not Working
Post by: G6Cad on July 28, 2008, 01:22:43 PM
I cannot give you any source code as i dont know what code have been fixed and where really.

You need to uninstall TP V098 in order to install TP V1.0.5 as Bloc describe in his release topic about TP V1.0.5 Beta1

If you have issues, i suggest you do a manuall install and manually add all files from the package.
The install instructions is found in the Docs here
Modification Instructions (http://docs.tinyportal.co.uk/index.php?topic=140)
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on July 28, 2008, 01:44:31 PM
G6,

I have TP 1.0.5 installed on my site. It seems that TP 1.0.5 doesn't have all the files included and that is uses some files that were left over from TP 0.9.8. I deleted the entire FCKEDITOR folder and the entire WYSIWYG folder and uploaded it from TP 1.0.5 again but it looks like it still needs a few files which are included in the TP 0.9.8 install.
Title: Re: WYSIWYG Editor Not Working
Post by: G6Cad on July 28, 2008, 01:56:35 PM
You must compleatly remove everything from TP V098 before installing TP V1.0.5 as Block wrote in the release topic.

If you still have leftovers from TP V098, simply revert the install instructions for TP V098 and then install TP V1.0.5

There are no missing files in the package, so if you have missing things, it means that you didnt uninstall TP V098 before you went ahead and install TP V1.0.5, or atleast you didnt make sure everything were removed.

Start from scratch with the SMF files, and then install TP V1.0.5 and everything will be clean. If you package manager didnt install properly, go through the steps for the manuall install

There are no way we can see what you have leftover in your files, nor any clue what you have done so far, so replace the SMF files with clean ones, and go from there.
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on July 28, 2008, 05:08:42 PM
I did everything that you have said, G6 and then did the edit JPDeni linked to and I still have the same issue.
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on August 07, 2008, 09:33:56 PM
Any other ideas?
Title: Re: WYSIWYG Editor Not Working
Post by: G6Cad on August 07, 2008, 09:38:52 PM
What have you tried and what is your setup at this point ?
We know as much as there are a few bugs, but they are working with the fixes applied in the links we gave, so it must be something else that might be the issue for you.

Post up your setup, and what you have tried so far, also what settings you have and what you try to do.
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on August 07, 2008, 09:52:13 PM
Well I tried to upload TP 1.0.5 over the current TP 1.0.5. Deleted all files that were not in 1.0.5 and were in 0.9.8. Applied the fix JPDeni posted. [That is what I have tried.]

Again I have the Search Engine Friendly URLs mod installed. What settings do you want to see?
What is the setup of which you are speaking of?
Title: Re: WYSIWYG Editor Not Working
Post by: G6Cad on August 07, 2008, 10:58:57 PM
I need to know how it behave with just SMF and TP and all things set to default ( theme Core and no other mods )
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on August 07, 2008, 11:01:28 PM
Ok, I will try it tomorrow. I have little time now to do something that time consuming.
Title: Re: WYSIWYG Editor Not Working
Post by: brianjw on August 26, 2008, 03:02:01 AM
I have found a way and have solved it thanks to Dannii! The mod creator of Pretty Urls. He told me he found still a few "FCKeditor/" parts that did not have boardurl in front of them. He told me to look in the TP Sources Files and I did.

I found it in TPmodules.php (as well as the TPortalAdmin.php fix which was already on the site).
Here is the fix:

Open TPmodules.php in ./Sources/
Code (FIND) Select

// FCKeditor
if($context['TPortal']['use_wysiwyg']=='2' || $context['TPortal']['use_wysiwyg']=='1')
$context['html_headers'] .= '
<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 = "200";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';

Code (REPLACE) Select

// FCKeditor
if($context['TPortal']['use_wysiwyg']=='2' || $context['TPortal']['use_wysiwyg']=='1')
$context['html_headers'] .= '
<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 = "200";
FCKComment.Width = "100%";
FCKComment.ReplaceTextarea() ;
}
</script>';


Thanks,
brianjw
Title: Re: WYSIWYG Editor Not Working [SOLVED]
Post by: Bluto on August 26, 2008, 04:28:11 AM
I thought you were trying to fix the WYSIWIG editor?
Title: Re: WYSIWYG Editor Not Working [SOLVED]
Post by: G6Cad on August 26, 2008, 06:28:26 AM
Brian

The changes you show here are exactly the same as JP Deni already pointed you to in this very topic first reply

http://www.tinyportal.net/index.php?topic=24158.0

See her reply here ??

http://www.tinyportal.net/index.php?topic=25168.msg201882#msg201882

Title: Re: WYSIWYG Editor Not Working [SOLVED]
Post by: brianjw on August 26, 2008, 10:21:43 PM
My bad. It appears I didn't read all of the topic. :P ::)