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
http://www.tinyportal.net/index.php?topic=24158
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.
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.
Okay, I will do that tomorrow and will post back with some updates! :) Thanks.
Wasent that a bug posted in the bugtracker to ?
Im not sure it's been fixed in Beta1 but it is in beta2 though.
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?
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)
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.
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.
I did everything that you have said, G6 and then did the edit JPDeni linked to and I still have the same issue.
Any other ideas?
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.
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?
I need to know how it behave with just SMF and TP and all things set to default ( theme Core and no other mods )
Ok, I will try it tomorrow. I have little time now to do something that time consuming.
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/
// 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>';
// 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
I thought you were trying to fix the WYSIWIG editor?
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
My bad. It appears I didn't read all of the topic. :P ::)