close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Tutorial For Upgrading PowerCMS with the new HTML Editor

Thread began 12/03/2009 3:28 am by anonymous | Last modified 12/19/2009 4:16 pm by gruant2000381341 | 2096 views | 11 replies |

anonymous

Tutorial For Upgrading PowerCMS with the new HTML Editor

Ok... so a couple of people have asked if it is possible to use the new HTML Editor with Power CMS, so here is a tutorial I put together that walks you through what is needed to do it correctly on an existing site.

blog_detail.php?id=15

If you have any questions, you can ask in the comment section on the blog there or you can post them here.

Best regards,

Brian

Sign in to reply to this post

shadow329043

Ok - I tried your tutorial -and I am having problems. I uploaded the three files that I edited plus the htmleditor folder up to my server and when I tried to insert content, I got a blank page. I followed your instructions exactly.

Are your instructions valid for a CMS which was set up as in the pdf file posted by Nello? PowerCMS_Case_Study.pdf
or is your site set up differently? My CMS is in a folder named "cms"

My folder htmleditor is in the website root - should it be under the "cms" folder?

I checked the edit feature and an editor was displayed - it shows FCKEditor version 2.6.5 - is this the old iRite or the new HTML editor?

I named the HTML editor instance "ContentValue" which is the same name as in the old iRite instance - is this valid?

Do I need to delete the old iRite folder

Anything else I need to check?
***********************************additional info***********************

I moved th HTMLeditor folder under my cms folder - still got a blank page when trying to insert new content. I continue to wonder if the problem is the path.

Sign in to reply to this post

shadow329043

I copied the content_insert and content_update files from my backup and overwrote this project - could not get a response to my questions - I did answer one question - the FCKEditor version when I reverted was shown as 2.5.1 so the update partially worked but could not get the new HTML editor to show on the new content insert page. If I have time this weekend (and if I discover answers to other questions) I may try again. But for now, I will continue with the old editor.

Sign in to reply to this post

morgan.lindvall390704

try this

I followed Brians small tutorial.
Got the same problem as u, found out that the "Custom" layout did not work so i just put "Default" as layout, could then after change to custom layout.

in the contents_update.php - file i just renamed the path to "../HTMLEditor/" and added the <?php require_once("../HTMLEditor/WARichEditorPHP.php"); ?> in the grp of requiers at the top of the page. Removed all the old paths to iRight.

With the contents_insert.php - file
I followed the tut and insterted a new editor, change the team from "Custom" to "Default", cos after it was just blank and gave a error that said it could not find "Custom".
Made the proper changes in the code to match the old iRight.

Hope this helps you out m8

/Morgan

Sign in to reply to this post

shadow329043

Thanks for the info! I will try it again

Shadow

Sign in to reply to this post

anonymous

Shadow,

Also... make sure you do a hard refresh on the browser when you make changes... these JavaScript editors will cache in the browser and sometimes, the changes you make are not seen.

I will be around this weekend (albeit at crazy hours)... let me know if you have issues.

Also, be aware of this bug in HTML Editor: showthread.php?t=5968.

Either email me from my site or post here and I can help you resolve any issues.

Best regards,

Brian

Sign in to reply to this post

anonymous

One other thing... in the announcements thread, I was able to help someone else figure their issue with the upgrade... follow this thread and check out the code for the custom js file: showthread.php?t=8062

Cheers,

Brian

Sign in to reply to this post

shadow329043

Thanks for all the help, guys! I will re-start the work on this project today (from the beginning to make sure I didn't miss anything) and will report back.

Sign in to reply to this post

Morgan

Originally Said By: shadow329043
  Thanks for all the help, guys! I will re-start the work on this project today (from the beginning to make sure I didn't miss anything) and will report back.  



Els give me a shout and i will send u the 3 modfied files to you.

/Morgan

Sign in to reply to this post

shadow329043

Now I am annoyed enough to drop this project

I know I am not that dense! I have done this mod 6 times! I followed the instructions for the contents_insert.php page and it is NOT working! I don't know if I am missing something. When I originally did this project, I did the whole thing and the content_update.php section did work! Just not the first page - the content_insert page.
On the final version (this one) I moved the HTMLEditor folder from the site root to a folder under the CMS folder, corrected the path in the source from "/HTMLEditor/" to "../HTMLEditor/" and it STILL did not work.

I don't know if the problem is PATH or what - the one question that NO ONE answer was "Is the HTML editor folder in the same folder as the CMS?" I installed the CMS in its own folder, according to the case study (link posted earlier in this post) which is named "CMS" Attaching the content_insert page - but didn't see it when I saved this post, so I am pasting the 2 sections of code that I needed to change below

The "require once" section
<?php require_once( "../WA_Globals/WA_Globals.php" ); ?>
<?php require_once('../Connections/localhost.php'); ?>
<?php require_once( "../WA_CMS/WA_CMS.php" ); ?>
<?php require_once("../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once("../HTMLEditor/WARichEditorPHP.php"); ?>
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>

The Editor instance itself
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_2 = CreateRichTextEditor ("ValueContent", "../HTMLEditor/", "713px", "400px", "Default", "../custom/contents_insert_ValueContent1.js", (isset($_POST['ContentValue']) ? $_POST['ContentValue'] : "");
?>

Sign in to reply to this post
loading

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...