Subsonic Pack version 4.4- 2172

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Postby cyclopes » Thu Mar 03, 2011 8:24 pm

working on it now ;)

thanks for the info

sanderd wrote:Hi cyclopes,

what is the issue with building prev. next buttons for the jukebox player?
(didn't show up in searching this forum)

i mainly use the webinterface with jukeboxplayer because my home server is connected to an usb DAC on my stereo.

with current webinterface both the size/location of the playlist and skipping through playlist is not very well designed. i rather have the playlist at the right column to see more songs without having to scroll.


thanks.
Vote Confirmation ;)
User avatar
cyclopes
 
Posts: 51
Joined: Thu Mar 12, 2009 11:33 pm
Location: Norway

Postby 3R3 » Sat Mar 05, 2011 6:03 pm

I was looking at a thread requesting more admin controls the other day, so I went and added a little user/admin "recognition" to "the Packs" upload window. And why not share it with the world:
In admin mode, the full destination path can be edited (dangerous!) and you get to decide whether zipped stuff should be auto-extracted after upload.
In user mode and with upload right, destination path will be <music path>/Incoming/<username> and the user will not see the path. he can select a file or zip to be uploaded, but cannot decide whether zips should auto-extract. they will per default and the checkbox is invisible.

The screenshots roughly reflect the code.Though the layout is still the same, I tweaked it a bit for convenience. I removed the german ;) And the heading "User interface" too, was confusing and a bit belittling ;)

Admin view:
Image

User view:
Image

To install:
1. BACKUP
2. shut down subsonic
3. open moree.jsp in subsonic/jetty/xxxx/webapp/WEB-INF/jsp and find
Code: Select all
<c:if test="${model.user.uploadRole}">
    <h2></h2>
    <form method="post" enctype="multipart/form-data" action="upwin.view">
        <table>
            <tr>
                <td><fmt:message key="more.upload.source"/></td>
                <td colspan="2"><input type="file" id="file" name="file" size="40"/></td>
            </tr>
            <tr>
                <td><fmt:message key="more.upload.target"/></td>
                <td><input type="text" id="dir" readonly="readonly" name="dir" size="37" value="${model.uploadDirectory}/${model.user.username}"/></td>
                <td><input type="submit" value="<fmt:message key="more.upload.ok"/>"/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="checkbox" checked name="unzip" id="unzip" class="checkbox"/>
                    <label for="unzip"><fmt:message key="more.upload.unzip"/></label>
                </td>
            </tr>
        </table>
    </form>
    <p class="enter" id="progressText"/>
    <div id="progressBar">
        <div id="progressBarContent"/>
    </div>
</c:if>


replace with
Code: Select all
<!-- Upload Windows for normal users -->

<c:if test="${model.user.uploadRole and not model.user.adminRole}">
    <h2></h2>
    <form method="post" enctype="multipart/form-data" action="upwin.view">
        <table>
            <tr>
                <td><fmt:message key="more.upload.source"/></td>
                <td><input type="file" id="file" name="file" size="40"/></td>
            </tr>
            <tr>
                <!-- <td><fmt:message key="more.upload.target"/></td> -->               
                <td><input type="hidden" id="dir" name="dir" size="37" value="${model.uploadDirectory}/${model.user.username}"/></td>
                <td><b>You can upload single files and zipped folders. Zipped folders will be automatically extracted.</b></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="hidden" checked name="unzip" id="unzip" class="checkbox"/>
                    <!-- <label for="unzip"><fmt:message key="more.upload.unzip"/></label> -->
                </td>
                <td><input type="submit" value="<fmt:message key="more.upload.ok"/>"/></td>
            </tr>
        </table>
    </form>
    <p class="enter" id="progressText"/>
    <div id="progressBar">
        <div id="progressBarContent"/>
    </div>
</c:if>

<!-- Upload Win for Admin -->
<c:if test="${model.user.adminRole}">
    <h2>Admin Interface</h2>
    <form method="post" enctype="multipart/form-data" action="upwin.view">
        <table>
            <tr>
                <td><fmt:message key="more.upload.source"/></td>
                <td><input type="file" id="file" name="file" size="40"/></td>
            </tr>
            <tr>
                <td><fmt:message key="more.upload.target"/></td>                         
                <td><input type="text" id="dir" name="dir" size="56" value="${model.uploadDirectory}/${model.user.username}"/></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="checkbox" checked name="unzip" id="unzip" class="checkbox"/>
                    <label for="unzip"><fmt:message key="more.upload.unzip"/></label>
                </td>
                <td><input type="submit" value="<fmt:message key="more.upload.ok"/>"/></td>
            </tr>
            <tr><td colspan="3"><b>You are admin, you already know everything I could possibly print here.</b></td></tr>
        </table>
    </form>
    <p class="enter" id="progressText"/>
    <div id="progressBar">
        <div id="progressBarContent"/>
    </div>
</c:if>


4. save file
5. clear jetty cache
6. start subsonic

This is based on my own modification of cyclopes SS pack. I left anything from his original mod mostly intact, just commented some stuff out so you can easyly restore to that layout or just change little bits.

awaiting feedback :)
Last edited by 3R3 on Tue Mar 08, 2011 5:39 am, edited 2 times in total.
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby benzubi » Sun Mar 06, 2011 11:24 am

hey

Ive been waiting for this cyclopes, gonna try it out now.

thanks ! :shock:
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby cyclopes » Sun Mar 06, 2011 11:04 pm

:D


benzubi wrote:hey

Ive been waiting for this cyclopes, gonna try it out now.

thanks ! :shock:
Vote Confirmation ;)
User avatar
cyclopes
 
Posts: 51
Joined: Thu Mar 12, 2009 11:33 pm
Location: Norway

Postby cyclopes » Sat Mar 12, 2011 12:27 am

New update is on its way, there were some problems with buttons that crashed in the jukebox player..
Vote Confirmation ;)
User avatar
cyclopes
 
Posts: 51
Joined: Thu Mar 12, 2009 11:33 pm
Location: Norway

Postby benzubi » Sun Mar 13, 2011 10:33 pm

Never had the issue, worked great here. 8)
benzubi
 
Posts: 31
Joined: Sat Feb 19, 2011 12:17 am

Postby bozolino » Sat Mar 19, 2011 3:16 pm

thanks so much for this!

one problem though: when i click "Upload", the resulting popup has a black background and almost-black (very dark grey) text... so i can't read the text.... [see screenshot below]

is there any way to change that?

thanks in advance!
Image
bozolino
 
Posts: 12
Joined: Thu Mar 17, 2011 11:25 am

Postby muiz » Tue Jun 07, 2011 11:55 pm

works fine but not the player skin still shows the old one
muiz
 
Posts: 86
Joined: Wed Feb 02, 2011 11:52 am

Postby cyclopes » Wed Jun 08, 2011 12:04 am

muiz wrote:works fine but not the player skin still shows the old one



Try this:

stop subsonic.

you have upload this files:

playlist.jsp --> Only open file in Notepad and save
home.jsp --> Only open file in Notepad and save
main.jsp --> Only open file in Notepad and save
more.jsp --> Only open file in Notepad and save

Regards
Cyclopes
Vote Confirmation ;)
User avatar
cyclopes
 
Posts: 51
Joined: Thu Mar 12, 2009 11:33 pm
Location: Norway

Postby muiz » Wed Jun 08, 2011 12:25 am

i did , and i also opened them all and saved.
but it shows only the extra buttons , but there is no more player.

i also tried 3R3's changes, but that screwed it all up more badly
muiz
 
Posts: 86
Joined: Wed Feb 02, 2011 11:52 am

Postby cyclopes » Wed Jun 08, 2011 5:24 am

muiz wrote:i did , and i also opened them all and saved.
but it shows only the extra buttons , but there is no more player.

i also tried 3R3's changes, but that screwed it all up more badly


try ccleaner
http://www.filehippo.com/download_ccleaner/
Vote Confirmation ;)
User avatar
cyclopes
 
Posts: 51
Joined: Thu Mar 12, 2009 11:33 pm
Location: Norway

Postby muiz » Wed Jun 08, 2011 11:36 am

thx that did the trick
muiz
 
Posts: 86
Joined: Wed Feb 02, 2011 11:52 am

Postby muiz » Wed Jun 08, 2011 1:17 pm

One more question.
How i put all items on the same height here :

Image
muiz
 
Posts: 86
Joined: Wed Feb 02, 2011 11:52 am

Postby cyclopes » Wed Jun 08, 2011 8:31 pm

muiz wrote:One more question.
How i put all items on the same height here :

Image


Have you added the equalizer on playlist.jsp
if you have you must open playlist and look at height: px and add in the playlist .

<img src="icons/ ______

example:

<c:if test="${model.player.web}">
<td valign="bottom" style="height:35px;padding-left:0px;padding-right:0px"><a href="javascript:noop()" onclick="onPrevious()"><img src="icons/rewind1.png"/></a></td>
<td valign="bottom" style="height:35px;padding-left:0px;padding-right:0px"><a href="javascript:noop()" onclick="onNext(false)"><img src="icons/forward1.png"/></a></td>
</c:if>

and
next
Vote Confirmation ;)
User avatar
cyclopes
 
Posts: 51
Joined: Thu Mar 12, 2009 11:33 pm
Location: Norway

Postby muiz » Wed Jun 08, 2011 9:35 pm

I have lowered the player for the EQ , but now i want the rest lower to.
muiz
 
Posts: 86
Joined: Wed Feb 02, 2011 11:52 am

PreviousNext

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 11 guests