|
|
|
One of the negatives of the recent update of the the website theme, was the removal of the easy access buttons along the top of the page. So after many complaints (well one actually), I've put them back. A neat thing about these buttons is that they are set up to be different when logged in or not, so that members of the club get easy access to the most frequently used areas of the site that are specific to members only.
Here's what they look like when not logged in

And when logged in, two removed, two added

So how's this done? By embedding this bit of code in your skin within a <td></td> pair
|
<% IF (DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName.ToString) = "True" or DotNetNuke.Security.PortalSecurity.IsInRoles("Members") = "True") Then %>
<a href="/Members/Forum.aspx"><img border="0" src="images/forums.png" width="48" height="48" alt="Discussion Forum"></a>
<a href="/Members/Shop.aspx"><img border="0" src="images/basket.png" width="48" height="48" alt="Store"></a>
<% End IF %>
<a href="/Diving/Calendar.aspx"><img border="0" src="images/calendar.png" width="48" height="48" alt="Dive Calendar"></a>
<a href="/Social.aspx"><img border="0" src="images/social.png" width="48" height="48" alt="Social Calendar"></a>
<% IF (DotNetNuke.Security.PortalSecurity.IsInRoles("Members") = "False" and DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName.ToString) = "False") Then %>
<a href="/Gallery.aspx"><img border="0" src="images/camera.png" width="48" height="48" alt="Gallery"></a>
<a href="/Newsletters.aspx"><img border="0" src="images/newsletter.png" width="48" height="48" alt="Newsletters"></a>
<% End IF %>
|
Previous Page | Next Page