Nahraj mi někam soubor profile_view_body.tpl, upravim ti to, tak aby to šlo normálně..
A pokud to je bot, zkusíme mu to ztížit:
Udelej tyhle upravy:
soubor karma.php:
Najdi:
Kód: Vybrat vše
if($x == "applaud")
{
$x = 1;
}
else
{
$x = -1;
}
Nahrad timto:
Kód: Vybrat vše
if ($x == "applaud"):
$x = 1;
elseif ($x == "negative"):
$x = -1;
else:
$x = 0;
endif;
soubor viewtopic.php:
Najdi:
Kód: Vybrat vše
if (($userdata['user_id'] != "-1") and ($poster_id != $userdata['user_id']) and ($poster_id != ANONYMOUS))
{
$karma .= ' <a href="karma.php?x=smite&u=' . $poster_id . '&t=' . $topic_id . '"><img src="templates/'.$theme['template_name'].'/images/karmaminus.gif"></a> <a href="karma.php?x=applaud&u=' . $poster_id . '&t=' . $topic_id . '"><img src="templates/'.$theme['template_name'].'/images/karmaplus.gif"></a>';
}
Nahrad timto:
Kód: Vybrat vše
if (($userdata['user_id'] != "-1") and ($poster_id != $userdata['user_id']) and ($poster_id != ANONYMOUS))
{
$karma .= ' <a href="karma.php?x=negative&u=' . $poster_id . '&t=' . $topic_id . '"><img src="templates/'.$theme['template_name'].'/images/karmaminus.gif"></a> <a href="karma.php?x=applaud&u=' . $poster_id . '&t=' . $topic_id . '"><img src="templates/'.$theme['template_name'].'/images/karmaplus.gif"></a>';
}