This is part 2
there is a txt attachment to part 1 if the code does not display properly
Step 4. Edit the configuration file (For people WITH Security Assist installed)
-------------------------------------
***********************************************************
** Skip this step if you do NOT have security assist **
** We will fix this manually for you in a bit **
***********************************************************
Now you need to open webassist->kfm->configuration.php
(The webassist folder is created after you run the above steps to add in the new editor.)
Find these lines
(line 7-8 on my copy)
<?php require_once( "../../Connections/localhost.php" ); ?>
<?php require_once( "../../WA_SecurityAssist/Helper_PHP.php" ); ?>
Replace those 2 lines with these 3 lines.
<?php require_once( "../../Connections/localhost.php" ); ?>
<?php require_once("../../WA_Globals/WA_Globals.php"); ?>
<?php require_once( "../../WA_SecurityAssist/Helper_PHP.php" ); ?>
Make sure that when you paste in those 3 lines that there are no spaces after the ending ?>'s or you will get header already sent errors.
You can save this file now and close it.
Step 5. Edit the configuration file (For people WITHOUT Security Assist installed)
-------------------------------------
*****************************************************************
** This step is for people who do NOT have security Assist **
*****************************************************************
Now you need to open webassist->kfm->configuration.php
(The webassist folder is created after you run the above steps to add in the new editor.)
Find these lines
(first 9 lines on my copy)
<?php
@session_start();
$startKFMDir = getcwd();
chdir(dirname(__FILE__));
require_once( "library.php" );
?>
<?php require_once( "../../Connections/localhost.php" ); ?>
<?php //Security ?>
<?php chdir($startKFMDir); ?>
Replace those lines with these.
<?php
@session_start();
$startKFMDir = getcwd();
chdir(dirname(__FILE__));
require_once( "library.php" );
?>
<?php require_once( "../../Connections/localhost.php" ); ?>
<?php require_once("../../WA_Globals/WA_Globals.php"); ?>
<?php require_once( "../../WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php chdir($startKFMDir); ?>
<?php
if (!WA_Auth_RulePasses("Administrator")){
WA_Auth_RestrictAccess("../../admin/users_login.php");
}
?>
<?php chdir($startKFMDir); ?>
Make sure that when you paste in those lines that there are NO SPACES anywhere at the end of the lines or you will get header already sent errors.
You can save this file now and close it.
Step 6. Finishing touches
-------------------------------------
Even though we specified earlier that our files folder should be under our root, the html editor actually puts it inside of your admin folder.(bug?? maybe)
So when you upload, you will probably need to set permissions for that folder to 755.
It is in your admin folder, named files...set file permissions to 755 for that folder.
You can now delete the old original HTMLEditor folder.
You can also delete the junk folder that we made for images for Dreamweaver (if you did that).
Remember to update Connections->localhost.php with correct mysql info, and WA_Globals->WA_Globals.php with correct info.
The original sql file that came with cms 102 is fine...new tables will be created first time you upload an image.
once you upload this, try to upload an image...as the first time you do, it will need refreshed so it can build the needed new tables for the images.
If you run into the browse server getting hung up, you may need to edit this line.
webassist->kfm->index.php page
Find this..
<script type="text/javascript" src="j/all.php/can-minify"></script>
And replace it with this...
<script type="text/javascript" src="j/all.php"></script>
That's everything.
***************************************************************************
***************************************************************************
Below is a fix for the tabs not collapsing properly on the admin index page
***************************************************************************
***************************************************************************
***** You need to Google around to find this js file
***** mootools-more-1.3.2.1.js
***** Maybe WA will post a link to this file for easy downloading
***** Find that file and download it, save it to your desktop.
***** Create a new folder named js in your cms folder.
***** Save that mootools-more-1.3.2.1.js file to the newly created js folder
Go to admin->index.php
scroll down to the code where the doctype is....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo($WAGLOBAL_Site_Name); ?> - Admin Home</title>
<script type="text/javascript" src="../css/mootools.js"></script>
Replace that code with this......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo($WAGLOBAL_Site_Name); ?> - Admin Home</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js"></script>
<script type="text/javascript" src="../js/mootools-more-1.3.2.1.js"></script>