Don't let users hide what they're watching

Need help? Post your questions here.

Moderator: moderators

Don't let users hide what they're watching

Postby courageousrobot » Tue Apr 12, 2011 12:30 am

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!
courageousrobot
 
Posts: 12
Joined: Tue Apr 12, 2011 12:25 am

Postby jaquense » Tue Apr 12, 2011 1:15 am

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>
jaquense
 
Posts: 47
Joined: Tue Dec 28, 2010 7:06 pm

Postby courageousrobot » Tue Apr 12, 2011 2:01 am

Awesome Jaquense! That was a quick and easy fix.

Any way to go and change users settings who have already marked it as hide?
courageousrobot
 
Posts: 12
Joined: Tue Apr 12, 2011 12:25 am

Postby jaquense » Tue Apr 12, 2011 3:39 am

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.
jaquense
 
Posts: 47
Joined: Tue Dec 28, 2010 7:06 pm

Postby courageousrobot » Tue Apr 12, 2011 1:43 pm

Thanks a lot, that worked great!
courageousrobot
 
Posts: 12
Joined: Tue Apr 12, 2011 12:25 am


Return to Help

Who is online

Users browsing this forum: No registered users and 37 guests