View Full Version : News Formatting
Paul Maher
02-04-2007, 11:34 PM
New articles don't transfer line carriages in the textareas in the admin news section into html tags on the actual news pages. is there any way to do this automatically for non technical people without having to tell them to use <p></p> and <br /> tags ???
Sergey Ten
02-10-2007, 03:58 PM
Hello Paul!
Which version of eSyndiCat do you use?
Sergey Ten
02-10-2007, 04:08 PM
Hello Paul!
I think it will help you.
[ Open your admin/manage-news.php ]
[ Find code ]
$body = !empty($_POST['body']) ? $_POST['body'] : $one_news['body'];
echo "<td><textarea name=\"body\" cols=\"56\" rows=\"7\">".html($body)."</textarea></td>";
[ Replace with ]
$body = !empty($_POST['body']) ? $_POST['body'] : $one_news['body'];
require_once(CLASSES . "DirFckeditor.php");
$Editor = new FCKeditor('body');
$Editor->Value = $body;
$Editor->Height = 300;
$fckeditor = $Editor->CreateHTML();
$body = $_POST['body'] ? $_POST['body'] : $one_news['body'];
echo "<td>{$fckeditor}</td>";
[ Save change ]
P.S. It is for PRO 2.1
How about for the root description: or any other?
how can I set the WYSIWYG for certain text areas?
Thanks
Paul Maher
02-13-2007, 01:15 AM
Thanks .....
Sergey Ten
02-14-2007, 06:35 PM
Hello issy!
Following directives:
[ Open your admin/suggest-category.php ]
[ Find code ]
/** get info about parent category **/
if($config->get('categories_list') && isset($_POST['id']) && ctype_digit($_POST['id']))
{
$id_parent = (int)$_POST['id'];
}
[ After add that code ]
require_once(CLASSES . "DirFckeditor.php");
$Editor = new FCKeditor('body');
$Editor->Value = isset($_POST['description']) ? html($_POST['description']) : '';
$Editor->Height = 300;
$fckeditor = $Editor->CreateHTML();
[ Find code ]
<td><textarea name="description" cols="43" rows="8"><?php echo isset($_POST['description']) ? html($_POST['description']) : ''; ?></textarea></td>
[ Replace with ]
<td><?php echo $fckeditor; ?></td>
[ Save change ]
ellan
09-19-2007, 12:18 AM
Is it possible to implement FCK or any other editor to suggest link page?
Mominur Rahman
12-27-2007, 08:04 PM
Hello Paul!
I think it will help you.
[ Open your admin/manage-news.php ]
[ Find code ]
$body = !empty($_POST['body']) ? $_POST['body'] : $one_news['body'];
echo "<td><textarea name=\"body\" cols=\"56\" rows=\"7\">".html($body)."</textarea></td>";
[ Replace with ]
$body = !empty($_POST['body']) ? $_POST['body'] : $one_news['body'];
require_once(CLASSES . "DirFckeditor.php");
$Editor = new FCKeditor('body');
$Editor->Value = $body;
$Editor->Height = 300;
$fckeditor = $Editor->CreateHTML();
$body = $_POST['body'] ? $_POST['body'] : $one_news['body'];
echo "<td>{$fckeditor}</td>";
[ Save change ]
P.S. It is for PRO 2.1
How to make it work with v2.2?
How to make it work with v2.2?
Please post questions in regards to 2.2 version in this area:
http://www.esyndicat.com/forum/forum-75.html
Thanks
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.