1
Hi!
I'm working on modifing a theme (obscene_v3) to fit my needs. This theme includes a top nav bar, which is perfect. However, I want to add a permissions check for the nav elements.
Here is the current code in the theme:
<td><table id="obNav" cellspacing="0">
<tr>
<td class="obNavWidth" ><a href="<{$xoops_url}>/">HOME</a></td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/wiwimod/">INFORMATION BOOTH</a></td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/wowroster/" >ROSTER</a></td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/minidkp/">DKP</a></td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/minibanker/">BANK</a></td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/xoopsgallery/">GALLERY</a></td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/newbb/">FORUMS</a></td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/miniraids/">RAIDS</a></td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/liaise/">GUILD APPLICATION</a></td>
</tr>
</table></td>
Basically, I want to hide things like the RAIDS link from Anonymous and registered users. and only show the "GUILD APPLICATION" link to registered users.
Obviously, I could do this with PHP using the group data from userinfo, however I can't seem to break out into php code to do any work. (The theme just prints the code, rather than process it)
Is there any way I can do what I want to do?