Hi,
Ok, this is going to be very messy, and very long winded, for which I apologize.
Below, is my modded 'top'jsp
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<%@ include file="head.jsp" %>
</head>
<body class="bgcolor2 topframe" style="margin:0.4em 1em 0.4em 1em">
<fmt:message key="top.home" var="home"/>
<fmt:message key="top.now_playing" var="nowPlaying"/>
<fmt:message key="top.settings" var="settings"/>
<fmt:message key="top.status" var="status"/>
<fmt:message key="top.podcast" var="podcast"/>
<fmt:message key="top.more" var="more"/>
<fmt:message key="top.help" var="help"/>
<fmt:message key="top.search" var="search"/>
<table style="margin:0"><tr valign="middle">
<td class="logo" style="padding-right:2em"><a href="help.view?" 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="middle"><td style="min-width:4em;padding-right:2.5em"><embed src="http://www.flash-clocks.com/free-flash-clocks-blog-topics/free-flash-clock-117.swf" width="150" height="32"
type="application/x-shockwave-flash" wmode="transparent" quality= "high" ></embed></td>
<td style="min-width:4em;padding-right:1.5em">
<a href="home.view?" target="main"><img src="<spring:theme code="homeImage"/>" title="${home}" alt="${home}"></a><br>
<a href="home.view?" target="main">${home}</a>
</td>
<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>
</td><td style="min-width:4em;padding-right:1.5em">
<a href="/youtube/index.html" target="main"><img src="../icons/youtube.png" height="32" width="32"></a><br>
<a href="/youtube/index.html" target="main">Youtube</a>
</td>
<td style="min-width:4em;padding-right:1.5em">
<a href="/youtube/index_ph.html" target="main"><img src="../icons/pics-button small.png" height="32" width="32"></a><br>
<a href="/youtube/index_ph.html" target="main">Photos</a>
</td>
<td style="min-width:4em;padding-right:1.5em">
<a href="/youtube/Index_play.html" target="main"><img src="../icons/Play.png" height="32" width="32"></a><br>
<a href="/youtube/Index_play.html" target="main">Play</a>
</td><td style="min-width:4em;padding-right:1.5em">
<a href="podcastReceiver.view?" target="main"><img src="<spring:theme code="podcastLargeImage"/>" title="${podcast}" alt="${podcast}"></a><br>
<a href="podcastReceiver.view?" target="main">${podcast}</a>
</td>
<c:if test="${model.user.settingsRole}">
<td style="min-width:4em;padding-right:1.5em">
<a href="settings.view?" target="main"><img src="<spring:theme code="settingsImage"/>" title="${settings}" alt="${settings}"></a><br>
<a href="settings.view?" target="main">${settings}</a>
</td>
</c:if>
<td style="min-width:4em;padding-right:1.5em">
<a href="status.view?" target="main"><img src="<spring:theme code="statusImage"/>" title="${status}" alt="${status}"></a><br>
<a href="status.view?" target="main">${status}</a>
</td>
<td style="min-width:4em;padding-right:1.5em">
<a href="more.view?" target="main"><img src="<spring:theme code="moreImage"/>" title="${more}" alt="${more}"></a><br>
<a href="more.view?" target="main">${more}</a>
</td>
<td style="min-width:4em;padding-right:1.5em">
<a href="help.view?" target="main"><img src="<spring:theme code="helpImage"/>" title="${help}" alt="${help}"></a><br>
<a href="help.view?" target="main">${help}</a>
</td>
<td style="padding-left:1em">
<form method="post" action="search.view" target="main" name="searchForm">
<table><tr>
<td><input type="text" name="query" id="query" size="28" value="${search}" onclick="select();"></td>
<td><a href="javascript:document.searchForm.submit()"><img src="<spring:theme code="searchImage"/>" alt="${search}" title="${search}"></a></td>
</tr></table>
</form>
</td>
<td style="padding-left:15pt;text-align:center;">
<p class="detail" style="line-height:1.5">
<a href="j_acegi_logout" target="_top"><fmt:message key="top.logout"><fmt:param value="${model.user.username}"/></fmt:message></a>
<c:if test="${not model.licensed}">
<br>
<a href="donate.view" target="main"><img src="<spring:theme code="donateSmallImage"/>" alt=""></a>
<a href="donate.view" target="main"><fmt:message key="donate.title"/></a>
</c:if>
</p>
</td>
<c:if test="${model.newVersionAvailable}">
<td style="padding-left:15pt">
<p class="warning">
<fmt:message key="top.upgrade"><fmt:param value="${model.brand}"/><fmt:param value="${model.latestVersion}"/></fmt:message>
</p>
</td>
</c:if>
</tr></table>
</td>
</tr></table>
</body></html>
In order for me (a non coder) to install a photo gallery, I downloaded Porta from here >
http://www.stegmann.dk/mikkel/porta/download.phpThen simpleviewer was next >
http://www.simpleviewer.net/simpleviewer/Both apps are self explanatory, with regards their installation and use.
After selecting an images folder, (a folder of google supplied images in this test example I posted on here previously)
I then created an album, using Porta. (a right click context menu is included)
Simpleviewer, allows the user to tweak certain aspects of the gallery, before 'publishing'.
It generates the following files/folders, that can be found in the same folder as the images used for the album.
ext (folder) which contains the viewer.
medium (folder) which contains the main images.
small (folder) which contains the thumbnails.
There is an auto generated gallery.xml file
an index.html, which, for my usage, I renamed to index_ph.html so it wouldn't interfere with the youtube index file.
There is also an autorun document included, but that is only so the album can be run from the desktop, I believe. So, I haven't used it here.
The icons, I downloaded via google, resized them, and added them to the icons folder in SS.
You will see that all I did in effect, is copy and paste the code for the youtube mod (elsewhere in the mods section on this forum) and copy all required files and folders into the youtube directory, and changed the indexes, that the newly added buttons point to.
In my case, I now have: index.html (for the youtube mod) index_ph.html (for the photo gallery) and, index_play.html (for the games page)
Of course, if one doesn't have the rather excellent youtube mod installed, then, other than the clock code, none of the above will work.
With the exception of the clock, all content is local, thereby reducing loading times (everything is instantaneous, according to a friend who lives in Lithuania)
I really am sorry for the mess I have made of this reply. I'm sure I've missed something out. As I said, I'm not a coder, and did the best I could, with the 3 remaining brain cells that are still functioning.
If you have any further questions, please .. give me at least a day, to recover from this one :p
Have a nice day .. I'm going to lie down now
