close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

cms 102 upgrade tutorial

Thread began 9/16/2011 6:02 pm by gruant2000381341 | Last modified 9/16/2011 6:04 pm by gruant2000381341 | 1174 views | 1 replies

gruant2000381341

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>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...