I’ve installed fckeditor in the member-themesbuddypress-memberwire folder where post-form.php resides.
Now from the http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Integration/PHP
I’ve followed the guide but not sure whether its correct. So can someone check this code and correct it if needed?
<?php
include_once(“/wire/fckeditor/fckeditor.php”) ;
?>
<div id=”wire-post-new”>
<form action=”<?php bp_wire_get_action() ?>” id=”wire-post-new-form” method=”post”>
<div id=”wire-post-new-metadata”>
<?php bp_wire_poster_avatar() ?>
<?php printf ( __( ‘On %1$s %2$s said:’, “buddypress” ), bp_wire_poster_date( null, false ), bp_wire_poster_name( false ) ) ?>
</div>
<div id=”wire-post-new-input”>
<?php bp_custom_wire_boxes_before() ?>
<textarea name=”wire-post-textarea” id=”wire-post-textarea”></textarea>
<?php
$oFCKeditor = new FCKeditor(‘FCKeditor1’) ;
$oFCKeditor->BasePath = ‘/fckeditor/’ ;
$oFCKeditor->Value = ‘<p>This is some sample text. You are using FCKeditor.</p>’ ;
$oFCKeditor->Create() ;
?>
<?php if ( bp_wire_show_email_notify() ) : ?>
<p><input type=”checkbox” name=”wire-post-email-notify” id=”wire-post-email-notify” value=”1″ /> <?php _e( ‘Notify members via email (will slow down posting)’, ‘buddypress’ ) ?></p>
<?php endif; ?>
<?php bp_custom_wire_boxes_after() ?>
<input type=”submit” name=”wire-post-submit” id=”wire-post-submit” value=”Post »” />
</div>
</form>
</div>