| Re: Link only for special group - code problem |
| by metin on 2005/6/30 22:05:09 OK. I could solve the problem. Finito. |
| Re: Link only for special group - code problem |
| by metin on 2005/6/30 20:09:27 Where i could add the right code in the followin ratefile.php anonymous & normal users cannot vote. |
| Re: Link only for special group - code problem |
| by metin on 2005/6/30 19:44:01 monty i did try it without \n too but have the same blank page. All other blocks are visible. It´s interesting that i had in the beginning not this problem. At first i did get an error page and not the ratefile page that had to be shown. Now when i add the code in the singlefile template the singlefile content doesn´t shown and if i add the code in ratefile template this does not show the content, but the rest of the site. i only want that only an special group can reach the ratingfile page or can vote there. It cannot be so difficult to get this, but i have no expirience with php too. |
| Re: Link only for special group - code problem |
| by m0nty on 2005/6/30 19:28:34 i'm no coder, but could it possibly be the line end characters? \n after each line??? |
| Re: Link only for special group - code problem |
| by metin on 2005/6/30 19:19:42 now the singlefile page doesn´t work anymore. 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 le="color: #000000"><?php <{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}>
|