News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

WysiBB for SMF

Started by Bugo, September 27, 2012, 11:46:19 AM

Previous topic - Next topic

joeyjojoshabadoo

anyone any idea what's happening here no?

thanks

Gryzor

Quote from: joeyjojoshabadoo on December 23, 2012, 05:42:37 PM
anyone any idea what's happening here no?

thanks

Apart from it being Christmas? What on earth do you mean?

Gryzor

Quote from: jack001 on December 20, 2012, 12:12:27 PM
everything went perfect and worked for a day.. but today when i checked my forum i see strange characters again!!! Mod help please!!

Ok, last night my RAMdrive (where I store my browser's cache) had a problem and I had to format it. Just prior to it I had the "strange symbols" issue again, but right after formatting/deleting the cache and visiting my forum again the problem was gone. So maybe it'd be worth checking...

joeyjojoshabadoo

Quote from: Gryzor on December 24, 2012, 02:44:54 AM
Quote from: joeyjojoshabadoo on December 23, 2012, 05:42:37 PM
anyone any idea what's happening here no?

thanks

Apart from it being Christmas? What on earth do you mean?

I meant as to why it's still happening, or any new ideas on how to fix it ( that recent post of yours didnt work)

Gryzor

Do you have the problem on different browsers/systems?

This morning I had the issue again, but now it's gone. It really looks random...

Adrek

#45
Quote from: phantomm on November 17, 2012, 05:19:36 AM
Are you planning on adding this editor instead default editor in actions post, post2 and pm?

I tried to do this and I think it works.. *

After installing mod package there are required few edits:
In Subs-WysiBB.php
Code (Find) Select

if (WIRELESS || empty($modSettings['enableBBC']) || in_array($context['current_action'], array('helpadmin', 'post', 'post2', 'printpage'))) return;
if (empty($options['display_quick_reply']) || empty($_REQUEST['topic'])) return;

Code (Replace with) Select

//if (WIRELESS || empty($modSettings['enableBBC']) || in_array($context['current_action'], array('helpadmin', 'post', 'post2', 'printpage'))) return;
if (WIRELESS || empty($modSettings['enableBBC']) || in_array($context['current_action'], array('helpadmin', 'printpage'))) return;
//if (empty($options['display_quick_reply']) || empty($_REQUEST['topic'])) return;


Post.template.php and PersonalMessage.template.php
Code (Find) Select

', template_control_richedit($context['post_box_name'], 'smileyBox_message', 'bbcBox_message');

Code (Replace with) Select

', template_control_richedit($context['post_box_name']);



* if someone thinks that Coding Discussion is better place for this, please move this post :)


Edit:
On clean install (with WysiBB and Ohara YouTube Embed) YT videos don't work.

After saving post it shows only
, or is it compatible with other mod?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Badboy

Thanks for the tip and you can use YouTube BBCode.
Nothing is true, everything is permitted.

Adrek

Yes, it works with this mod :) Thanks
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Badboy

#48
@phantomm tested your code but there are some problems.

1) Post area have 2 textareas. To fix that
open genericcontrols.template.php
Code (FIND) Select
<textarea class="editor" name="', $editor_id, '" id="', $editor_id, '" rows="', $editor_context['rows'], '" cols="600" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '" style="height: ', $editor_context['height'], '; ', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>

Code (REPLACE) Select
<textarea class="editor" name="', $editor_id, '" rows="', $editor_context['rows'], '" cols="600" tabindex="', $context['tabindex']++, '" style="height: ', $editor_context['height'], '; ', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? 'border: 1px solid red;' : '', '">', $editor_context['value'], '</textarea>

2) On post screen below textarea quote function not working. Didn't find the solution yet :-\
Nothing is true, everything is permitted.

Adrek

Sometimes there are two textareas, no idea why it only happens on some forums, maybe conflict with other jQuery mod?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Badboy

I don't know too. But the reason seems like textarea id. I only deleted id part and it worked.
Nothing is true, everything is permitted.

jack001

someone fix the bug and reupload it.
https://www.edufor.xyz Edutainment forum - Education with Entertainment!

Mr. Pedram

Hi,
i use RTL page, but this problem occured, how to fix this?

My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Bugo

What translation are you using?

Badboy

@Bugo

Pls see the replies 45 and 48. Is there any chance to fix the quote function problem to use this mod with post screen too?


Thx.
Nothing is true, everything is permitted.

Bugo

This mod is only for Quick Reply form, sorry.

Mr. Pedram

My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Mr. Pedram

My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Bugo

There's a css hack. Just add this rule to your index.css:
.wysibb .wysibb-toolbar {
    padding: 0 80px 0 4px !important;
}

Mr. Pedram

Quote from: Bugo on January 22, 2013, 01:02:22 AM
There's a css hack. Just add this rule to your index.css:
.wysibb .wysibb-toolbar {
    padding: 0 80px 0 4px !important;
}


Much appreciated, it works!
Thanks
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Advertisement: