Can't hide path information in javascript editor

Phoca Guestbook - creating guestbooks in Joomla! CMS
rvanlaarhoven
Phoca Member
Phoca Member
Posts: 12
Joined: 21 Sep 2012, 12:53

Can't hide path information in javascript editor

Post by rvanlaarhoven »

Hi Jan,

I would like to hide the path information that is shown at the bottom of the TinyMCE editor when I want to make a new post.
I have set the parameter "Display Path In Javascript Editor" to "No". I am using Joomla version 2.5.9 and Phoca Guestbook version 2.0.7. I also tried with the default Joomla templates, but that doesn't solve the problem.
Do you know what could be wrong?

Thanks in advance!
Best regards,
René
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't hide path information in javascript editor

Post by Jan »

Hi, it seems that there were some changes in tinymce, I will change it for next version.

Quick fix for now:

edit:
components\com_phocaguestbook\helpers\phocaguestbook.php method: function displaySimpleTinyMCEJS()

Change from:

Code: Select all

if ($displayPath == 1) {
   $js .= 'theme_advanced_path_location : "bottom",'. "\n";
}
To:

Code: Select all

if ($displayPath == 1) {
    $js .= 'theme_advanced_path_location : "bottom",'. "\n";
 } else {
    $js .= 'theme_advanced_statusbar_location : "none",'. "\n";
 }
Jan
If you find Phoca extensions useful, please support the project
rvanlaarhoven
Phoca Member
Phoca Member
Posts: 12
Joined: 21 Sep 2012, 12:53

Re: Can't hide path information in javascript editor

Post by rvanlaarhoven »

Hi Jan,

The solution you offered works fine! :D
Thanks for your support!!

Best regards,
René
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Can't hide path information in javascript editor

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply