Thanks to trickydick for the suggestion instead of completely hiding the tabs, make it so only admin can see them (viewtopic.php?f=8&t=5971&p=23217#p28450)
To remove the about or help tab in the topmost menu completely, do the following:
1. stop server
2. BACKUP ALL FILES of SS
3. Edit stuff
In a file called "top.jsp" in subsonic/jetty/xxxx/webapp/WEB-INF/jsp:
find
- Code: Select all
<fmt:message key="top.more" var="more"/>
change to
- Code: Select all
<c:if test="${model.user.adminRole}"><fmt:message key="top.more" var="more"/></c:if>
---
find
- Code: Select all
<fmt:message key="top.help" var="help"/>
change to
- Code: Select all
<c:if test="${model.user.adminRole}"><fmt:message key="top.help" var="help"/></c:if>
---
find
- Code: Select all
<td style="min-width:4em;padding-right:1.5em">
<a href="more.view?" target="main"><img src="<spring:theme code="moreImage"/>" title="${more}" alt="${more}"></a><br>
<a href="more.view?" target="main">${more}</a>
</td>
change to
- Code: Select all
<c:if test="${model.user.adminRole}"><td style="min-width:4em;padding-right:1.5em">
<a href="more.view?" target="main"><img src="<spring:theme code="moreImage"/>" title="${more}" alt="${more}"></a><br>
<a href="more.view?" target="main">${more}</a>
</td></c:if>
---
find
- Code: Select all
<td style="min-width:4em;padding-right:1.5em">
<a href="help.view?" target="main"><img src="<spring:theme code="helpImage"/>" title="${help}" alt="${help}"></a><br>
<a href="help.view?" target="main">${help}</a>
</td>
change to
- Code: Select all
<c:if test="${model.user.adminRole}"><td style="min-width:4em;padding-right:1.5em">
<a href="help.view?" target="main"><img src="<spring:theme code="helpImage"/>" title="${help}" alt="${help}"></a><br>
<a href="help.view?" target="main">${help}</a>
</td></c:if>
basically you now made the bits responsible for showing the "about" and "help" tab conditional, only visible to admin users.
4. restart server
5. clear browser cache and cookies
6. clear jetty cache (see here: http://forum.subsonic.org/forum/viewtopic.php?t=5852
7. login
DONE
edit: incorporated trickydicks suggestion