Welcome, Guest
Please Login or Register.    Lost Password?
Pre-RC Confirmed Bugs
Go to bottomPage: 123
TOPIC: WYSIWYG Error - bulletins do not rich format
#6178
WYSIWYG Error - bulletins do not rich format 3 Years ago Karma: 0
Hi - confused as to where to post but....

I an using 1.7 v0.29a Groupjive on CB framework and I am finding that bulletins are not formatting at all even though I use the joomla default editor. This is happening on two new joomla 1.5.8 websites.

Basically, no matter how you format the bulletin you just get text - bullets, formating etc etc all lost.

Any ideas anyone? I have scoured the settings tab but nothing.

Help appreciated.

Regards
Dave
applestone
Newbie
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/01/12 18:17 By applestone.
The topic has been locked.
 
#6394
Re:WYSIWYG Error - bulletins do not rich format 3 Years ago Karma: 0
Me too, I hope we can find a solution to this, all my sute users are frustated with this issue of the editor.
So I use no WYSIWYG editor then at least I don't use line breaks.
Even if BB code would be allowed would be good.
Thank you for listening to our nags braineater!
mitchpc
Newbie
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#6395
Re:WYSIWYG Error - bulletins do not rich format 3 Years ago Karma: 2
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.
StephW
Newbie
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#6413
Re:WYSIWYG Error - bulletins do not rich format 3 Years ago Karma: 0
Thank you so much for going through the trouble of fixing this, here's the result of my trying it:
Above solution works (with tiny mce editor), except when you want to re-edit a bulletin, it wont save the changes and gives this error:
Code:

Warning: Missing argument 1 for bulletin_controller::savepost(), called in .../administrator/components/com_groupjive/groupjive.class.php on line 902 and defined in .../components/com_groupjive/gj/core/bulletin.php on line 257


attached files are my edits:
groupjive version ...29a
File Attachment:
File Name: corrected_editor_version__29a.zip
File Size: 11042
mitchpc
Newbie
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/02/02 18:44 By mitchpc.
The topic has been locked.
 
#6416
Re:WYSIWYG Error - bulletins do not rich format 3 Years ago Karma: 25
Nice catch... simple suggested fix. Thank you for this Steph (Karma +1)

I would be careful, though, of moving away from the CB API, when the project is certainly moving towards full CB API. That being said, continue to test the suggested fix, I am going to try to find out why _MOS_ALLOWHTML is not working...

Aaron.
Braineater
Moderator
Posts: 189
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/02/02 19:32 By Braineater.
The topic has been locked.
 
#6422
Re:WYSIWYG Error - bulletins do not rich format 3 Years ago Karma: 2
Mitchpc,

I think your problem is itemid in missing. I didn't give you my files because I was doing a lot hacking.

Look at "Itemid missing on Form tags in templates" in the forum. Go through all your tmpl files and make sure the itemid is
included either in the action field or as a hidden field.

Mitch after testing your files try using the one I've attached.

Hey Braineater, If you really like my suggestion can I have a copy of your template?
StephW
Newbie
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/02/02 21:49 By StephW.
The topic has been locked.
 
Go to topPage: 123
Moderators: Braineater
RocketTheme Joomla Templates