MyBB Community Forums

Full Version: Advanced WYSIWYG Editor
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
When is the release of the version 1.2 ? Smile

My problem was, when i activate this plugin, Quick Theme changer is not working, Why?
Like the MyBB staff always say "It will be released when it's ready". Toungue
Your forum is http://www.nadlerzforum.com right? The theme changer works for me..

(2011-07-13, 03:25 PM)RazielxD Wrote: [ -> ]So, This editor will overwrite the default MyBB editor in:
- Quick Reply
- Advanced Reply
- Private Massages

How about calendar events, and Signature edition site?
PS. The default theme is better than old one. Smile Keep working!

Totally forgot them, I will add them definitely in 1.2.
Awesome Smile
Thanks for your work!
Yes, the quick theme changer works fine when i disable the Advanced WYSIWYG Editor.

But, when I enable it.. It will no longer works Sad
Advanced WYSIWYG Editor 1.2 is now out!

What's new?
  • Multi Quote Support
  • New Default Theme
  • Setting for "New Event" Page
  • Many small bug fixes

[attachment=23483]

How to Update?
In order to update Adv. WYSIWYG Editor to 1.2 you need to deinstall the plugin and install it then again. Otherwise it may happen that the plugin doesn't work properly.

Download Adv. WYSIWYG Editor 1.2
(2011-07-23, 04:52 PM)Simon S. Wrote: [ -> ]Advanced WYSIWYG Editor 1.2 is now out!

What's new?
  • Multi Quote Support
  • New Default Theme
  • Setting for "New Event" Page
  • Many small bug fixes



How to Update?
In order to update Adv. WYSIWYG Editor to 1.2 you need to deinstall the plugin and install it then again. Otherwise it may happen that the plugin doesn't work properly.

Download Adv. WYSIWYG Editor 1.2

Thanks very much...
i will test...
I tested...

i found one error...

smiles of javascript:clickableEditor.openGetMoreSmilies('clickableEditor'); (button of more smiles)

not work...

Ps.[/align]
I can change

[align=left][/align] to [left][/left]
[align=center][/align] to [center][/center]
[align=right][/align] to [right][/right]
[align=justify][/align] to [justify][/justify]
?
Can you add something like:
<script type="text/javascript">jQuery.noConflict();</script>


Because, after activating this plugin.
All quick theme changer doesn't work anymore Sad
I need some fix for the quick theme changer conflict


I'm using Quick Theme OnChange (2.0) plugin that conflicts with this one:

Quick Theme OnChange (2.0)
Allow users to quickly change their themes.
Created by EviLito > http://community.mybboard.net/user-10968.html
noConflict() won't change anything, because this editor is using Prototype (the js library which MyBB is using). The only solution I can think of for this right now is adding a submit button next to the select box.
<input type="submit" value="Change Theme" />

@martec Will be fixed in 1.2.1. I've attached the fixed plugin file to my post, just upload it to inc/plugins and the smilie popup should work again.

[attachment=23491]

Quick edit can you fix with the tread.js
place it in the WYSIWYG_quickedit template
This the code for Quick Theme:

Quote:<?php

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

$plugins->add_hook("pre_output_page", "quickthemeoc_run");
$plugins->add_hook("index_start", "quickthemeoc_update");
$plugins->add_hook("global_start", "quickthemeoc_global");

function quickthemeoc_info()
{
return array(
"name" => "Quick Theme OnChange",
"description" => "Allow users to quickly change their themes.",
"website" => "http://mods.mybboard.net",
"author" => "EviLito",
"authorsite" => "http://community.mybboard.net/user-10968.html",
"version" => "2.0",
"compatibility" => "16*",
"guid" => "01d65dc78eac227f93dd09b143fccd35",
);
}

function quickthemeoc_activate()
{
global $db;

require MYBB_ROOT.'/inc/adminfunctions_templates.php';
find_replace_templatesets("footer", '#'.preg_quote('<!-- End powered by -->').'#', '<!-- End powered by --><quickthemeoc>');
}

function quickthemeoc_deactivate()
{
global $db;

require MYBB_ROOT.'/inc/adminfunctions_templates.php';
find_replace_templatesets("footer", '#'.preg_quote('<quickthemeoc>').'#', '', 0);
}

function quickthemeoc_run($page)
{
global $mybb, $db, $lang;

$lang->load("usercp");

$list_label = $lang->style;

$theme_select = build_theme_select("style", $mybb->user['style']);

if(strpos($theme_select, '</select>') === false)
{
$theme_select .= '</select>';
}

$theme_select = str_replace("<select", "<select onchange=\"this.form.submit()\" class=\"smalltext\"", $theme_select);

$data = "\n<form method=\"post\" action=\"./index.php?action=quickthemeoc\">\n";
$data .= "<span class=\"smalltext\"><strong>".$list_label." </strong></span><input type=\"hidden\" name=\"uid\" value=\"{$mybb->user['uid']}\" />";
$data .= $theme_select."\n</form>";

preg_match('#'.preg_quote('<quickthemeoc>').'#i', $page, $matches);
if($matches[0])
{
$page = str_replace($matches[0], $data, $page);
}

return $page;
}

function quickthemeoc_update()
{
global $mybb, $db, $lang;

if($mybb->input['action'] == 'quickthemeoc')
{
if(isset($mybb->input['style']) && $mybb->request_method == "post" || $mybb->request_method == "get")
{
$lang->load('usercp');

if($mybb->user['uid'])
{
$db->update_query("users", array('style' => intval($mybb->input['style'])), "uid='{$mybb->user['uid']}'");
}
else
{
if(intval($mybb->input['style']) == 0)
{
my_unsetcookie('quickthemeoc');
}
else
{
my_setcookie('quickthemeoc', intval($mybb->input['style']));
}
}

redirect($_SERVER['HTTP_REFERER'], $lang->redirect_optionsupdated);
}
}
}

function quickthemeoc_global()
{
global $mybb;

if($mybb->user['uid'] == 0 && intval($mybb->cookies['quickthemeoc']) > 0)
{
$mybb->user['style'] = intval($mybb->cookies['quickthemeoc']);
}
}

?>

How / Where to add this code: <input type="submit" value="Change Theme" /> ?
Sad
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17