Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 11th Apr 2012, 07:35 AM   #1
Happy in Acuña
War Room Member
 
Terry Jett's Avatar
 
Join Date: 2008
Location: Dallas
Posts: 2,090
Thanks: 268
Thanked 652 Times in 516 Posts
Blog Entries: 2
Default
Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

Greetings!

I have been trying to get tinyMCE to activate with a file manager called "File Thingie". Seems pretty straight forward when looking at Free PHP File Manager | File Thingie

But for the life of me cannot get tinyMCE to activate when editing a file. Have followed instructions, or at least tried

Anyone ever try File Thingie or maybe know how to make tinyMCE work with it?

Thanks in advance,

Terry

Terry Jett is offline  
Unread 11th Apr 2012, 08:13 AM   #2
HyperActive Warrior
War Room Member
 
Earnie Boyd's Avatar
 
Join Date: 2012
Posts: 290
Thanks: 13
Thanked 46 Times in 46 Posts
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

That documentation isn't very helpful. I have to read between the lines. But one of the files in fileThingy (I've never used it) contains a setting with PATH in it to the TinyMCE installation which should be in the same directory as the file ft2.php.

There's some mention about $ft['plugins'] array that is containing the "settings" for the plugin, which makes me assume you should have a $ft['plugins']['tinymce'] value you need to add or change.

Earnie Boyd is offline  
Unread 11th Apr 2012, 08:26 AM   #3
Happy in Acuña
War Room Member
 
Terry Jett's Avatar
 
Join Date: 2008
Location: Dallas
Posts: 2,090
Thanks: 268
Thanked 652 Times in 516 Posts
Blog Entries: 2
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

Thanks Earnie.

Yes, I have been all through the the docs and tried many different things - including paths. Have tried changing the $ft['plugins']['tinymce'] all around also.

Pretty much spent past 4 hours trying different things. Starting banging my head on desk and thought maybe I could prevent further damage by asking here, lol

Terry Jett is offline  
Unread 11th Apr 2012, 10:22 AM   #4
HyperActive Warrior
War Room Member
 
Earnie Boyd's Avatar
 
Join Date: 2012
Posts: 290
Thanks: 13
Thanked 46 Times in 46 Posts
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

It's loading the tiny_mce.js file in the wrong location.

Change directory to the js directory in your filethingy package and create a symbolic link to the tinymce directory.

On *NIX do:
ln -s ../tinymce tinymce

On Windows do:
junction tinymce ..\tinymce

Earnie Boyd is offline  
The Following User Says Thank You to Earnie Boyd For This Useful Post:
Unread 11th Apr 2012, 10:29 AM   #5
Happy in Acuña
War Room Member
 
Terry Jett's Avatar
 
Join Date: 2008
Location: Dallas
Posts: 2,090
Thanks: 268
Thanked 652 Times in 516 Posts
Blog Entries: 2
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

Thanks once again Earnie!

Not totally following where I would be making the change, but will study this and see if can figure it out.

Appreciate you taking the time to assist me,

Terry

Terry Jett is offline  
Unread 11th Apr 2012, 01:08 PM   #6
HyperActive Warrior
War Room Member
 
Earnie Boyd's Avatar
 
Join Date: 2012
Posts: 290
Thanks: 13
Thanked 46 Times in 46 Posts
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

I've modified ft2.php to do the correct thing. Replace yours with this one and it should work for you.
Attached Files
File Type: zip ft2.zip (16.3 KB, 14 views)

Earnie Boyd is offline  
Unread 11th Apr 2012, 01:15 PM   #7
HyperActive Warrior
War Room Member
 
Earnie Boyd's Avatar
 
Join Date: 2012
Posts: 290
Thanks: 13
Thanked 46 Times in 46 Posts
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

But once you edit the file you'll get another error. The file was saved though.

Earnie Boyd is offline  
Unread 11th Apr 2012, 01:32 PM   #8
Happy in Acuña
War Room Member
 
Terry Jett's Avatar
 
Join Date: 2008
Location: Dallas
Posts: 2,090
Thanks: 268
Thanked 652 Times in 516 Posts
Blog Entries: 2
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

That is very nice of you Earnie!

Working on a project for a school function. Wife is in-charge of the girls dance team fund raiser. Setting up so they can use their mobiles to place/record orders on a simple form I made.

We are using file thingie script to allow the teachers easy way to edit each kids personal site (add their name and assigned stuff). The Thingie script will do that easily and I can assign different logins for each teacher.

Now I just have to find how to make TinyMCE editor behave, lol It likes to strip a lot of stuff out of ready made templates, like the whole <head></head> tag area. Think there is a setting like < cleanup : "false", > that may help.

Really, really appreciate you taking the time to help.

Terry

Terry Jett is offline  
Unread 12th Apr 2012, 10:45 PM   #9
Happy in Acuña
War Room Member
 
Terry Jett's Avatar
 
Join Date: 2008
Location: Dallas
Posts: 2,090
Thanks: 268
Thanked 652 Times in 516 Posts
Blog Entries: 2
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

Earnie, could you tell me what you changed in the ft2.php file to make it load tinyMCE?

Trying to understand the script better.

Cannot get the tinyMCE editor to load the css and some .js. Any ideas?

Really appreciate your help. If you do not have time to mess with, totally understand. But my head is sore after many hours of trying to figure out, lol

Terry

Terry Jett is offline  
Unread 13th Apr 2012, 08:50 AM   #10
HyperActive Warrior
War Room Member
 
Earnie Boyd's Avatar
 
Join Date: 2012
Posts: 290
Thanks: 13
Thanked 46 Times in 46 Posts
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

I changed the ft_make_scripts function. I removed js/ from src='{$c}' and prepended js/ to the values being added to $scripts[] array.

Earnie Boyd is offline  
The Following User Says Thank You to Earnie Boyd For This Useful Post:
Unread 13th Apr 2012, 09:07 AM   #11
Happy in Acuña
War Room Member
 
Terry Jett's Avatar
 
Join Date: 2008
Location: Dallas
Posts: 2,090
Thanks: 268
Thanked 652 Times in 516 Posts
Blog Entries: 2
Default
Re: Making tinyMCE Work With File Thingie
Share on: 
fb share twitter share gplus share more share

Thanks Earnie!

Terry Jett is offline  
Closed Thread


Bookmarks

Tags
file, making, thingie, tinymce, work


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:20 PM.