Page 1 of 1

Don't let users hide what they're watching

PostPosted: Tue Apr 12, 2011 12:30 am
by courageousrobot
So I've got a large handful of users that watch video and stream music off of my server. We're all enjoying being able to see what everyone else is enjoying.

At the moment we're basically using the honor system and agreeing not to check the "Don't show what I'm watching" tab. Is there a way to go in and be a little more particular what settings users can and cannot change? The default "Allow user to change password/settings" is usable, but a bit more broad than I would like.

Any tips? Thanks!

PostPosted: Tue Apr 12, 2011 1:15 am
by jaquense
WARNING UNTESTED:

you could open up personalSettings.jsp in your WEB-INF/jsp folder

Find:
Code: Select all
            <td><form:checkbox path="nowPlayingAllowed" id="nowPlayingAllowed" cssClass="checkbox"/></td>
            <td><label for="nowPlayingAllowed"><fmt:message key="personalsettings.nowplayingallowed"/></label></td>
            <td style="padding-left:2em"><form:checkbox path="partyModeEnabled" id="partyModeEnabled" cssClass="checkbox"/></td>
            <td><label for="partyModeEnabled"><fmt:message key="personalsettings.partymode"/></label>
                <c:import url="helpToolTip.jsp"><c:param name="topic" value="partymode"/></c:import>
            </td>

and comment out the relevant Check box
Code: Select all
      <!--<td><form:checkbox path="nowPlayingAllowed" id="nowPlayingAllowed" cssClass="checkbox"/></td>
            <td><label for="nowPlayingAllowed"><fmt:message key="personalsettings.nowplayingallowed"/></label></td>-->
            <td style="padding-left:2em"><form:checkbox path="partyModeEnabled" id="partyModeEnabled" cssClass="checkbox"/></td>
            <td><label for="partyModeEnabled"><fmt:message key="personalsettings.partymode"/></label>
                <c:import url="helpToolTip.jsp"><c:param name="topic" value="partymode"/></c:import>
            </td>

PostPosted: Tue Apr 12, 2011 2:01 am
by courageousrobot
Awesome Jaquense! That was a quick and easy fix.

Any way to go and change users settings who have already marked it as hide?

PostPosted: Tue Apr 12, 2011 3:39 am
by jaquense
yup.

in your browser type yourserver.subsonic.org/db.view (You have to be signed in as admin)

you should get a Database query window. to view your users settings type:
Code: Select all
SELECT * FROM user_settings

To change everyone's NOW_PLAYING_ALLOWED setting type:
Code: Select all
UPDATE user_settings SET NOW_PLAYING_ALLOWED = True

if you only want to change a particular user's settings then add a WHERE criteria
Code: Select all
UPDATE user_settings SET NOW_PLAYING_ALLOWED = True WHERE USERNAME="whoever you want"

To confirm it worked re-query the user_settings Table (The first command) scroll over to NOW_PLAYING_ALLOWED and you should see that they are all set to true. if you removed the option to change it they shouldn't have any means to change it back.

PostPosted: Tue Apr 12, 2011 1:43 pm
by courageousrobot
Thanks a lot, that worked great!