The function cbGetParam with _MOS_ALLOWHTML doesn't seem to work, use mosGetParam instead. You need to make the following changes
components/com_groupjive/groupjive.html.php lines 516
| Code: |
if($gjConfig['wysiwyg']) {
$post = mosGetParam($row, 'post', '', _MOS_ALLOWHTML);
}
|
components/com_groupjive/gj/core/bulletin.php lines 181 & 279
| Code: |
if( $gjConfig['wysiwyg']) {
$post = mosGetParam( $_POST, 'gj_message', "",_MOS_ALLOWHTML );
} else {
$post=cbGetParam($_POST,'gj_message','');
}
|
| Code: |
if( $gjConfig['wysiwyg'] ) {
$textpost = mosGetParam( $_POST, 'gj_message', "",_MOS_ALLOWHTML );
} else {
$textpost=trim(cbGetParam($_POST,'gj_message',''));
}
|
Also, I had a lot of problems getting the editor to display in the right place in the bulletin template. I had to change the call with the constant 'message' to 'gj_message' since the function uses the id in the template to determine the position of editor and message already exists.
components/com_groupjive/groupjive.html.php lines 320 & 534
| Code: |
$editor = '';
if( $gjConfig['wysiwyg'] ) {
// parameters : areaname, content, hidden field, width, height, rows, cols
$inputbox = $_CB_framework->displayCmsEditor( 'gj_message', '', $gjConfig['wysiwyg_width'], $gjConfig['wysiwyg_height'], $gjConfig['wysiwyg_cols'], $gjConfig['wysiwyg_rows'] );
$note = '';
$editor = 'editor';
} else {
$inputbox = '<textarea name="gj_message" cols="40" rows="8" class="inputbox"></textarea><br/>';
$note = '* '.GJ_HTML_NOT_ALLOW;
}
|
| Code: |
$tmpl->addVar( 'bulletin', 'EDITOR', $editor );
|
components/com_groupjive/templates/default/bulletin.tmpl line 95
| Code: |
<div class="gj_leave_message-area" id="{EDITOR}gj_message">
{GJ_INPUTBOX}
</div>
|
components/com_groupjive/gj/core/bulletin.php
change message to gj_message (changes displayed above) lines 181 & 279
I hope this makes some sense.