1
i want to show the RATING button in pd downlaods module only an special group and did add following code to the singlefile template. The special group see the button but the link ( after echo ) doesn´t work how it works before without the php code. It doesn´t show the translated word too.
Where is the mistake ?
I will update later de php code but until then i want to use this template opportunity.
<{if $xoops_isuser}>
<{php}>
global $xoopsUser;
$redaksiyon = '4';
$name = $xoopsUser->getVar('uname');
$groups = $xoopsUser->getGroups();
if (in_array($redaksiyon, $groups)) {
echo '<a href="<{$xoops_url}>/modules/PDdownloads/ratefile.php?cid=<{$down.cid}>&lid=<{$down.id}>"><{$smarty.const._MD_PDD_RATETHISFILE}></a> |';}
<{/php}>
<{/if}>