TinyMCE problems

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
animike
Forum Members
Forum Members
Posts: 16
Joined: Tue Sep 11, 2007 6:50 pm
Location: Poland

TinyMCE problems

Post by animike »

Hello,

Some time ago I've installed CMS made simple on paid server and it works fine but when I've installed cms on free server my TinyMCE editor works strange. All the edit icons disappeared?? Where can I fix this?? Is this something with my database on free server??

Animike
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

Re: TinyMCE problems

Post by Sy »

Hi,

This may be related to a problem I had.  On my local system running Apache2, everything was ok.  When I uploaded to the target server which was running Zeus I had no toolbars.

I think TinyMCE references a server variable that is specific to Apache2.  Zeus wasn't supplying it.  Here is the post I made and the solution for my problem.

http://forum.cmsmadesimple.org/index.ph ... 283.0.html
User avatar
animike
Forum Members
Forum Members
Posts: 16
Joined: Tue Sep 11, 2007 6:50 pm
Location: Poland

Re: TinyMCE problems

Post by animike »

Ok thanks but what I have to change??I have got something like this:
modules;
$tiny=$modules["TinyMCE"]['object'];
$basepath = $gCms->config["root_url"].'/modules/TinyMCE/tinymce/jscripts/tiny_mce/';
?>

Which path I have to change (which file)??
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

Re: TinyMCE problems

Post by Sy »

In my case it was:

$path = dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])));

The SCRIPT_FILENAME was not present on Zeus, you could try putting in:

$path = $_SERVER['DOCUMENT_ROOT'] . '/smf path of you include.php';
User avatar
animike
Forum Members
Forum Members
Posts: 16
Joined: Tue Sep 11, 2007 6:50 pm
Location: Poland

Re: TinyMCE problems

Post by animike »

It doesn't work  :(
Could you explain me what is this all about. What path is this and what file i'm looking for??
I'm a bit newbie whit this things...

I have installed WIDGEDITOR to see how it works but it also doesn't work ???

Animike
Last edited by animike on Tue Oct 02, 2007 3:57 pm, edited 1 time in total.
Djith
Forum Members
Forum Members
Posts: 23
Joined: Fri Feb 23, 2007 6:46 pm

Re: TinyMCE problems

Post by Djith »

I had the same problem and decided to erase the whole site and upload again... and it worked out !!
User avatar
animike
Forum Members
Forum Members
Posts: 16
Joined: Tue Sep 11, 2007 6:50 pm
Location: Poland

Re: TinyMCE problems

Post by animike »

It didn't work out :/
This is something with database i think.
but how to check it I don't know :/
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

Re: TinyMCE problems

Post by Sy »

The only thing I can suggest is to edit the php, putting die("HERE WE ARE"); statements at various locations or include the variables to see if they are set-up.

You need to identify where it goes wrong and what is in the path, do this by putting

die( "PATH: " . $path );

after the path assignment.
User avatar
animike
Forum Members
Forum Members
Posts: 16
Joined: Tue Sep 11, 2007 6:50 pm
Location: Poland

Re: TinyMCE problems

Post by animike »

Sory but still I dont understand  ::)
Maybe U could explain this more deeply:)
I will be very greatful!!

Animike
User avatar
Sy
Forum Members
Forum Members
Posts: 95
Joined: Fri Aug 17, 2007 11:13 am
Location: UK

Re: TinyMCE problems

Post by Sy »

Can you tell me the following:

What web server is your host running, Apache, Zeus, IIS ?
What version of PHP ?
What version of MySQL ?
What version of CMSMS ?

Then we can start to go through things to try.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: TinyMCE problems

Post by Dr.CSS »

The DB has nothing to do with tinyMCE...

You have some path problem, something is pointing at something that isn't there...
Post Reply

Return to “Developers Discussion”