[New Mod] Fck Editor Integrated :)

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2008, 02:31 AM
Casual Pligger
 
Join Date: Sep 2007
Posts: 96
I have spent a couple of hours tonight getting fckeditor integrated into pligg and now i have . I personally think its way better then tinyMCE it works better as well. My articles are much easier to right and you don't have to worry about a ton of configuration. You have the ability to change skins and much more, Take a look at FCKeditor - The text editor for Internet

Its pretty late now and im exhausted in getting quite of new features on my site and i thought id share this one with the community. Ill have the installtion steps up tommrow morning

This should work with 9.9 since its just js and i believe JS is allowed in tpl files still in 9.9

I

Take a look at some of the pics



and




Sign up at d0ink.com / Popular Articles if you don't believe me either. Keep in mind im working on features and not on my template my template needs a little sprucing still. My site is only a test site for people to test things. Ill have the demo up for a couple of days then take it down. Note this is NOT MY Primary site i only use this to upload a feature and test it. Its my production test server. I will be hosting a demo of a video upload mod in a about a week.

Last edited by Redux; 01-05-2008 at 02:37 AM.
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:51 AM
New Pligger
Pligg Version: 9
Pligg Template: default
 
Join Date: Jan 2008
Posts: 1
Very good to know! I've used FCK with DotNetNuke, and as we're looking to possibly move the site to Pligg, we'll be very interested in this enhancement!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 11:32 AM
Casual Pligger
 
Join Date: Sep 2007
Posts: 96
Ok first when you open pligg.tpl

look for
Code:
{checkForCss}
	{checkForJs}
The under that put
Code:
{if $pagename eq "editlink"}
		<script language="javascript" type="text/javascript" src="{$my_pligg_base}/3rdparty/fckeditor/fckeditor.js"></script>
	{/if}
	{if $pagename eq "submit"}

		<script language="javascript" type="text/javascript" src="{$my_pligg_base}/3rdparty/fckeditor/fckeditor.js"></script>
	{/if}

Ok once you do that save and close

Now open submit_step_2.tpl
look for
Code:
{config_load file="/libs/lang.conf"}
Right below that put
Code:
{literal}
<script type="text/javascript">
      window.onload = function()
      {
        var oFCKeditor = new FCKeditor( 'bodytext' ) ;
        oFCKeditor.BasePath = "3rdparty/fckeditor/" ;
		oFCKeditor.Height	= 700 ;
        oFCKeditor.ReplaceTextarea() ;
      }
	  
	  
    </script>
{/literal}

Sorry i shoulda been a little more specific :P

Last edited by Redux; 01-05-2008 at 11:25 PM.
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 01:13 PM
Casual Pligger
 
Join Date: Sep 2007
Posts: 96
To change your skin Go to fckeditor.js

Look for "skin" or "skins" and change your configuration to to one of three options. You have a choice of default, silver, and office2003.

You can donwload other skins and install them in your editor/skins folder

Its pretty straightford and easy just google it
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 10:26 PM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 87
Thanks! It works cool except 2 problems

1- When you submit news, go to step 3, if you go back to change something, there isnt any content, just a blank content, so you have to type everything from the beginning.
2- Short Description doesnt work anymore

Do you know how to fix it? Thanks
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 10:43 PM
Casual Pligger
 
Join Date: Sep 2007
Posts: 96
you didnt just copy and past what i had did you?
Reply With Quote
  #7 (permalink)  
Old 01-05-2008, 10:58 PM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 87
Yeah i just copy and pasted what you show here... Is there anything i have to add ?

Thanks
Reply With Quote
  #8 (permalink)  
Old 01-05-2008, 11:18 PM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 87
Yes and what should i do?

Thanks
Reply With Quote
  #9 (permalink)  
Old 01-05-2008, 11:18 PM
Casual Pligger
 
Join Date: Sep 2007
Posts: 96
refer to top of post for changes

Last edited by Redux; 01-05-2008 at 11:25 PM.
Reply With Quote
  #10 (permalink)  
Old 01-05-2008, 11:35 PM
micxuy's Avatar
Casual Pligger
 
Join Date: May 2007
Posts: 87
Hmm it is the same..i have checked your site, it doesnt work also
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[New Hack/Module] MP3 player support for pligg newskicks Questions and Comments 34 12-12-2009 09:23 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development