pololoko111
- Początkujący
- 8
1 Edycja pluginu
Pobieramy plugin Top Shouters
Otwieramy plik pluginu (/inc/plugins/topshout.php) i szukamy:
$setting = array(
"sid" => NULL,
"name" => "topshoutshoutbox",
"title" => $db->escape_string($lang->settings_shoutbox),
"description" => $db->escape_string($lang->settings_shoutbox_desc),
"optionscode" => "select
dvzshoutbox=DVZ Shoutbox
myshoutbox=MyShoutbox
sfshoutbox=SpiceFuse Shoutbox",
"value" => 'dvzshoutbox',
"disporder" => $disporder++,
"gid" => $gid
);
Zamieniamy na:
$setting = array(
"sid" => NULL,
"name" => "topshoutshoutbox",
"title" => $db->escape_string($lang->settings_shoutbox),
"description" => $db->escape_string($lang->settings_shoutbox_desc),
"optionscode" => "select
dvzshoutbox=DVZ Shoutbox
myshoutbox=MyShoutbox
infernoshoutbox=Inferno Shoutbox",
"value" => 'dvzshoutbox',
"disporder" => $disporder++,
"gid" => $gid
);
Odnajdujemy:
elseif($mybb->settings['topshoutshoutbox'] == 'sfshoutbox')
{
if (!$db->table_exists("sf_shouts"))
{
$topshout_row = '<tr><td class="trow2">'.$lang->install_sfsb.'</td></tr>';
}
else
{
$gibek_pinek = TRUE;
$query = $db->query("SELECT s.uid, u.username, u.usergroup, u.displaygroup, u.uid, u.avatar, count(*) as totalshouts
FROM ".TABLE_PREFIX."sf_shouts s
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=s.uid)
WHERE usergroup NOT IN(".$ignore_groups.")
GROUP BY s.uid
ORDER BY totalshouts
DESC LIMIT " . $mybb->settings['topshoutlimit']);
}
}
Zamieniamy na:
elseif($mybb->settings['topshoutshoutbox'] == 'infernoshoutbox')
{
if (!$db->table_exists("inferno_shout"))
{
$topshout_row = '<tr><td class="trow2">'.$lang->install_inferno.'</td></tr>';
}
else
{
$gibek_pinek = TRUE;
$query = $db->query("SELECT s.uid, u.username, u.usergroup, u.displaygroup, u.uid, u.avatar, count(*) as totalshouts
FROM ".TABLE_PREFIX."inferno_shout s
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=s.uid)
WHERE usergroup NOT IN(".$ignore_groups.")
GROUP BY s.uid
ORDER BY totalshouts
DESC LIMIT " . $mybb->settings['topshoutlimit']);
}
}
2 Aktywacja zmian
ACP->Pluginy->Instalacja/reinstalacja
ACP->Konfiguracja->Wybór shoutboxa
Zmienna: {$topshout}
I gotowe, mamy Top krzykaczy dla Inferno Shoutbox!