Home arrow Support arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:[done?] Stuff entered with FCKEditor doesn't pa (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:[done?] Stuff entered with FCKEditor doesn't pa
#11857
tynamite (User)
Fresh Lemon
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
[done?] Stuff entered with FCKEditor doesn't parse 7 Months, 2 Weeks ago Karma: 0  
Stuff entered with FCKEditor doesn't parse as html.
The html code is shown when previewing a question such as
Code:

<b>great</b>

Instead of great

How can I fix this?
 
Logged Logged  
 
Last Edit: 2008/04/08 16:07 By Mazi.
  The administrator has disabled public write access.
#11860
ElMatador69 (Moderator)
LimeSurvey Team
Posts: 1577
graphgraph
User Offline Click here to see the profile of this user
Re:Stuff entered with FCKEditor doesn't parse as h 7 Months, 2 Weeks ago Karma: 31  
# which LimeSurvey build are you using? (if not 4629 ==> Upgrade)
 
Logged Logged  
 
Get in touch with the LimeSurvey Development Team via IRC
If our informations and answers were useful to you, please consider a donation to the LimeSurvey Project!
  The administrator has disabled public write access.
#11864
tynamite (User)
Fresh Lemon
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:Stuff entered with FCKEditor doesn't parse as h 7 Months, 2 Weeks ago Karma: 0  
Version 1.70. I'm using the latest version as from yesterday.
How do I find out the build?
 
Logged Logged  
 
Last Edit: 2008/04/08 14:55 By tynamite.
  The administrator has disabled public write access.
#11866
ElMatador69 (Moderator)
LimeSurvey Team
Posts: 1577
graphgraph
User Offline Click here to see the profile of this user
Re:Stuff entered with FCKEditor doesn't parse as h 7 Months, 2 Weeks ago Karma: 31  
I suggest to add HTML text in source code-mode, else use the WYSIWYG-Editor functions.
 
Logged Logged  
 
Get in touch with the LimeSurvey Development Team via IRC
If our informations and answers were useful to you, please consider a donation to the LimeSurvey Project!
  The administrator has disabled public write access.
#11867
Mazi (Moderator)
Moderator Lime
Posts: 3252
graph
User Offline Click here to see the profile of this user
Re:Stuff entered with FCKEditor doesn't parse as h 7 Months, 2 Weeks ago Karma: 25  
tynamite wrote:
Version 1.70. I'm using the latest version as from yesterday.
How do I find out the build?

The build can be found in the file name (...build4629...).
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#11875
tynamite (User)
Fresh Lemon
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:[done?] Stuff entered with FCKEditor doesn't pa 7 Months, 2 Weeks ago Karma: 0  
I'm using build 4629. The latest one.

I have to resort to using the popup editor where there is a "view page source" icon on the toolbar.

This will help you people developing the script, as it parses the html code right as I used it on my php script. There are three instances of the variable $data or $data["data"], on lines 5, 14 and 19. Replace it as what you use in your script.

include("FCKeditor/fckeditor.php";
include_once "FCKeditor/fckeditor.php";
$oFCKeditor = new FCKeditor('fcktext';
$oFCKeditor->BasePath = "FCKeditor/";
$oFCKeditor->Value = $data["data"];
$oFCKeditor->ToolbarSet = 'desbest';
$oFCKeditor->Width = 620;
$oFCKeditor->Height = 200;
echo $oFCKeditor->CreateHtml();


///////

$data = mysql_real_escape_string(trim($_POST['fcktext']));

//////////

$query = mysql_query("INSERT INTO strips (title, author, content,thumb,comment)
VALUES('$titlep','$logged[username]','$imgurlp','$thumburlp','$data'";
 
Logged Logged  
 
Last Edit: 2008/04/09 10:00 By Mazi.
  The administrator has disabled public write access.
Go to top