1
metin
php code in template question !!
  • 2005/3/26 17:46

  • metin

  • Just popping in

  • Posts: 64

  • Since: 2003/6/21


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}>

Login

Who's Online

232 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits