Did try to add this code at ratefile template, cause than normal users can´t pushed the voting button but there is the same problem after i add the code in the template. The ratefile page don´t work.
this was the code for the ratingfile template
<{if $xoops_isuser}>
<{php}>
global $xoopsUser;
$redaktion = '4';
$name = $xoopsUser->getVar('uname');
$groups = $xoopsUser->getGroups();
if (in_array($redaktion, $groups))
{
echo '<form method="post" action="ratefile.php">n
<input type="hidden" name="lid" value="<{$file.id}>" />n
<input type="hidden" name="cid" value="<{$file.cid}>" />n
<select name="rating"><option>--</option><option>10</option><option>9</option><option>8</option><option>7</option><option>6</option><option>5</option><option>4</option><option>3</option><option>2</option><option>1</option></select>n
n
<input type="submit" name="submit" value="<{$smarty.const._MD_PDD_RATEIT}>" alt="<{$smarty.const._MD_PDD_RATEIT}>" /> <input type="button" value="<{$smarty.const._CANCEL}>" alt="<{$smarty.const._CANCEL}>" onclick="location='<{$xoops_url}>/modules/PDdownloads/singlefile.php?cid=<{$file.cid}>&lid=<{$file.id}>'" />n
</form>n";
}
<{/php}>
<{/if}>