Hello

September 10, 2010, 10:00:08 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
What sNews Is: - sNews is a simple, basic, customizable CMS tool suitable for developers with beginner-to-advanced PHP skills. It is also useful to have a good working knowledge of how to work with, set up and manage MySQL databases. sNews is not - geared towards the end-user who knows little or nothing about building and developing PHP-MySQL based websites.
News: Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.
 
   Home   Help Search Login Register  
Pages: 1 [2] 3 4
  Print  
Author Topic: FCKEditor for snews 1.7  (Read 14351 times)
studio
Newbie
*

Karma: 1
Posts: 7


WWW
« Reply #15 on: November 13, 2008, 06:36:25 PM »

It works!
Thank you
Logged

edsil
Jr. Member
**

Karma: 4
Posts: 92



« Reply #16 on: November 17, 2008, 09:21:19 PM »

Hey Mosh!!!!
Really thanks for your help... I'm using FCKEditor and the line you posted... I have no more problems with accents in my articles (french and spanish accents).

Are you the real Mr P-Mosh?....

catch this:
MR P-MOSH

This was a tube on the late 90's (1998) in latin america... hope you like it...  Wink
Logged
Shaun Aneiros
Jr. Member
**

Karma: 2
Posts: 98



WWW
« Reply #17 on: November 21, 2008, 07:08:13 AM »

I found this on the web while I was messing around with Youtube on my site... I take no credit for it but thought someone here that uses FCK might like this feature....

Basicly it adds a Youtube button so that you don't have to embed every youtube video you want to post on your site!

the full article is here: http://webdevnews.net/2008/10/adding-a-youtube-button-to-fckeditor-in-drupal/

but the jest of it is:

download youtube plug in: http://sourceforge.net/projects/youtubepluginfo/

then dump that file in /fckeditor/plugins/youtube

after that: Download and open the fckeditor.config.js file from the main module folder.

then add the following code to the bottom of the file:

Code:
FCKConfig.Plugins.Add( 'youtube', 'en,ja' ) ;

then you need to change a string from this:

Code:
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],

To This:
Code:
['Image','Flash', 'YouTube','Table','Rule','Smiley','SpecialChar','PageBreak'],

notice the new YouTube line!

Save the config.js file to your site and you are all set to go... need to clear cookies and java but hey It works Awesome!

See it work right before your eyes http://poorpeoplesparty.org/news/test-the-youtube/
« Last Edit: November 21, 2008, 07:19:12 AM by Shaun Aneiros » Logged

Why does my daughter like me to pose for pictures with my angry face?
mosh
Sr. Member
****

Karma: 63
Posts: 415



WWW
« Reply #18 on: November 21, 2008, 07:47:49 AM »

@edsil - heheh thank you edsil for that clip, i like it alot  Grin

@shaun cool adition to this great editor,
mostly when i need youtube on my article,
i just copy past the code they provid Smiley

karma ++ 4 sharing
awesome day 2 all
Logged

Shaun Aneiros
Jr. Member
**

Karma: 2
Posts: 98



WWW
« Reply #19 on: November 22, 2008, 06:17:54 AM »

So I noticed that my spell checker didn't work on the FCKeditor  Sad  and I am a really bad speller... I live in America and I think most of you can type better english then me!

So off to the web surfing I went... Came across this file on sourceforge.net http://sourceforge.net/tracker2/download.php?group_id=75348&atid=737639&file_id=286844&aid=1856428 it's a spell checker that works!

you have to add some code to bottom of the config.js file in FCK
Code:
FCKConfig.PluginsPath='plugins/';
FCKConfig.Plugins.Add('pspellcheck');

where "plugins/" is please change to your plugins folder path!!!!

dump the file in the plugins and refresh java and fck youre all good to go!

want the original article on this? http://sourceforge.net/tracker2/?func=detail&aid=1856428&group_id=75348&atid=737639
Logged

Why does my daughter like me to pose for pictures with my angry face?
poppoll
Full Member
***

Karma: 47
Posts: 200



WWW
« Reply #20 on: November 23, 2008, 02:44:14 AM »

Thanks Mosh
karma + 4 u
PP
Logged
Storkk
Newbie
*

Karma: 0
Posts: 17



« Reply #21 on: November 23, 2008, 07:38:08 AM »


Not working 4 me   Cry



Not Found

The requested document was not found on this server.




i use
FCKeditor 2.6.3

and



« Last Edit: November 23, 2008, 07:40:37 AM by Storkk » Logged

Super >Junior> HTML/CSS      php:(
Shaun Aneiros
Jr. Member
**

Karma: 2
Posts: 98



WWW
« Reply #22 on: November 23, 2008, 10:40:09 AM »

ahhh.... at the bottom where the fck editor is there is a path that you need to specify for your site.... it is not set right buy default!
Code:
$oFCKeditor->BasePath = '/snews_root_dir_here/fckeditor/';
Logged

Why does my daughter like me to pose for pictures with my angry face?
jubi
Guest
« Reply #23 on: November 25, 2008, 03:32:51 AM »

hello Smiley
try this:
open snews.php, in function articles, find and comment out line
Code:
file_include(str_replace('[break]', '',str_replace('&', '&', $text)), $shorten);

replace it with
Code:
file_include(str_replace('[break]', '',$text), $shorten);

that should work Smiley
Hi, somehow i don't have that line in my snews.php, instead i already have a line
Code:
file_include(str_replace('[break]', '',$text), $shorten);
in function articles()
It still shows  's in f.e. tables with empty cells
Logged
mosh
Sr. Member
****

Karma: 63
Posts: 415



WWW
« Reply #24 on: November 25, 2008, 08:55:55 PM »

@jubi
i think this problem is more fck related,
you could try to change some settings in fckeditor/fckconfig.js

try:
FCKConfig.ProcessHTMLEntities = true ;
FCKConfig.FillEmptyBlocks   = false ;

hope it help Smiley
« Last Edit: November 25, 2008, 08:57:40 PM by mosh » Logged

stephane
Full Member
***

Karma: 3
Posts: 142



« Reply #25 on: January 09, 2009, 03:10:12 PM »

Hello,
Actually I'm trying the news 17 version. I also have a problem with FCK. Website, database,... are in UTF-8 as I was doing with 16 version.
But if FCK works well, all the é à ç <p>&nbsp;</p> are not converted when we publish article !
If I set (in FCK)
FCKConfig.ProcessHTMLEntities = true ; 
FCKConfig.FillEmptyBlocks   = false ;

---> It's working But all the <p>&nbsp;</p> are empty and doesn't work as they should.
This solution is not convenient for a real use  Sad

I think there is something new in this version of snews 17 that miss up FCK, but what ?  Huh Huh

I also try with snews set with iso-8859-1 but it's the same, sic...
I know it's a real mess all this accents in specific language, everybody should use English and the problem are gone  Grin

Stephane
Logged

Join the campaign Death to IE6
Joost
Guest
« Reply #26 on: January 09, 2009, 03:25:37 PM »

Changing FCKConfig.FillEmptyBlocks   = false ; back to FCKConfig.FillEmptyBlocks   = true ;
Would that help?
Logged
stephane
Full Member
***

Karma: 3
Posts: 142



« Reply #27 on: January 09, 2009, 06:53:06 PM »

Unfortunately no, in this case I have a <p>#160</p>  Tongue

Not better
Logged

Join the campaign Death to IE6
mosh
Sr. Member
****

Karma: 63
Posts: 415



WWW
« Reply #28 on: January 09, 2009, 07:25:23 PM »

for empty blocks to be visible there has to be at least one object or a space ( &nbsp; ),
it is not an error, its a feature Smiley
« Last Edit: January 09, 2009, 08:14:23 PM by mosh » Logged

exidaco
Newbie
*

Karma: 1
Posts: 1


« Reply #29 on: January 09, 2009, 11:04:20 PM »

hello jubi

.......
It still shows &nbsp;'s in f.e. tables with empty cells

Try this (tested with sNews1.7 - whizzywig editor):

find in //ARTICLES :
Code:
$text = stripslashes($r['text']);

insert after:
Code:
$text = str_replace('&nbsp;', '&#160;' , $text);
$text = html_entity_decode( $text, ENT_QUOTES, "utf-8" );
It works fine for me ...
« Last Edit: January 10, 2009, 01:13:47 PM by exidaco » Logged
Pages: 1 [2] 3 4
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!