Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions inc/plugins/rineditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ function rineditor_inserter_quick($smilies = true)
{
global $db, $mybb, $theme, $templates, $lang, $smiliecache, $cache, $templatelist, $cache;

if (!isset($lang->rineditor)) {
$lang->rineditor = NULL;
}

if (!$lang->rineditor) {
$lang->load('rineditor');
}
Expand Down Expand Up @@ -650,11 +654,11 @@ function rineditor_inserter_quick($smilies = true)

if(!$smiliecache)
{
if(!is_array($smilie_cache))
if(!is_array($smiliecache))
{
$smilie_cache = $cache->read("smilies");
$smiliecache = $cache->read("smilies");
}
foreach($smilie_cache as $smilie)
foreach($smiliecache as $smilie)
{
if($smilie['showclickable'] != 0)
{
Expand All @@ -670,7 +674,7 @@ function rineditor_inserter_quick($smilies = true)
{
reset($smiliecache);

$rinsmiledir = $dropdownsmiliesurl = $dropdownsmiliesdes = $dropdownsmiliesnam = $dropdownsmiliesurlmore = $dropdownsmiliesdesmore = $dropdownsmiliesnamemore = "";
$rinsmiledir = $dropdownsmiliesurl = $dropdownsmiliesdes = $dropdownsmiliesname = $dropdownsmiliesurlmore = $dropdownsmiliesdesmore = $dropdownsmiliesnamemore = "";
$i = 0;

foreach($smiliecache as $smilie)
Expand Down Expand Up @@ -743,6 +747,11 @@ function rineditor_inserter_quick($smilies = true)
}

$plu_vb = $cache->read("plugins");

if (!isset($plu_vb['active']['vbquote'])) {
$plu_vb['active']['vbquote'] = NULL;
}

if($plu_vb['active']['vbquote']) {
$rin_vbquote = 1;
}
Expand Down Expand Up @@ -787,6 +796,10 @@ function rineditor_inserter_quick($smilies = true)

$enbq = '';

if (!isset($settings['rineditor_enb_quick'])) {
$settings['rineditor_enb_quick'] = NULL;
}

if($settings['rineditor_enb_quick']) {
$enbq = 'showthread_start';
}
Expand Down Expand Up @@ -821,6 +834,10 @@ function rineditor () {
}
}

if (!isset($settings['rineditor_quickquote'])) {
$settings['rineditor_quickquote'] = NULL;
}

if($settings['rineditor_quickquote'] && $settings['rineditor_enb_quick']) {
$plugins->add_hook('postbit', 're_quickquote_postbit');
}
Expand All @@ -836,6 +853,10 @@ function re_quickquote_postbit(&$post)
}
}

if (!isset($settings['rineditor_smile'])) {
$settings['rineditor_smile'] = NULL;
}

if($settings['rineditor_smile']) {
$plugins->add_hook("showthread_start", "rineditor_quick");
$plugins->add_hook("private_start", "rineditor_quick");
Expand Down