rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: Guest on May 30, 2007, 04:44:26 PM
-
I include the archive (.tar) feature in a diff template for some folders.
This allows me to choose which folders have archive download, and omit others.
Now I find that ~files.lst does not work properly with Diff templates ?
I don't have filelist.tpl in hfs.exe folder. I'm using ver 101. Tested with
IE and Opera.
~files.lst does work for the folders without diff template.
Anyone else have this same result ? Or any ideas?
-
can you show your diff tpl ?
so it's easier to test
-
Diff template as requested:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>HFS</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<style type="text/css">
%style%
</style>
<a name="top"></a>
<script language=JavaScript>
function dirLinks()
{
var path="%folder%".split("/");;
var pathTree="";
var pathTreeResult="";
for(pta=1;pta<path.length;pta++)
{
pathTree=pathTree+"/"+path[pta];
pathTreeResult=pathTreeResult +'/<a href="'+pathTree+'" class=\"swapDir\">'+path[pta]+'</a>';
}
document.getElementById('swapDir').innerHTML = pathTreeResult;
}
</script>
</head>
<body>
<center>
<h3>W E L C O M E   %user%</h3>
</font>
</center>
<br />
<center>
<div id=body1>
<table border="2">
<tr>
<td><a href="/about.html"><img align=top src="/~img10" alt="Server Info"><b> Server Info & Instructions </b></a>
</td>
<td width="30%">
<script language=JavaScript>
<!--- Hide from old browsers
function jumpBox(list) {location.href = list.options[list.selectedIndex].value}
// end hiding --->
</script>
<form>
<select>
<option value="" selected>Select a Directory : </OPTION>
<option value="/">01. Menu
<option value="%parent-folder%">02. Up One Level
<option value="/Log-In-Area/">03. Log In Area
<option value="/Messages/">04. Messages
<option value="/Register/">05. Register
<option value="/Upload">06. UpLoad Folder
<option value="~files.lst">07. File List This Folder
<option value="~login">08. Login Window
<option value="/log">09. View Log
<option value="/DropBox/">10. DropBox
</option>
</select>
<input onclick=jumpBox(this.form.elements[0]) type=button value= Go >
</form>
</td>
<td width="30%" colspan="2">Your IP address: <b> %ip% </b></td>
</tr>
<tr>
<td colspan="2">
Current Directory: /<a href="/" class=swapDir> Menu </a><span id=swapDir>%folder%</span>
<script type="text/javascript" language="javascript">dirLinks()</script>
</td>
<td align="center"><a href="/stats/"><img align=top src="/~img24" alt="Server Stats"><font face="arial" size="2" color="#0000FF"> Server-Stats</font></a>
</td>
<td><a href="#bottom"><img align=top src="/images/bottom.gif" alt="Down"> Bottom of page</a></td>
</tr>
</center>
</table>
</div>
<div id=body1>
<table>
<tr>
<td>
<a href="~folder.tar?recursive"> <img align=top src="/~img33" alt="Download Contents"> Down Load all files in this folder as .tar archive <img align=top src="/images/zip.gif" alt="Type Of Zip File"> of %total-size%</a>
</td></tr></table>
%files%
</div>
<div id=body1>
<table>
<tr>
<td width="25%"; align="center">
<img src="/~img23" /> Http File Server %version% Build %build%
</td>
<td align="center">
<p> " you'll have that some times "</p>
</td>
</center>
<td width="25%", align="center"><a href="#top"><img align=top src="/~img46" alt="Top"> Top of page</a>
</td>
</center>
</tr>
</table>
</div>
</body>
<br />
<a name="bottom"></a>
</html>
~files.lst is called by %files% section and also can be called from jumpbox list
-
Can we see an image of this template when it gets looked over?
Please and thank you ^.^
-
Attached Image as requested....well, maybe, if this works ? :)
-
I include the archive (.tar) feature in a diff template for some folders.
This allows me to choose which folders have archive download, and omit others.
Now I find that ~files.lst does not work properly with Diff templates ?
I don't have filelist.tpl in hfs.exe folder. I'm using ver 101. Tested with
IE and Opera.
~files.lst does work for the folders without diff template.
Anyone else have this same result ? Or any ideas?
Just tested here on a diff template. Files List does work with a diff template if you include <a href="~files.lst?recursive">File list</a> in the diff template code under the template section [files]. However I notice that some of the page source is also included with the file list results. I haven't played around to much with this to see if there is a fix as I don't use the File List feature. But Files List does work with a diff template.
-
Thanks Maverick.
Your responce indicates that you see the same thing I am,
diff template code with the files list, so its a HFS bug.
Now I can stop looking for a template problem.
I may drop the .tar archive for now, as using a download manager
seems far more pratical.
Perhaps Rejetto may see a solution some time ?
-
fixed in next build
-
Confirmed. Fixed in build 103.