Modding 3.8 to remove Chat

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

Moderator: moderators

Modding 3.8 to remove Chat

Postby teufelh » Sat Oct 31, 2009 5:13 am

If you're like me and you're the only person who uses Subsonic, then this is a shot guide to show you how to disable the chat.
Keep in mind that with the Genius of Sindre you can do a lot with Subsonic, so you can remove the chat, and keep the Right View frame with the Now Playing and link to lyrics, or you remove the frame and now playing/lyrics altogether!

Personally, I like 3.7's way of putting the nowPlaying on the main view.

First, you'll need to open C:\subsonic\jetty\####\webapp\web-inf\jsp\index.jsp.

Inside of this file you'll see a frameset declaration, and then another frameset declaration.

The first is the main view and the second frame is the playlist. However, the second frameset adds the right.jsp file in another frame. (Squeezing your album art and obstructing your beautiful library.)

(You should make a backup)
Then simply remove the second frameset declaration, the right frame, and the </frameset> that corresponds to the previously removed inner frameset.
Now you should be left with just 1 frameset declaration and a 70-30% split between the Main view and Playlist.

You can stop here, or you can do what I did.

Go back to the jsp folder and open Right.jsp

You'll see at the top of the file the declaration of a few .js files used.
we're looking in particular for the dwr/*.js files, (util, NowPlayingService, etc.). Copy these declarations and paste them under the first dwr/*.js declarations in the main.jsp file.

You're almost there, keep along.

Now you'll be looking for a <c:if test and the test will be model.nowPlaying
once you find it, it's a rather large block of code that lays out the whole "Now Playing" block.

If you'd like to put this on the Main view page, simply open up the main.jsp and find the <div> towards the very bottom that shows the next album. Right about this, you can Insert just the copied code from the right.jsp.

Save and enjoy.
:)
teufelh
 
Posts: 6
Joined: Mon Jul 06, 2009 8:22 pm

Postby jonathanroz » Fri Mar 19, 2010 2:41 am

I have been trying this in 3.9. I never tried it in 3.8, but no matter what I do I cannot get the new playing to show on the playing screen like it used to in 3.7.

Anyone have any luck?
jonathanroz
 
Posts: 172
Joined: Thu Dec 18, 2008 8:54 pm
Location: Frisco, TX USA

Postby jonathanroz » Thu Apr 22, 2010 7:07 pm

So has anyone else go this mod to work.
jonathanroz
 
Posts: 172
Joined: Thu Dec 18, 2008 8:54 pm
Location: Frisco, TX USA

Postby sigel » Thu Sep 09, 2010 9:20 pm

This is my working index.jsp


Code: Select all
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

<html><head>
    <%@ include file="head.jsp" %>
    <link rel="alternate" type="application/rss+xml" title="Subsonic Podcast" href="podcast.view?suffix=.rss">
</head>

<frameset rows="70,*,0" border="0" framespacing="0" frameborder="0">
    <frame name="upper" src="top.view?">
    <frameset cols="15%,85%" border="0" framespacing="0" frameborder="0">
        <frame name="left" src="left.view?" marginwidth="0" marginheight="0">

        <frameset rows="70%,30%" border="0" framespacing="0" frameborder="0">
           
                <frame name="main" src="home.view?listSize=10&listType=newest" marginwidth="0" marginheight="0">

           
            <frame name="playlist" src="playlist.view?">
        </frameset>
    </frameset>
    <frame name="hidden" frameborder="0" noresize="noresize">

</frameset>

</html>
sigel
 
Posts: 58
Joined: Fri Aug 13, 2010 6:32 pm


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 5 guests