Release: HomeView - CarouselMod (Updated)

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

Moderator: moderators

What Screen Resolution do you prefer for Subsonic/CarouselMod?

1024x768
3
14%
1280x1024
4
18%
1440x900
2
9%
1920x1080
9
41%
bigger
4
18%
 
Total votes : 22

Re: Release: HomeView - CarouselMod

Postby SparkyRih » Fri Feb 17, 2012 2:59 pm

Got it working, thanks...
VMWare ESXi 5.5 > Ubuntu 16.04 > Subsonic 6.0 (Modded with PHP based registration feature)

Image
User avatar
SparkyRih
 
Posts: 216
Joined: Wed May 11, 2011 1:52 pm
Location: The Netherlands

Re: Release: HomeView - CarouselMod

Postby mozztoff » Mon Feb 20, 2012 9:31 pm

Nice mod! Just got it working, however when I installed it on my Win 08 r2 build i was receiving a out of memory Java exception and realized the new build reset my memory limit set in Subsonic to 100 vice my original 1024 setting. After changing memory limit back to 1024, restarted the subsonic service, the Java error went away and server is back up and running!

Image
4,885 artists
8,541 albums
100,947 songs
1423.32 GB (~ 22,110 hours)
illest.info
mozztoff
 
Posts: 9
Joined: Sun Jan 16, 2011 5:11 pm
Location: USA

Re: Re: Release: HomeView - CarouselMod

Postby Hellscream » Wed Feb 22, 2012 11:48 am

SparkyRih wrote:Yeah I did all that... but I see, I had to select the hot tab? how do I set it as default??

Image

If you still have probs with hot tab as default tab i will post code later today after work.
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="80,*" frameborder="no" border="0" framespacing="0">
    <frame src="top.view?" name="upper" scrolling="No" noresize="noresize" />
  <frameset rows="*" cols="245,*" framespacing="0" frameborder="no" border="0">
     <frame name="left" src="left.view?">
   <frameset rows="*" cols="*,${model.showRight ? 240 : 0}" framespacing="0" frameborder="no" border="0">
     <frameset rows="*,220" cols="*" framespacing="0" frameborder="no" border="0">
      <frame src="home.view?listSize=10&listType=hot" name="main"/>
      <frame src="playlist.view?" name="playlist" />
     </frameset>
      <frame  src="right.view?" name="right" noresize="noresize" />   
   </frameset>
  </frameset>
</frameset>
<noframes></noframes>


</html>

home.jsp
Code: Select all
<h2>
    <c:forTokens items="hot newest random highest frequent recent users" delims=" " var="cat" varStatus="loopStatus">

top.jsp
Code: Select all
<table style="margin:0"><tr valign="middle">
  <td class="logo" style="padding-right:2em"><a href="home.view?listSize=10&listType=hot" target="main"><img src="<spring:theme code="logoImage"/>" title="${help}" alt=""></a></td>
    <c:if test="${not model.musicFoldersExist}">
        <td style="padding-right:2em">
            <p class="warning"><fmt:message key="top.missing"/></p>
        </td>
    </c:if>
    <td>
        <table><tr align="center">
            <td style="min-width:4em;padding-right:1.5em">
                <a href="home.view?listSize=10&listType=hot" target="main"><img src="<spring:theme code="homeImage"/>" title="${home}" alt="${home}"></a><br>
                <a href="home.view?listSize=10&listType=hot" target="main">${home}</a>
            <td style="min-width:4em;padding-right:1.5em">
                <a href="nowPlaying.view?" target="main"><img src="<spring:theme code="nowPlayingImage"/>" title="${nowPlaying}" alt="${nowPlaying}"></a><br>
                <a href="nowPlaying.view?" target="main">${nowPlaying}</a>

Cheers
Sent from my GT-P7500 using Tapatalk
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Release: HomeView - CarouselMod

Postby gurutech » Sun Feb 26, 2012 6:34 am

Has anyone been successful in simply copying the files from the ZIP file over the files with the same name in the Subsonic folder? From what I am seeing here, I would like this MOD, but it seems that I would be required to backup, uninstall, reinstall, then install these files.

I'm currently running 4.6 version 2585, if that matters.

Thanks!
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Release: HomeView - CarouselMod

Postby Hellscream » Sun Feb 26, 2012 1:14 pm

gurutech wrote:Has anyone been successful in simply copying the files from the ZIP file over the files with the same name in the Subsonic folder? From what I am seeing here, I would like this MOD, but it seems that I would be required to backup, uninstall, reinstall, then install these files.

I'm currently running 4.6 version 2585, if that matters.
You dont need to reinstall anything if u dont have any mod in your SS. Just back up SS and replace all files from archive.
Thanks!
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Re: Release: HomeView - CarouselMod

Postby gurutech » Sun Feb 26, 2012 11:44 pm

gurutech wrote:Has anyone been successful in simply copying the files from the ZIP file over the files with the same name in the Subsonic folder? From what I am seeing here, I would like this MOD, but it seems that I would be required to backup, uninstall, reinstall, then install these files.

I'm currently running 4.6 version 2585, if that matters.


Hellscream wrote:You dont need to reinstall anything if u dont have any mod in your SS. Just back up SS and replace all files from archive.
Thanks!


I only downloaded the ModfilesV2 zip file, and backed up the files from that archive that already existed before copying over what I already had.

It's not working. I figure I have to download the other zip files as well, in the process of that now. If I'm running Linux, where would the ".war" file be located? /var/subsonic ?

And can I only overwrite that file after backing it up, or do I have to overwrite all files?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Release: HomeView - CarouselMod

Postby MadEvil » Mon Feb 27, 2012 8:28 am

gurutech wrote:
gurutech wrote:Has anyone been successful in simply copying the files from the ZIP file over the files with the same name in the Subsonic folder? From what I am seeing here, I would like this MOD, but it seems that I would be required to backup, uninstall, reinstall, then install these files.
I'm currently running 4.6 version 2585, if that matters.


Hellscream wrote:You dont need to reinstall anything if u dont have any mod in your SS. Just back up SS and replace all files from archive.
Thanks!


I only downloaded the ModfilesV2 zip file, and backed up the files from that archive that already existed before copying over what I already had.
It's not working. I figure I have to download the other zip files as well, in the process of that now. If I'm running Linux, where would the ".war" file be located? /var/subsonic ?

And can I only overwrite that file after backing it up, or do I have to overwrite all files?


the backup is only for your database to go back if something doesn't work, if you have allready SS 4.6 Build 2585 you can replace all files.
Please follow this instruction, this will help you -> viewtopic.php?f=8&t=8918&start=15#p37792

Best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: Release: HomeView - CarouselMod

Postby gurutech » Tue Feb 28, 2012 3:48 am

MadEvil wrote:the backup is only for your database to go back if something doesn't work, if you have allready SS 4.6 Build 2585 you can replace all files.
Please follow this instruction, this will help you -> viewtopic.php?f=8&t=8918&start=15#p37792

Best regards


Working... kinda... Instead of "Hot", I get "???home.hot.title???" and as I rotate through the albums, it comes up as "???home.hot.text???" instead of the album name.

Found some code in the home.jsp file (starting line 171 or so), but haven't the slightest idea on how to fix it. Seems as though the variable "cat" isn't being found for some reason.
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Release: HomeView - CarouselMod

Postby MadEvil » Tue Feb 28, 2012 7:40 am

gurutech wrote:
MadEvil wrote:the backup is only for your database to go back if something doesn't work, if you have allready SS 4.6 Build 2585 you can replace all files.
Please follow this instruction, this will help you -> viewtopic.php?f=8&t=8918&start=15#p37792

Best regards


Working... kinda... Instead of "Hot", I get "???home.hot.title???" and as I rotate through the albums, it comes up as "???home.hot.text???" instead of the album name.

Found some code in the home.jsp file (starting line 171 or so), but haven't the slightest idea on how to fix it. Seems as though the variable "cat" isn't being found for some reason.


this is strange, you can find this translation in this text file:

\Subsonic\jetty\<numb>\webapp\WEB-INF\classes\net\sourceforge\subsonic\i18n\ResourceBundle_en.properties
\Subsonic\jetty\<numb>\webapp\WEB-INF\classes\net\sourceforge\subsonic\i18n\ResourceBundle.properties

please check if in this files the following lines exist

home.hot.title = Hot
home.hot.text = HOT recommended


if not insert this 2 lines and clear your Browser cache and clear subsonics internal cache
(the jetty cache is at \subsonic\jetty\<numb>\jsp\org\apache\jsp\WEB_002dINF)
then restart your subsonic service!

best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: Release: HomeView - CarouselMod

Postby gurutech » Tue Feb 28, 2012 8:08 pm

Checked those two files (did make backups of the originals, just in case), and those two lines are in both of the files.

Deleted cache, and restarting Subsonic service now. The service restarts fairly quickly, but for some reason, the web page takes about 15 minutes to become viewable after a service restart. Not sure why, but it does - at least for me. Maybe I need a faster server (running on a CELERON processor now... lol)

And now it works! Thanks!

2 questions now.. lol

1- How is a "Hot" album determined? Is it just "random", but in the carousel format?
2- Is there a way to change the "Hot RECOMMENDED" title to instead be the album title, and to change as the carousel rotates?

Thanks!
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Re: Release: HomeView - CarouselMod

Postby MadEvil » Wed Feb 29, 2012 7:18 am

gurutech wrote:1- How is a "Hot" album determined? Is it just "random", but in the carousel format?

In this Release i decide to change no Java-Code because a wider range of user can use this MOD. In my own Dev-Release i change this
functionality, you must change the source from Homecontroller.java, you can see by default if no selection is made, its fallback to
random.

Code: Select all
        String listType = request.getParameter("listType");
        if (listType == null) {
            listType = "random";
        }

        List<Album> albums;
        if ("highest".equals(listType)) {
            albums = getHighestRated(listOffset, listSize);
        } else if ("frequent".equals(listType)) {
            albums = getMostFrequent(listOffset, listSize);
        } else if ("recent".equals(listType)) {
            albums = getMostRecent(listOffset, listSize);
        } else if ("newest".equals(listType)) {
            albums = getNewest(listOffset, listSize);
        } else {
            albums = getRandom(listSize);
        }


gurutech wrote:2- Is there a way to change the "Hot RECOMMENDED" title to instead be the album title, and to change as the carousel rotates?

yes this could be made, i post a new version later.

best regards
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: Release: HomeView - CarouselMod

Postby jdubso » Wed Feb 29, 2012 6:23 pm

gurutech wrote:1- How is a "Hot" album determined? Is it just "random", but in the carousel format?


Also curious how it is determined.

I love this mod, looks great. Thanks for you work.
jdubso
 
Posts: 40
Joined: Tue Mar 15, 2011 11:55 am
Location: United States

Re: Release: HomeView - CarouselMod

Postby MadEvil » Thu Mar 08, 2012 3:13 am

gurutech wrote:Is there a way to change the "Hot RECOMMENDED" title to instead be the album title, and to change as the carousel rotates?


In the new version you have a topspinner of the frontalbum, it will be updated on rotate and mouseover!

Best regards!
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna

Re: Release: HomeView - CarouselMod (Updated)

Postby gurutech » Sun Sep 16, 2012 11:39 pm

Just installed this mod on my 4.7 upgrade, and I'm getting the "???home.hot.title???" thing again, which I remember from 4.6 and somehow it was fixed. I downloaded the most recent "v3" from the first post.

I'm also not getting any album art, but I don't remember this issue from the 4.6 install. Anyone remember how to fix this?
Image
gurutech
 
Posts: 492
Joined: Sun Jan 15, 2012 9:56 pm

Previous

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 20 guests