Page 1 of 1

Slideshow Picture Viewer

PostPosted: Sat Feb 05, 2011 9:26 pm
by ChiMatt
Alright folks. I am going to make the disclaimer that I have not programmed in Java in over 10 years and html so this took me a long time and I am sure I am far from a completed solution. I am hoping that others can quickly work off of the solution I am starting here or that this inspires you to help me complete this. I have run out of time today, but here is what I have so far. I went to the open source Google Code Project Slideshow website today.
http://code.google.com/p/slideshow/ and downloaded the source files. Unzip the directory to c:\subsonic\jetty\2132\webapp. You should now have the following folders and files, CSS, images, js, index.html, and readme in addition to the files that were already there. You will want to change the index.html file you just downloaded to something else. I changed it to pictures.html. At this point you should be able to point your subsonic url to xyz.subsonic.org/pictures.html and see a working version of the slideshow with the examples given. If you navigate to c:\subsonic\jetty\2132\webapp\WEB-INF\jsp you will find the top.jsp file. Open it in your editor of choice (notepad). This will allow you to add an extra button at the top of your subsonic page. I added the line <fmt:message key="top.pictures" var="pictures"/> just below the same line with podcast in it. Then I copied and added

<td style="min-width:4em;padding-right:1.5em">
<a href="pictures.html" target="main"><img src="<spring:theme code="homeImage"/>" title="${pictures}" alt="${pictures}"></a><br>
<a href="pictures.html" target="main">${home}</a>
</td>

just below the matching line with home.view in it. Click save.

If you refresh your subsonic home page, you will see two "home" icons at the top. If you select the second one, you should see where the slideshow player has now been embedded into the interface.

I am not fast enough or good enough with java to incorporate this with a pictures folder like the movie or music folders we all currently have. Also, I cannot figure out how to make this interface more secure like with the movies or the music. I am hoping this is a good enough start to help others take it from here and easily incorporate it into the interface.

PostPosted: Sat Feb 05, 2011 10:01 pm
by kroken
Demo?

PostPosted: Sat Feb 05, 2011 10:42 pm
by ChiMatt
kroken wrote:Demo?


mattbenoist1.subsonic.org

login: guest
passwd: guest

click on the "second" home button at the top nav bar and you will see what this looks like so far. It only has demo pictures loaded.

PostPosted: Tue Mar 01, 2011 6:56 pm
by 3R3
The server at "mattbenoist1.subsonic.org" is unreachable. DNS lookup works though, maybe your DDNS client fails to update?

I was thinking of using this to browse Music, like a cover Browser which links the pics to the corresponding album/music folder. I might take this up soon, thx for starting it :)

PostPosted: Tue Mar 01, 2011 7:00 pm
by bushman4
The entire subsonic.org domain is currently unavailable. That would include the redirector operating for *.subsonic.org personal domains.

HTH,

Glenn

PostPosted: Wed Apr 27, 2011 8:33 pm
by chemikalguy
That has potential. I like having a separate 'Home' button at the top. Make it 'Photos', or a little picture of a camera or something, and that would be sweet! A similar folder structure as the music folders, and I'd use it.

PostPosted: Sat May 14, 2011 1:03 pm
by moisy
Brilliant mate, are you going to be developing this, I'll keep an eye on your post if you do.

PostPosted: Sat May 14, 2011 2:03 pm
by chemikalguy
So, silly question, but if you put in this code, and then there's an update for Subsonic, will it get removed automatically when the update runs? Or would that only happen in the case of a major upgrade?

Scott

PostPosted: Sat May 14, 2011 3:15 pm
by moisy
No it will definitely be overwritten with a new login.jsp file so you will lose all the coding. But you can save this file prior to updating and replacing the new one with your modified file and all will be back.

PostPosted: Mon May 23, 2011 11:34 pm
by wrathchild_67
For anyone interested in changing the second "Home" icon and text on the top bar to actually say "Pictures" and use a camera icon, here are the files and icon I used (follow the instructions in the first post to get the slideshow installed). Just extract the archive right into your Subsonic folder. This is for version 4.4 (build 2172) and the default "Spring" theme in English only. If you'd like to see what I did, just compare the files in the archive with the default files installed with Subsonic using a program like Notepad++ or Diffmerge.

The files to edit are:
\subsonic\jetty\2172\webapp\WEB-INF\classes\net\sourceforge\subsonic\theme\default.properties

\subsonic\jetty\2172\webapp\WEB-INF\classes\net\sourceforge\i18n\ResourceBundle_en.properties

\subsonic\jetty\2172\webapp\WEB-INF\jsp\top.jsp

PostPosted: Fri Jul 01, 2011 9:58 am
by pemholder
ChiMatt wrote:mattbenoist1.subsonic.org

login: guest
passwd: guest

Is there a newer or other demo?
The user and passwort "guest" don't work anymore.

Re: Slideshow Picture Viewer

PostPosted: Tue Aug 23, 2011 8:10 am
by russcasey
This is really impressive and *almost* perfect for me. I'm looking for something that can serve up a web based slideshow from my home server to other devices (such as a tablet being used as a digital photo frame). For this to work well the features I need are:

- Obtain the images from a different drive to where subsonic is installed. I guess there must be a way of adding a 'virtual directory' to the subsonic web server config, but I'm clueless about how!

- Index the images automatically. I'll copy a new folder of images across from my digital camera, and I want them to be added to the show with no hacking. This thread has some clues about how to do this, but I'm a bit stuck on the implementation (can't seem to run php inside C:\subsonic\jetty\2172\webapp :( ): http://groups.google.com/group/mootools ... b779491f47

Re: Slideshow Picture Viewer

PostPosted: Sat Nov 12, 2011 2:42 pm
by ChiMatt
Maybe we can try to convince some of the better programmers from the mod section to try to help us code this up quickly. I am sure this is not hard if you know what you are doing. It just has to be implemented smoothly. Sindre is busy with bigger issues and projects and I do not blame him, but a picture viewer would just be the best.

Re: Slideshow Picture Viewer

PostPosted: Tue Feb 07, 2012 9:35 am
by tdjohnson
I agree with chimatt but where could we find such a developer ?