Hello

September 07, 2010, 05:01:49 PM *
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: Try sNews 1.7 DEMO
 
   Home   Help Search Login Register  
Pages: 1 2 [3] 4
  Print  
Author Topic: FCKEditor for snews 1.7  (Read 14326 times)
stephane
Full Member
***

Karma: 3
Posts: 142



« Reply #30 on: January 10, 2009, 03:31:32 PM »

YES it's working fine  Smiley Smiley

Thanks exidaco that is the good solution.
Karma for you  Wink


Arggggggg....
It's working fine for aticles but not for extra content  Huh
Can't find in // EXTRA CONTENT a place to put the same kind of code that above.
« Last Edit: January 10, 2009, 05:12:12 PM by stephane » Logged

Join the campaign Death to IE6
jean01
Newbie
*

Karma: 0
Posts: 46


« Reply #31 on: February 14, 2009, 09:22:13 AM »

Just a few notes that may help someone else . . .

1.  You need to read the FCKeditor configuration information to understand what it is doing.  The security configuration items in the php section are important.

2. You need to save using sNews, not using FCKeditor so in your editor configuration you need to remove the save button.   FCKeditor is designed to save html files to your server and we are saving our html to a database.

If you know some php, javascript etc. and you are persistent, you will end up with a very nice editor.  Implementing it the second time will be a piece of cake!!

good luck

« Last Edit: February 21, 2009, 12:25:01 AM by jean01 » Logged
Patric Ahlqvist
Nobodys perfect, but Im pretty effing close
Administrator
ULTIMATE member
******

Karma: 65
Posts: 4916


“I'm a self-made man and worships my creator.”


WWW
« Reply #32 on: February 23, 2009, 06:08:17 PM »

confirms working mod. Fecking great. This will be of great aid for my newbie clients... Karma to all of ya, but mostly Moshy-man Wink
Logged

My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs
edsil
Jr. Member
**

Karma: 4
Posts: 92



« Reply #33 on: March 01, 2009, 12:29:55 AM »

Big problem using 1.7 updated version (january 2009), the editor is not working as in the previous version... I have problems with french and spanish accents.
Also there are problems with reordering categories/subcategories and articles... it is not working...
Can anybody help me with this please?!...  Cry
THANKS a lot

PS: I read that next sNews version will have its own editor... do you know when it will comes out?
« Last Edit: March 01, 2009, 02:02:23 PM by edsil » Logged
edsil
Jr. Member
**

Karma: 4
Posts: 92



« Reply #34 on: March 01, 2009, 02:24:50 PM »

Well indeed I think I found the problem (bug):
When I go to settings (into the admin panel control) and I disable "Display number of articles next to a category" the reordering fonction is not working
Accents are not still working

thanks for help you can bring
Logged
iosephos
Guest
« Reply #35 on: March 07, 2009, 07:27:51 AM »

hello i am using fckeditor in the website and i have the apostroph error it doesn't show up in the out i am using this code for it :

<? $allquery = "SELECT * FROM txtfixe WHERE id_txtfixe = 1 limit 1";
                        $allresult = mysql_query($allquery) or die("Error: " . mysql_error());
                        $num = mysql_num_rows( $allresult);
                        while ($author = mysql_fetch_array($allresult))
                     
                              {
                                 $txtfixe = htmlentities($author ["txtfixe"]);} ?>


the out put is :

                                                                 <?=$txtfixe?>

can anyone help please ? most of the text in the web is in french lang and the apostroph doesnt show up , ex : l'école in the output its like this  l&#39;école .

any help please.
Logged
Patric Ahlqvist
Nobodys perfect, but Im pretty effing close
Administrator
ULTIMATE member
******

Karma: 65
Posts: 4916


“I'm a self-made man and worships my creator.”


WWW
« Reply #36 on: March 07, 2009, 02:53:10 PM »

Mhm.. "Big problem using 1.7 updated version (january 2009)", is working for me.
Logged

My sNews site
"It's only dead fish that goes with the flow... "
Updated, online again - Free designs
stephane
Full Member
***

Karma: 3
Posts: 142



« Reply #37 on: April 07, 2009, 06:15:43 PM »

A little up for this topic.
I still have a problem with accents. In snews.php I put the exidaco solution and it's ok for all the content display in Center
function. But not in Extra ! As you can see on this test image. (snews last update : 1.4 and last stable version of FCK : 2.6.4)



Any idea ?
Logged

Join the campaign Death to IE6
Joost
Guest
« Reply #38 on: April 07, 2009, 07:09:30 PM »

Search for function file_include and remove:

Code: (function file_include)
<?php
if(substr_count ($fulltext'&')>0){$fulltext str_replace('&''&amp;'str_replace('&amp;''&'$fulltext));}
?>
Logged
stephane
Full Member
***

Karma: 3
Posts: 142



« Reply #39 on: April 07, 2009, 07:33:21 PM »

YES  Smiley Smiley Smiley
Its' working Thanks Joost. (karma for you  Wink
Logged

Join the campaign Death to IE6
stephane
Full Member
***

Karma: 3
Posts: 142



« Reply #40 on: May 11, 2009, 05:34:54 PM »

Argggggggggg.....

It's working fine for extra content but now, I can't have the & code in htmlentities (&amp;)  Huh in function center !

Very strange FCKEditor with snews 17.

Any idea ?

Logged

Join the campaign Death to IE6
stephane
Full Member
***

Karma: 3
Posts: 142



« Reply #41 on: May 28, 2009, 12:52:43 PM »

A little up  Undecided

Problem resume :
When I remove in function file_include
Code:
<?php
if(substr_count ($fulltext'&')>0){$fulltext str_replace('&''&amp;'str_replace('&amp;''&'$fulltext));}
?>

I got correct htmlentities in extra content (accents, &, etc...)
BUT I got an incorrect & in function center.

If I don't remove the above sentence in file_include I got incorrect htmlentities in extra
BUT correct &amp; in center

Strange isn't it ?
Logged

Join the campaign Death to IE6
stephane
Full Member
***

Karma: 3
Posts: 142



« Reply #42 on: June 06, 2009, 10:26:22 AM »

Hello,
Problem solve, for the moment  Roll Eyes

I found in my function articles a missing statement.
Code:
file_include(str_replace('[break]', '',$text), $shorten);
should be :
file_include(str_replace('[break]', '',str_replace('&', '&amp;', $text)), $shorten);

I also add the Mod  jump link for the read more function and everything seems working good  Cheesy
Code:
file_include(str_replace('[break]', '<a id="jump"></a>',str_replace('&', '&amp;', $text)), $shorten);

Logged

Join the campaign Death to IE6
ufoss
Newbie
*

Karma: 0
Posts: 8


« Reply #43 on: October 20, 2009, 11:18:00 AM »

i have a error image upload
Please check the "editor/filemanager/connectors/php/config.php

have can i solve that

Thanks
Logged
ufoss
Newbie
*

Karma: 0
Posts: 8


« Reply #44 on: October 20, 2009, 12:00:31 PM »

i have a error image upload
Please check the "editor/filemanager/connectors/php/config.php

have can i solve that

Thanks

I solved issue

Solutions is
Enabling the connector
To enable the connector simply open the file "editor/filemanager/connectors/php/config.php" under your FCKEditor root and locate the following line:

$Config['Enabled'] = false ;
Change it to this:

$Config['Enabled'] = true ;
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!