Wollte zuerst die ajaxRating Php modifizieren habe es aber jetzt globalisiert und in die form_widget implementiert.
Unter system/modules/frontend/templates/form_widget.xxx
sieht mein Template nun so aus:
PHP-Code:
<?php
$this->import('ModuleBotDetection');
$suche1 = $this->ModuleBotDetection->BD_CheckBotAgent();
$suche2 = $this->ModuleBotDetection->BD_CheckBotIP();
?>
<?php if ($suche1 === true || $suche2 === true): //bot?>
<?php else: //user?>
<?php if (!$this->tableless): ?>
<tr class="<?php echo $this->rowClass; ?>">
<td class="col_0 col_first"><?php echo $this->generateLabel(); ?></td>
<td class="col_1 col_last"><?php echo $this->generateWithError(); ?></td>
</tr>
<?php else: ?>
<?php echo $this->generateLabel(); ?>
<?php echo $this->generateWithError(); ?><br />
<?php endif; ?>
<?php endif; ?>
dazu muss natürlich "botdetection" installiert sein.
Lesezeichen