FCKEditor

This is a discussion on "FCKEditor" within the Scripts and Online Services section. This forum, and the thread "FCKEditor are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Scripts and Online Services

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 1st, 2007, 20:00
Junior Member
Join Date: Jul 2007
Location: Arkansas, USA
Age: 21
Posts: 45
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to nashultz07 Send a message via MSN to nashultz07
Cool FCKEditor

I am wanting to use FCKEditor to update content on a webpage but I lack in the knowledge of how to set it up to do so. If anyone knows anything about how to set it up that would be great. Also, I am just using HTML and CSS to create my webpages, I have not started learning PHP or anyother coding language yet! Would this have to be changed? Any help would do.
Last Blog Entry: First Post! (Apr 18th, 2008)
Reply With Quote

  #2 (permalink)  
Old Aug 1st, 2007, 20:09
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: FCKEditor

It might help if you told us a bit more about it or even a link to it? Although i have a feeling that this is in the wrong section
Reply With Quote
  #3 (permalink)  
Old Aug 1st, 2007, 20:20
Junior Member
Join Date: Jul 2007
Location: Arkansas, USA
Age: 21
Posts: 45
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to nashultz07 Send a message via MSN to nashultz07
Re: FCKEditor

I am wanting to allow a certain portion of the body code to be editable. I have uploaded the FCKEditor to the web server but I dont know where to begin to add it to the pages. Would I have to make another similar page that it edits from and the actual page to where it edits to? I am lost on the whole thing.
Last Blog Entry: First Post! (Apr 18th, 2008)
Reply With Quote
  #4 (permalink)  
Old Aug 3rd, 2007, 15:42
Up'n'Coming Member
Join Date: Jul 2007
Location: London
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Re: FCKEditor

Hi,

I can only talk form experience in regards to using FCK editor.

I have used the application many times but only in CMS (Content Management Systems).

In most cases I use the following technologies to impliment a cms solution:
  • PHP 5 coding
  • Mysql Server database
  • Linux based hosting
Baically you create a database to store text information which is displayed on your website. Using FCK editor and PHP you can update the text which is stored in the database. This is the only way I know but you may be able to use xml files instead of a database like mysql.

regards

p shah - www.dcpweb.co.uk
Reply With Quote
  #5 (permalink)  
Old Aug 3rd, 2007, 16:36
Junior Member
Join Date: Jul 2007
Location: Arkansas, USA
Age: 21
Posts: 45
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to nashultz07 Send a message via MSN to nashultz07
Re: FCKEditor

I have been messing around trying different things and no luck so far. I will try your suggestion. Is there a way to do the database in Access?
Last Blog Entry: First Post! (Apr 18th, 2008)
Reply With Quote
  #6 (permalink)  
Old Aug 3rd, 2007, 16:44
Up'n'Coming Member
Join Date: Jul 2007
Location: London
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Re: FCKEditor

Hi,

Yes you can use an access database for learning only, access db is not designed for web development. Try install mysql which is a much better alternative.

p shah - www.dcpweb.co.uk
Reply With Quote
  #7 (permalink)  
Old Aug 3rd, 2007, 18:53
Junior Member
Join Date: Jul 2007
Location: Arkansas, USA
Age: 21
Posts: 45
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to nashultz07 Send a message via MSN to nashultz07
Question Re: FCKEditor

I am not wanting to connect to a database 'cause the server it is on does not run mysql.

here is the
Code: Select all
<html>
  <head>
    <script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
    <form action="sampleposteddata.asp" method="post" target="_blank">
  <script type="text/javascript">
      window.onload = function()
      {
        var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
        oFCKeditor.BasePath = "/home/pti/n/s/nashultz05/fckeditor/" ;
        oFCKeditor.ReplaceTextarea() ;
      }
    </script>
 
  </head>
  <body>
    <textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>
  <br />
  <input type="submit" value="Submit" />
 </form>
 </body>
</html>
Last Blog Entry: First Post! (Apr 18th, 2008)
Reply With Quote
  #8 (permalink)  
Old Aug 17th, 2007, 06:19
Junior Member
Join Date: Jun 2006
Location: Here
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Re: FCKEditor

You don't need a database for what your talking about. There is a couple different ways to implement it depending on the languages you choose to use. 1. you can use javascript and have an edit button on the page/section you want to be editable
2. have an outside page that actually edits the sections of the page you want to be editable...
Either way you would have to have some sort of protection from it allowing just anyone to edit the pages such as a login system...

I wrote a script a while back to do exactly what your talking about and I use FCKeditor in it...PM if you want to use it.. but its PHP based so your server would have to have PHP installed.. but it uses a flatfile db so you dont need mysql or anything.

http://www.webforumz.com/design-and-...dit-v1-0-a.htm

I never finished changing the things I wanted to but its still usable.

Last edited by split-visionz; Aug 17th, 2007 at 06:21.
Reply With Quote
  #9 (permalink)  
Old Aug 28th, 2007, 23:08
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to tox0tes
Re: FCKEditor

Create a new folder under public_html called "admin". create a blank text file called include.txt, upload it to the "admin" folder and give it chmod permission 766. Now, create a new file called admin.php with the following block of PHP script and upload to the "admin" folder:

PHP: Select all

<?
$page10 
"yourpage";
if(
$_POST['Submit']){
$open fopen($page10.".txt","w+");
$text $_POST['update'];
$text stripslashes($text); 
fwrite($open$text);
fclose($open);
echo 
"<div><h1>Changes on ".$page10.".php saved.</h1>";
echo 
"<a href='../".$page10.".php' target='_blank'>View Changes</a>";
include(
"nav.php");
}else{
$file file($page10.".txt");
echo 
"<div><h1>Edit ".$page10.".php</h1>";
echo 
"<form action=\"".$PHP_SELF."\" method=\"post\">";
echo 
"<textarea Name=\"update\" cols=\"70\" rows=\"10\" value=\"<?php include('".$page10.".txt'); ?>\">";
foreach(
$file as $text) {
echo 
$text;
}
echo 
"</textarea><br>";
echo 
"<input name=\"Submit\" type=\"submit\" value=\"Save Changes\" />";
include(
"nav.php");
}
?>
On yourpage.php under public_html, paste this in place of the editable section:

PHP: Select all

<?php include("admin/include.txt"); ?>

Now, open up admin.php in your browser and you can make edits to the page. Make sure to password protect it though.
Reply With Quote
Reply

Tags
fckeditor, text editing

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
FCKeditor bambus ASP.NET Forum 0 Aug 14th, 2007 14:06


All times are GMT. The time now is 07:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43