Skip to content

Commit

Permalink
solve issue with show quick reply forum option 2
Browse files Browse the repository at this point in the history
  • Loading branch information
martec committed Aug 16, 2014
1 parent f108372 commit 9ae9d6f
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions inc/plugins/quickadveditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function quickadveditor_info ()
"website" => "",
"author" => "martec",
"authorsite" => "",
"version" => "3.2.1",
"version" => "3.2.2",
"guid" => "",
"compatibility" => "17*,18*"
);
Expand Down Expand Up @@ -212,6 +212,13 @@ function quickadveditor_activate()
'#' . preg_quote('<span class="smalltext">{$lang->message_note}<br />') . '#i',
'<span class="smalltext">{$lang->message_note}<br />{$smilieinserter}'
);

find_replace_templatesets(
'showthread',
'#' . preg_quote('<body>') . '#i',
'<body>
{$codebutquickedt}'
);
}

function quickadveditor_deactivate()
Expand All @@ -232,6 +239,13 @@ function quickadveditor_deactivate()
'#' . preg_quote('<span class="smalltext">{$lang->message_note}<br />{$smilieinserter}') . '#i',
'<span class="smalltext">{$lang->message_note}<br />'
);

find_replace_templatesets(
'showthread',
'#' . preg_quote('<body>
{$codebutquickedt}') . '#i',
'<body>'
);
}

function mycode_inserter_quick($smilies = true)
Expand Down Expand Up @@ -465,13 +479,16 @@ function mycode_inserter_quick($smilies = true)

function codebuttonsquick () {

global $smilieinserter, $codebutquick, $mybb;
global $smilieinserter, $codebutquick, $codebutquickedt, $mybb;

$codebutquick = mycode_inserter_quick();
$smilieinserter = '';
$smilieinserter = $codebutquickedt = '';
if($mybb->settings['quickadveditor_smile'] != 0) {
$smilieinserter = build_clickable_smilies();
}
if($mybb->settings['quickreply'] == 0) {
$codebutquickedt = mycode_inserter_quick();
}
}

?>

0 comments on commit 9ae9d6f

Please sign in to comment.