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}>/">HOMEa>td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/wiwimod/">INFORMATION BOOTHa>td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/wowroster/" >ROSTERa>td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/minidkp/">DKPa>td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/minibanker/">BANKa>td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/xoopsgallery/">GALLERYa>td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/newbb/">FORUMSa>td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/miniraids/">RAIDSa>td>
<td class="obNavWidth" ><a href="<{$xoops_url}>/modules/liaise/">GUILD APPLICATIONa>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?