Tutorial

When someone uses certain features of the TinyMCE editors on your web site a window will open revealing unwanted folder, directory, and file locations to the prying eyes of your members.

For most people and sites it is not a real big concern. But, some would rather not show or display this to members. It is not something they really need to see or know about.

For those of you that want to hide the various web address locations in the popup TinyMCE editor windows from your members there is a very simple modification you can make.

Keep in mind there is more than one TinyMCE editor in Dolphin, and you would need to make sure you apply it to them all.

The good thing is most of the code for the editors is all in one file, with the exception of the Orca forum having its own code for TinyMce on another page. So a total of 2 files to modify if you use the Orca forum, and only 1 file if you do not use Orca Forums on your site.

The files to modify or edit are:

For Dolphin 7 Editors:
/templates/base/scripts/BxBaseConfig.php

For the Orca Forum TinyMCE editor:
/modules/boonex/forum/layout/base/xsl/canvas_init.xsl


Note:
After applying the changes to the Orca Forum file, you may need to compile the Orca Forum language so it will also write the changes to /modules/boonex/forum/layout/base_en/xsl/canvas_init.xsl


After you finish applying the changes, be sure to clear your Administration Cache. Then, navigate to an area of your site where you can post something with the TinyMCE editor. Refresh the page if necessary to verify.

Before making changes, you should download and backup the files:
/templates/base/scripts/BxBaseConfig.php
/modules/boonex/forum/layout/base/xsl/canvas_init.xsl

This does not affected the database so you do not need to worry about backing it up.


How to hide your web site address in Dolphin 7 TinyMCE editors:


1. Open the /templates/base/scripts/BxBaseConfig.php with a text editor and find:

<!-- tinyMCE gz -->   
<script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">
tinyMCE_GZ.init({
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,directionality,fullscreen",
themes : "advanced",
languages : "en",
disk_cache : true,
debug : false
});



Find and change the plugins area to:

<!-- tinyMCE gz -->   
<script type="text/javascript" src="' . $site['plugins'] . 'tiny_mce/tiny_mce_gzip.js"></script>
<script type="text/javascript">
tinyMCE_GZ.init({
plugins : "inlinepopups,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,directionality,fullscreen",
themes : "advanced",
languages : "en",
disk_cache : true,
debug : false
});


2. Continue scrolling down through the BxBaseConfig.php file and doing the same to the other plugins area of each TinyMCE editor within this file.

3. Save the changes back to your host, server, account overwriting the original.

4. Clear Dolphin 7 Cache in Administration.

5. Test and refresh as necessary.


How to hide your web site address in Dolphin 7 Orca Forum TinyMCE editor:


1. For the Orca Forum open /modules/boonex/forum/layout/base/xsl/canvas_init.xsl and find:

tinyMCE_GZ.init({
plugins : 'table,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media',
themes : 'advanced',
languages : 'en',
disk_cache : true,
debug : false
});       



Find and change the plugins area to:

tinyMCE_GZ.init({
plugins : 'inlinepopups,table,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,searchreplace,xhtmlxtras,media',
themes : 'advanced',
languages : 'en',
disk_cache : true,
debug : false
});       

2. Save the changes back to your host, server, account, overwriting the original.

3. Compile Orca Forum Language as necessary.

4. Clear Dolphin 7 Cache in Administration.

5. Test and refresh the page if need be.


Problems:

Make sure you put inlinepopups in the right location, and that you saved it back to your hosting account properly.

Double check and make sure you did the same for all the other TinyMCE editors in the /BxBaseConfig.php file. There are more than 1 TinyMCE editor types in Dolphin 7 controlled by this file. Make sure you scroll through the file and add inlinepopups to all of them.



Sample Screen shots:

Emotions with web address before applying the modification:

Emotions Before



Emotions without web address after applying the modification:

Emotions After



HTML editor with web address before applying the modification:

HTML Source Editor Before



HTML editor without web address after applying the modification:

HTML Source Editor After



Insert image with web address before applying the modification:

Insert Edit Image Before



Insert image without web address after applying the modification:

Insert Edit Image After



This modification helps prevent your members from snooping around in areas of your site that they don't need to be.

I originally saw a post at Boonex Unity about this by houstonlively. I don't remember the link right offhand.



 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Sponsored Links
Recommend