23
I have in PDdownloads module the VOTE button which i want to allow only for the special member group ( identity 4 ). This is the original link.
le="color: #000000"><?php <a href='<{$xoops_url}>/modules/PDdownloads/ratefile.php?cid=<{$down.cid}>&lid=<{$down.id}>'><{$smarty.const._MD_PDD_RATETHISFILE}></a>
If i use this code in the singlefile.html template the
Voting page doesn´t open and it comes an error page. Also the button shows not the translated word only "{$smarty.const._MD_PDD_RATETHISFILE}>".
le="color: #000000"><?php <{if $xoops_isuser}> <{php}> global $xoopsUser; $tamuye = '4'; $name = $xoopsUser->getVar('uname'); $groups = $xoopsUser->getGroups(); if (in_array($tamuye, $groups)) { echo '<a href='<{$xoops_url}>/modules/PDdownloads/ratefile.php?cid=<{$down.cid}>&lid=<{$down.id}>'><{$smarty.const._MD_PDD_RATETHISFILE}></a>';} <{/php}> <{/if}>
What i have to add at after echo ?