PDA

View Full Version : The FCKeditor in the "suggest links"


Sergey Ten
01-23-2007, 02:11 PM
The FCKeditor in the "suggest links"

[Open your suggest-link.php]
[Find code]


$gDirSmarty->assign_by_ref('msg', $msg);
$gDirSmarty->assign('error', $error);


[After it add that code]


require_once("classes/DirFckeditor.php");
$Editor = new FCKeditor('description');
$Editor->Value = $content;
$Editor->Height = 300;

$fckeditor = $Editor->CreateHTML();

$gDirSmarty->assign('fckeditor', $fckeditor);


[Save change]


[Open your templates/your_template/suggest-link.tpl]
[Find code]


<textarea name="description" cols="60" rows="8" onKeyDown="textCounter(document.suggest_link.description,docu ment.suggest_link.length,{$config.description_max_ chars})" onKeyUp="textCounter(document.suggest_link.description,docu ment.suggest_link.length,{$config.description_max_ chars})">{if $link.$key}{$link.$key}{else}{$field.default}{/if}</textarea><br />


[Replace with]


{$fckeditor}


[Save change]

P.S. It is MOD just for PRO 2.0

joske
02-16-2007, 08:54 AM
any suggestions for PRO 2.1?

Mominur Rahman
03-03-2007, 07:49 PM
Is it possible to apply in admin panel's listing field and custom listing field?

Mominur Rahman
07-07-2007, 05:42 PM
This mod is not for 2.1.03. Any suggestion for 2.1.03 Aqua Template.

ellan
07-07-2007, 11:49 PM
What is FCKeditor?

ellan
07-09-2007, 09:23 PM
O, sorry, now I know what that is, So, really, are there any suggestions for 2.1 versions?

Buccaneer
08-31-2007, 08:41 PM
Good question - I was surprised to find that fckeditor is not offered for editing listings. Is there now way to enable it? V2.1.03.

ellan
09-02-2007, 05:18 AM
Yeah, it could be a good feature when you edit or add a listing=(

ellan
10-10-2007, 07:21 AM
Dear support, I understand that you have lots of work, but don't forget abnout us please!

Simon Gooffin
10-10-2007, 04:25 PM
Greetings all,
This mod will not be implemented in our next versions. Directory script does not need this functionality, besides html is parsed for security reasons.

If you need articles directory please check xooArticles Script (http://www.xooarticles.com/)

uscasinos
11-02-2008, 10:49 AM
Hi:
How to add FCKeditor in the admin "suggest links"?
http://www.mysite.com/admin/suggest-link.php?id=0

Pleas help me!!
I am still using the PRO2.o for my site.
Thanks.

Sergey Ten
11-03-2008, 03:41 AM
Hello uscasinos,

Try to do:

[ Open your admin/suggest-link.php ]
[ Find code ]


/** define default value **/
$temp = ($link[$value['name']]) ? stripslashes($link[$value['name']]) : $value['default'];
echo "<textarea name=\"{$value['name']}\" cols=\"53\" rows=\"8\">{$temp}</textarea>";


[ Replace with ]


require_once("../classes/DirFckeditor.php");
$Editor = new FCKeditor($value['name']);
$Editor->Value = $temp;
$Editor->Height = 300;
$Editor->Create();


[ Save change ]

Sergey Hmelevsky
11-03-2008, 06:24 AM
Is there any risk of XSS or other holes for malicious users when using FCKEditor in front end?

uscasinos
11-03-2008, 06:28 AM
Hi:
Sergey Ten,Thank you very much.
It works fine.
Another question:
The html code does not work in the view link (link details) pages.
My site runs on version 2.0.where I have set enable option 'Allow HTML ' via "Admin Panel » Configuration » Page Navigation and Listings".

What should I do?
Can you help me?

uscasinos
11-03-2008, 10:27 AM
Hi:
Sergey Ten:
Thanks very much for your help.
------------------------------------

[ Open your admin/suggest-link.php ]
[ Find code ]


PHP Code:
$link[$field_name] = sql(html($field_value,ENT_QUOTES));

[ Replace with ]


PHP Code:
$link[$field_name] = sql($field_value);

[ Save change ]

-----------------------------

The html code works now in the view link (link details) pages.