Hi,
I love the mod, it's an absolute Godsend in keeping malicious users out of my site.
I'm running a board in Danish, and it doesn't exactly look good that Spam-O-Matic is the only thing not translated.
I've been up and down the phrase variables, will I really have to modify the xml directly? A casual perusal seems to indicate that if I change the following:
Code:
<!-- Stats -->
<plugin active="1" product="glowhostspamomatic" executionorder="50">
<title>Stats render</title>
<hookname>forumhome_complete</hookname>
<phpcode><![CDATA[
if (($vbulletin->options['glowhostspamomatic_stat_show_denied'] == 1) || ($vbulletin->options['glowhostspamomatic_stat_show_banned'] == 1)) {
//$vbulletin->
$stats = $vbulletin->db->query_first("SELECT * FROM " . TABLE_PREFIX . "glowhostspamomatic_stats");
//echo '<pre>';
//print_r($vbulletin->stylevars['imgdir_misc']);
//echo '</pre>';
$template_hook[forumhome_wgo_pos2] .= '
<div class="wgo_subblock section">
<h3 class="blocksubhead"><img src="'.$vbulletin->stylevars['imgdir_misc']['imagedir'].'/forum_stats.png" alt="Spam-O-Matic Statistics" />';
if ($vbulletin->options['glowhostspamomatic_stat_show_link'] == 1) {
$template_hook[forumhome_wgo_pos2] .= '<a href="https://vborg.vbsupport.ru/showthread.php?t=248042" target="_blank">Spam-O-Matic Statistics</a>';
} else {
$template_hook[forumhome_wgo_pos2] .= 'Spam-O-Matic Statistics';
}
$template_hook[forumhome_wgo_pos2] .= ' </h3>
<div>';
if (($vbulletin->options['glowhostspamomatic_stat_show_denied'] == 1) && ($stats['denied'] > 0)) {
$template_hook[forumhome_wgo_pos2] .= '<p>'.$stats['denied'].' Spammer'.(($stats['denied'] > 1)?'s':'').' Denied Registration</p>';
}
if (($vbulletin->options['glowhostspamomatic_stat_show_banned'] == 1) && ($stats['banned'] > 0)) {
$template_hook[forumhome_wgo_pos2] .= '<p>'.$stats['banned'].' Spammer'.(($stats['banned'] > 1)?'s':'').' Permanently Banned</p>';
}
if (($vbulletin->options['glowhostspamomatic_stat_show_s_sfs'] == 1) && ($stats['s_sfs'] > 0)) {
$template_hook[forumhome_wgo_pos2] .= '<p>'.$stats['s_sfs'].' Spammer'.(($stats['s_sfs'] > 1)?'s':'').' submitted to StopForumSpam</p>';
}
if (($vbulletin->options['glowhostspamomatic_stat_show_s_akismet'] == 1) && ($stats['s_akismet'] > 0)) {
$template_hook[forumhome_wgo_pos2] .= '<p>'.$stats['s_akismet'].' Spammer'.(($stats['s_akismet'] > 1)?'s':'').' submitted to Akismet</p>';
}
if (($vbulletin->options['glowhostspamomatic_stat_show_mod'] == 1) && ($stats['moderated'] > 0)) {
$template_hook[forumhome_wgo_pos2] .= '<p>'.$stats['moderated'].' Spammy Post'.(($stats['moderated'] > 1)?'s':'').' Automatically Moderated</p>';
}
if (($vbulletin->options['glowhostspamomatic_stat_show_removed'] == 1) && ($stats['removed'] > 0)) {
$template_hook[forumhome_wgo_pos2] .= '<p>'.$stats['removed'].' Spammy Post'.(($stats['removed'] > 1)?'s':'').' Removed</p>';
}
$template_hook[forumhome_wgo_pos2] .= ' </div>
</div>
';
}
]]></phpcode>
</plugin>
<!-- Stats END -->
That ought to do the trick? It just seems weird that a lot of the phrases are in the phrase manager, but not these crucial bits?
Cheers!