Skip to:
Content
Pages
Categories
Search
Top
Bottom

integrating fckeditor into wire

Viewing 8 replies - 1 through 8 (of 8 total)
  • Avatar of Gpo1
    gpo1
    Participant

    @gpo1

    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>

    Avatar of Gpo1
    gpo1
    Participant

    @gpo1

    This would give a user the ability to embed media into wire!

    Anyone tried to look at this yet?

    Avatar of Nicola Greco
    nicolagreco
    Participant

    @nicolagreco

    That code is good, but you shouldn’t hack the theme :S

    you should add actions

    Avatar of Gpo1
    gpo1
    Participant

    @gpo1

    Thanks, but how do you add actions and also have you tried it out yet? The idea is to make a newsfeed in activity like FB newsfeed which is normal on other social sites.

    Please amend it if you could !

    Avatar of Gpo1
    gpo1
    Participant

    @gpo1

    Any guidelines on add actions for wire?

    Avatar of Nicola Greco
    nicolagreco
    Participant

    @nicolagreco

    i’m writing a plugin for it, but i’ll release it not before than 14 feb

    Avatar of Gpo1
    gpo1
    Participant

    @gpo1

    Your the guru..Am learning how to write plugins

    Avatar of jschires
    jschires
    Participant

    @jschires

    were you able to get this to work? I have found a few changes, but still unable to display the editor

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.