MyBB Community Forums

Full Version: NEW - WYSIWYG Rich Text Editor (Build-in BBCode Editor) for MyBB 1.2.3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
pepotiger Wrote:Is it will work with mybb 1.2.3?

Yes, This MOD will work on new version 1.2.3 -
When I go to reply to a PM the Editor doesn't show up...

EG:

[Image: pmwysiwygte1.jpg]
there's no "quoting" possible witht he editor?
I don't think those AJAX features are implemented with the WYSIWYG modification.

Compliments to eCardMAX.com for the WYSIWYG although.
I integrated it to the forum but it gives some errors. When I add smile or clippart, it adds them, however they do not appear on the message after messages are sent. the case is the same when I copy a picture and I add it. What is the reason of this problem?
Hello!

There is an important note I need you guys to re-check:

Inside the script inc/functions.php - Find the code below (line number 2697)

function htmlspecialchars_uni($message)
{
	//EDITOR
	global $_SERVER;

	$message = preg_replace("#&(?!\#[0-9]+;)#si", "&", $message); // Fix & but allow unicode
	$message = str_replace("<","&lt;",$message);
	$message = str_replace(">","&gt;",$message);
	$message = str_replace("\"","&quot;",$message);
	$message = str_replace("  ", "&nbsp;&nbsp;", $message);

	//EDITOR
	if(strpos($_SERVER['PHP_SELF'],"/admin")===false)
		$message=get_hoteditor($message,0);

	return $message;
}

if you access to admin control panel with the URL like this:

http://mysite.com/mybb/xxx_admin_xxx/index.php

then the function above should be changed to

function htmlspecialchars_uni($message)
{
	//EDITOR
	global $_SERVER;

	$message = preg_replace("#&(?!\#[0-9]+;)#si", "&amp;", $message); // Fix & but allow unicode
	$message = str_replace("<","&lt;",$message);
	$message = str_replace(">","&gt;",$message);
	$message = str_replace("\"","&quot;",$message);
	$message = str_replace("  ", "&nbsp;&nbsp;", $message);

	//EDITOR
	if(strpos($_SERVER['PHP_SELF'],"/xxx_admin_xxx")===false)
		$message=get_hoteditor($message,0);

	return $message;
}

Pay attention on this line

if(strpos($_SERVER['PHP_SELF'],"/xxx_admin_xxx")===false)

(replace /admin to /xxx_admin_xxx). After that you have to login to admin CP to re-edit the list of templates below (Copy the HTML code inside Hoteditor_Mod_MyBB.txt and paste it to textbox template - read file Hoteditor_Mod_MyBB.txt for more information)

Quote:editpost
editpost_Hoteditor
newreply
newreply_Hoteditor
newthread
newthread_Hoteditor
postbit_edit
private_send
private_send_Hoteditor
showthread_quickreply
showthread_quickreply_Hoteditor

If you have the problem with this MOD, then give me your Mybb board URL, I need to take a look at your site to see what going on.
i'm slow, you can still quote, all you have to do is press "reply" button Smile

love the editor!
thanks!


do you think it would be possible to integrate a "translit" button into it? in some later version maybe? (translit changes highlighted text into cyrillic)
NJunkies Wrote:When I go to reply to a PM the Editor doesn't show up...

EG:

[Image: pmwysiwygte1.jpg]
Quote:Bug:
Under User CP , when you go to view message and click Reply or Forward link the Hoteditor won't show up.

Instruction to fix:

Use Text editor to open file private.php

#
#-----[ FIND ]------------------------------------------
# ~ line number 305

$quoted['message'] = preg_replace('#^/me (.*)$#im', "* ".$pm['quotename']." \\1", $quoted['message']);

#
#-----[ AFTER, ADD ]------------------------------------------
#

//EDITOR
$message=get_hoteditor($message,0);

DONE - SAVE & CLOSE FILE.
Ok so far but the thread description mod does not show any more anyway of fixing this.
What do you mean? NJunkies was the last person who reported Editor not showing up when PM message. And this bug was fixed (reply #28).

Jim
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24