#
#
files/img/quick_mod_tools/ to /img/quick_mod_tools files/include/quick_mod_tools/ to /include/quick_mod_tools files/lang/English/quick_mod_tools.php to /lang/English/quick_mod_tools.php
#
#
header.php
#
#
if (isset($page_head))
#
#
if (basename($_SERVER['PHP_SELF']) == 'viewforum.php') { $page_head['jquery'] = '';
$page_head['qmt_css'] = '<link rel="stylesheet" type="text/css" href="https://github.com/daris/fluxbb-quick-mod-tools/blob/master/'.get_base_url(true).'/include/quick_mod_tools/style.css" />';
if (file_exists(PUN_ROOT.'lang/'.$pun_user['language'].'/quick_mod_tools.php'))
require PUN_ROOT.'lang/'.$pun_user['language'].'/quick_mod_tools.php';
else
require PUN_ROOT.'lang/English/quick_mod_tools.php';
$lang_qmt_js = array();
foreach ($lang_quick_mod_tools as $key => $value)
$lang_qmt_js[] = '\''.$key.'\': \''.$value.'\'';
$page_head['qmt_lang_js'] = '<script type="text/javascript">var base_url = \''.get_base_url(true).'\';var lang_quick_mod_tools = {'.implode(', ', $lang_qmt_js).'}</script>';
$page_head['qmt_js'] = '<script type="text/javascript" src="https://github.com/daris/fluxbb-quick-mod-tools/raw/master/'.get_base_url(true).'/include/quick_mod_tools/mod_tools.js"></script>';
}
#
#
viewforum.php
#
#
require PUN_ROOT.'lang/'.$pun_user['language'].'/forum.php';
#
#
require PUN_ROOT.'lang/'.$pun_user['language'].'/misc.php'; require PUN_ROOT.'lang/'.$pun_user['language'].'/topic.php'; require PUN_ROOT.'include/quick_mod_tools/functions.php';
#
#
<tr class="<?php echo $item_status ?>">
<td class="tcl">
<div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo forum_number_format($topic_count + $start_from) ?></div></div>
#
#
<tr class="<?php echo $item_status ?>" id="t<?php echo $cur_topic['id'] ?>">
<td class="tcl">
<?php $mod_tools = quick_mod_tools(); if (!empty($mod_tools)) : ?>
#