rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: SmasHinG on September 15, 2009, 01:55:50 PM

Title: Changes How ?
Post by: SmasHinG on September 15, 2009, 01:55:50 PM
Hello, i want change a favicon and background with image no color can you help me ?  How can change this
And maybe in next version include  exit button rename delete files 
Sorry for my bad english.
Title: Re: Changes How ?
Post by: kaler on September 15, 2009, 06:43:38 PM
i will tell you;)

Favicon:
<head>
<link rel="shortcut icon" href="Path/favicon.ico" />
</head>

Backgroundimage:

<body background="background.jpg">

TEXT TEXT TEXT
</body>
Title: Re: Changes How ?
Post by: SmasHinG on September 15, 2009, 09:06:25 PM
Thank you for help but doesn`t work favicon and background images cannot integrate to hfs.
Please anybody help with other method how to change background color with background image and how to change favicon example  <link rel="shortcut icon" href="D:/File Server/favicon.ico" />   This is not work any ideas how will work correctly ?
Title: Re: Changes How ?
Post by: bacter on September 15, 2009, 09:19:48 PM

Your directory 'fileserver' must be located in the same directory where hfs.exe is stored.

<link rel="shortcut icon" href="/fileserver/favicon.ico" />

<body background="/fileserver/background.png">

Title: Re: Changes How ?
Post by: kaler on September 15, 2009, 09:29:28 PM
sorry i forgott...;) :D
Title: Re: Changes How ?
Post by: SmasHinG on September 15, 2009, 09:43:41 PM

Your directory 'fileserver' must be located in the same directory where hfs.exe is stored.

<link rel="shortcut icon" href="/fileserver/favicon.ico" />

<body background="/fileserver/background.png">




and That doesn`t work look little part of my template and edit correctly because i edit but not work

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <style type="text/css">
  %style%
  </style>
  <title>SmasHinG %folder%</title>
  <link rel="shortcut icon" href="/fileserver/favicon.ico" />
</head>
<body>
%login-link%
%loggedin%
%upload-link%
<div id=folderlabel>folder</div>
<div id=folder>%folder%</div>
<div id=body>
%folder-comment%
%up%
%files%
</div>
<div id=footer>
<center><b><a href="http://server.langame.org:69/">SmasHinG File Server</a></center></b>
<br /><center><b>ServerTime: %timestamp%</center></b>
<br /><center><b>UpTime: %uptime%</center></b>
<br /><center><b>Build-Time: %build-time%</center></b>
<br/><center><b>Admin Contact: bodushki@gmail.com</center></b>
<br/><center><b>Powered By SmasHinG</center></b>
</div>
</body>
</html>

[style]
body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { margin:0; background-color:#0080FF; padding:10px; }
p { margin:0 }
a { text-decoration:none;  background-color:Transparent; color:#7E2217; }
a:visited { color:#2EFE9A; }
a:hover { background-color:#87AFC7; }
img { border-style:none }
td { font-size:10pt; background:#FFFF00; border:1px solid #58FA58 }
td img { vertical-align:top }
th, th a, th a:visited { color:#8D38C9; font-size:13pt; font-weight:bold; padding-bottom:0; }
#foldercomment { font-size:10pt; color:#FF0000; background:#FFF380; padding:3px; border:1px solid #045FB4; border-bottom:3px solid #045FB4; margin-top:2px; }
#tools { text-align:right; font-size: 8pt; }
#folder, .big { font-size:14pt; font-weight:bold;  }
#folderlabel, #folderstats, #footer { font-size: 8pt; }
#body {
  border-bottom: 4px solid #045FB4;
     border-top: 4px solid #045FB4;
    border-left: 1px dotted #045FB4;
   border-right: 1px dotted #045FB4;
  background:#FE9A2E;
  padding:15px;
  margin:15px;
}
.comment { font-size:7pt; color:#DF01D7; background:#FFFF00; padding:3px; border:1px solid #DF01D7; margin-top:2px; }
.button { float:right; padding:5px; padding-top:7px; margin:15px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
.button img { vertical-align:text-bottom; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }

Please edit favicon i background correctly my favicon & background images path is D:/File Server/favicon.ico   and D:/File Server/backgroung.png
Title: Re: Changes How ?
Post by: bacter on September 15, 2009, 11:41:48 PM
start here: http://www.w3schools.com/html/DEFAULT.asp (http://www.w3schools.com/html/DEFAULT.asp)

(for example!)  ;)
Title: Re: Changes How ?
Post by: maverick on September 16, 2009, 12:11:15 AM
This is the way I added my personal favicon.ico to my HFS.  It has been working without any trouble at all for many years in all 3 major browsers that I use.  (opera, firefox, and IE6).

1.  First you have to create your personalized favicon.ico.  There are many places on the web that offer this service for free.  Just google -> http://www.google.com/search?q=favicon.ico&sourceid=opera&num=0&ie=utf-8&oe=utf-8  Once you have it made, copy it to your HFS folder on your hard drive.  Do not change the filename.  It has to remain as favicon.ico

2.  Now you have to publish it in HFS.  Right click on the Virtual File System Root ( / ) and select 'add files'.  Select the favicon.ico from your HFS directory and add it.  

3.  Now look at your HFS Virtual File System and you will see the favicon.ico that you just added is there.  

4.  Right Click on favicon.ico and select Properties -> Flags -> and Check Hidden so it doesn't show up as a file on your web pages.  Also click the tab -> Other and you will see the icon maked as default.

5.  My template doesn't contain any code at all for favicon.ico.  It is not needed in the template and works without any problems.

6.  When HFS runs it automatically loads the favicon.ico from the root of the virtual file system.

Title: Re: Changes How ?
Post by: SmasHinG on September 16, 2009, 04:54:57 AM
This is the way I added my personal favicon.ico to my HFS.  It has been working without any trouble at all for many years in all 3 major browsers that I use.  (opera, firefox, and IE6).

1.  First you have to create your personalized favicon.ico.  There are many places on the web that offer this service for free.  Just google -> http://www.google.com/search?q=favicon.ico&sourceid=opera&num=0&ie=utf-8&oe=utf-8  Once you have it made, copy it to your HFS folder on your hard drive.  Do not change the filename.  It has to remain as favicon.ico

2.  Now you have to publish it in HFS.  Right click on the Virtual File System Root ( / ) and select 'add files'.  Select the favicon.ico from your HFS directory and add it.  

3.  Now look at your HFS Virtual File System and you will see the favicon.ico that you just added is there.  

4.  Right Click on favicon.ico and select Properties -> Flags -> and Check Hidden so it doesn't show up as a file on your web pages.  Also click the tab -> Other and you will see the icon maked as default.

5.  My template doesn't contain any code at all for favicon.ico.  It is not needed in the template and works without any problems.

6.  When HFS runs it automatically loads the favicon.ico from the root of the virtual file system.



Thank you very very much  it`s work :)

And anybody please help me now with background image how set ?   i want change background-color with image
Title: Re: Changes How ?
Post by: rejetto on September 16, 2009, 07:52:56 AM
short answer:
put a "favicon.ico" file in the HFS root/home (virtual file system panel)
Title: Re: Changes How ?
Post by: SmasHinG on September 16, 2009, 11:18:00 AM
short answer:
put a "favicon.ico" file in the HFS root/home (virtual file system panel)

Yes i did this and work very good, but i want change background-color with background-image  how make this change ?
Title: Re: Changes How ?
Post by: bacter on September 16, 2009, 12:48:25 PM
You can change the background as you read above:
Quote
<body background="/fileserver/background.png">
provided you have your backgrund file in a directory 'fileserver' (this can be another name!) and this directory is attached to the root of hfs.exe. You can also put directly your background.jpg wherever it is to the root of your virtual filesystem.

This way you would use: <body background="/background.jpg">
Title: Re: Changes How ?
Post by: SmasHinG on September 16, 2009, 01:45:11 PM
You can change the background as you read above:
Quote
<body background="/fileserver/background.png">
provided you have your backgrund file in a directory 'fileserver' (this can be another name!) and this directory is attached to the root of hfs.exe. You can also put directly your background.jpg wherever it is to the root of your virtual filesystem.

This way you would use: <body background="/background.jpg">
And that it`s work already
Thank you very much to all for fast help  ;)

Please help me for last time. My last questions is how change colors of picture where i upload.
How change orange i yellow color with image ?
Title: Re: Changes How ?
Post by: kaler on September 16, 2009, 01:53:07 PM
i think that arent images...

please post you Code for this tabel (table ) i dont' know the spelling;)
Title: Re: Changes How ?
Post by: SmasHinG on September 16, 2009, 02:07:58 PM
i think that arent images...

please post you Code for this tabel (table ) i dont' know the spelling;)

This is my table code
[style]
body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { margin:0; background-color:#0080FF; padding:10px; }
p { margin:0 }
a { text-decoration:none;  background-color:Transparent; color:#7E2217; }
a:visited { color:#2EFE9A; }
a:hover { background-color:#87AFC7; }
img { border-style:none }
td { font-size:10pt; background:#FFFF00; border:1px solid #58FA58 }
td img { vertical-align:top }
th, th a, th a:visited { color:#8D38C9; font-size:13pt; font-weight:bold; padding-bottom:0; }
#foldercomment { font-size:10pt; color:#FF0000; background:#FFF380; padding:3px; border:1px solid #045FB4; border-bottom:3px solid #045FB4; margin-top:2px; }
#tools { text-align:right; font-size: 8pt; }
#folder, .big { font-size:14pt; font-weight:bold;  }
#folderlabel, #folderstats, #footer { font-size: 8pt; }
#body {
  border-bottom: 4px solid #045FB4;
     border-top: 4px solid #045FB4;
    border-left: 1px dotted #045FB4;
   border-right: 1px dotted #045FB4;
  background:#FE9A2E;
  padding:15px;
  margin:15px;
}
.comment { font-size:7pt; color:#DF01D7; background:#FFFF00; padding:3px; border:1px solid #DF01D7; margin-top:2px; }
.button { float:right; padding:5px; padding-top:7px; margin:15px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
.button img { vertical-align:text-bottom; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }
Title: Re: Changes How ?
Post by: kaler on September 17, 2009, 11:35:32 AM
... no please post your folder and files view...

Bsp:[folder][file]-.-

thanks...

Title: Re: Changes How ?
Post by: SmasHinG on September 17, 2009, 09:29:42 PM
... no please post your folder and files view...

Bsp:[folder][file]-.-

thanks...



D:/File Server/

Look upload picture
Title: Re: Changes How ?
Post by: kaler on September 18, 2009, 04:52:05 AM
nooo.. i need the template... in the template there is a part called [folder] and a part called [files] these i need to see, the structur of your table... Thanks...
Title: Re: Changes How ?
Post by: SmasHinG on September 18, 2009, 08:29:28 AM
nooo.. i need the template... in the template there is a part called [folder] and a part called [files] these i need to see, the structur of your table... Thanks...

Look my full template and write how i change

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <style type="text/css">
  %style%
  </style>
  <title>SmasHinG %folder%</title>
  <link rel="shortcut icon" href="favicon.ico" />
</head>
 <body background="/background.jpg">
</body>
<body>
%login-link%
%loggedin%
%upload-link%
<div id=folderlabel>folder</div>
<div id=folder>%folder%</div>
<div id=body>
%folder-comment%
%up%
%files%
</div>
<div id=footer>
<center><b><a href="http://server.langame.org:69/">SmasHinG File Server</a></center></b>
<br /><center><b>ServerTime: %timestamp%</center></b>
<br /><center><b>UpTime: %uptime%</center></b>
<br /><center><b>Build-Time: %build-time%</center></b>
<br/><center><b>Admin Contact: bodushki@gmail.com</center></b>
<br/><center><b>Powered By SmasHinG</center></b>
</div>
</div>
</body>
</html>

[style]
body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { margin:0; background-color:#0080FF; padding:10px; }
p { margin:0 }
a { text-decoration:none;  background-color:Transparent; color:#7E2217; }
a:visited { color:#2EFE9A; }
a:hover { background-color:#87AFC7; }
img { border-style:none }
td { font-size:10pt; background:#FFFF00; border:1px solid #58FA58 }
td img { vertical-align:top }
th, th a, th a:visited { color:#8D38C9; font-size:13pt; font-weight:bold; padding-bottom:0; }
#foldercomment { font-size:10pt; color:#FF0000; background:#FFF380; padding:3px; border:1px solid #045FB4; border-bottom:3px solid #045FB4; margin-top:2px; }
#tools { text-align:right; font-size: 8pt; }
#folder, .big { font-size:14pt; font-weight:bold;  }
#folderlabel, #folderstats, #footer { font-size: 8pt; }
#body {
  border-bottom: 4px solid #045FB4;
     border-top: 4px solid #045FB4;
    border-left: 1px dotted #045FB4;
   border-right: 1px dotted #045FB4;
  background:#FE9A2E;
  padding:15px;
  margin:15px;
}
.comment { font-size:7pt; color:#DF01D7; background:#FFFF00; padding:3px; border:1px solid #DF01D7; margin-top:2px; }
.button { float:right; padding:5px; padding-top:7px; margin:15px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
.button img { vertical-align:text-bottom; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }

[login-link]
<a href="~login" class=button><img src="/~img27" /><b> LOGIN</b></a>

[loggedin]
<span class=button><img src="/~img27" /> user: %user%</span>

[upload-link]
<a href="~upload" class=button><img src="/~img32" /><b> UPLOAD</b></a>

[up]
<a class=big href=".."><img src="/~img14" /><b> Back</b></a>

[nofiles]
<div class=big><b>No file</b></div>

[files]
<div id=folderstats><b>%number-folders% folders,  %number-files% files - Total: %total-size%</b></div>
<table cellpadding=5>
<th><a href="?sort=n"><b>Filename</b></a>
<th><a href="?sort=s"><b>Filesize</b></a>
<th><a href="?sort=t"><b>Filetime</b></a>
<th><a href="?sort=d"><b>Hits</b></a>
%list%
</table>
<div id=tools>
<a href="~files.lst?recursive"><b>File list</b></a>
%archive%
</div>

[archive]
<br><a href="~folder.tar?recursive"><b>Folder archive</b></a>

[protected]
<img src='/~img_lock'>

[file]
<tr><td>%new% %protected% <a href="%item-url%"><img src="/~img_file" /> %item-name%</a>%comment%<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%

[folder]
<tr><td>%new% %protected% <a href="%item-url%"><img src="/~img_folder" /> <b>%item-name%</b></a>%comment%<td align=center><i>folder</i><td align=right>%item-modified%<td align=right>%item-dl-count%

[link]
<tr><td>%new% <a href="%item-url%"><img src="/~img_link" /> <b>%item-name%</b></a>%comment%<td colspan=3 align=center><i>link</i>

[comment]
<div class=comment>%item-comment%</div>

[folder-comment]
<div id=foldercomment>%item-comment%</div>

[error-page]
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <style>
    %style%
    </style>
  </head>
<body>
%content%
<hr>
<div style="font-family:tahoma, verdana, arial, helvetica, sans; font-size:8pt;">
<a href="http://server.langame.org:69/"><b>SmasHinG File Server</b></a>
<br />%timestamp%
</div>
</body>
</html>

[not found]
<h1><b>404 -  Not found</b></h1>
<a href="/">go to root</a>

[overload]
<h1><b>Server busy</b></h1>
<b>Please, retry later.</b>

[max contemp downloads]
<h1>Download limit</h1>
<b>On this server there is a limit on the number of simultaneous downloads.</b>
<br /><b>This limit has been reached. Retry later.</b>

[unauthorized]
<h1><b>Unauthorized</b></h1>
<b>This is a protected resource.</b>
<br /><b>Your username/password doesn't match.</b>

[deny]
<h1><b>Unallowed</b></h1>
<b>This resource is not accessible.</b>

[ban]
<h1><b>You are banned.</b></h1>
%reason%

[upload]
<html>
<head>
  <title>SmasHinG %folder%</title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <style type="text/css">
  %style%
  </style>
</head>
<body>
%login-link%
%loggedin%
<script language="javascript">
var s1, s2;
if (window.parent.progress) s1 = '" target=_parent', s2 = 'CLOSE';
else s1 = '+progress"', s2= 'ADD';
document.write('<a href="~upload'+s1+' class=button onClick="if (frm.upbtn.disabled) return false;"><img src="/~img10" /> '+s2+' PROGRESS FRAME</a>');
</script>
<a href="." target=_parent class=button><img src="/~img21" /> CANCEL UPLOAD</a>
<div style="margin-top:60px" id=folderlabel>folder</div>
<div id=folder>%folder%</div>
<div id=body>
<form name=frm action="." target=_parent method=post enctype="multipart/form-data" onSubmit="frm.upbtn.disabled=true; return true;">
%upload-files%
<input name=upbtn type=submit value="Upload files">
</form>
<br /><b>Before uploading you may want to open a <a target=_blank href="/~progress">progress status window</b></a>.
</div>
<div id=footer>
<a href="http://server.langame.org:69/"><b>SmasHinG File Server</b></a>
<br /><b>ServerTime: %timestamp% </b>
<br /><b>UpTime: %uptime% </b>
<br /><b>Disk Space: %diskfree% </b>
</div>
</body>
</html>

[upload-file]
<input name=fileupload%idx% size=70 type=file><br />

[upload-results]
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <style type="text/css">
  %style%
  </style>
  <title>SmasHinG %folder%</title>
</head>
<body>
%loggedin%
<div style="margin-top:60px" id=folderlabel>folder</div>
<div id=folder>%folder%</div>
<div id=body>
%uploaded-files%
<br /><br />
<a href="." target=_parent class=big><img src="/~img14" /><b> Back to the folder</b></a>
</div>
<div class=footer>
<a href="http://server.langame.org:69/"><b>SmasHinG File Server</b></a>
<br /><b>ServerTime: %timestamp% </b>
<br /><b>UpTime: %uptime% </b>
<br /><b>Disk Space: %diskfree% </b>
</div>
</body>
</html>

[upload-success]
<li><a href='%item-url%'>%item-name%</a>: <b>OK</b> --- %item-size%  (Speed %speed% KB/s)

[upload-failed]
<li>%item-name%: <b>FAILED</b> ---  %reason%

[upload+progress]
<html>
<head>
<frameset cols=200,*>
  <frame name=progress src="/~progress" scrolling=auto marginwidth=0>
  <frame src="~upload-no-progress" scrolling=auto>
</frameset>
</head>
<body>
</body>
</html>

[progress]
<html>
<head>
  <meta http-equiv="Refresh" content="7;URL=/~progress">
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <title>SmasHinG - Progress status</title>
  <style>
  %style%
  .filename { font-weight:bold; font-size:8pt; }
  .bytes { font-size:7pt; }
  .perc { font-size:14px; vertical-align:middle; }
  .out_bar { width:100px; font-size:15px; background:black; border:black 1px solid; margin-right:5px; float:left; }
  .in_bar { height:16px; background:white; color:white;  }
  #body { margin-left:0; margin-right:0; }
  body { padding:2px; }
  #graph { border:white outset 2px; }
  </style>
</head>
<body>
<div class=big>Progress status</div>
<b>Auto-refresh: 7 seconds</b>
<br /><br /><img src="/~img_graph190x40" id="graph" />
<div id=body>
%progress-files%
</div>
<div id=footer><b>Uptime: %uptime%</b></div>
</body>
</html>

[progress-nofiles]
<div class=big>No file exchange in progress.</div>

[progress-upload-file]
<span class=flag>&nbsp;up&nbsp;</span>
<span class=filename>%filename%</span>
<div class=bytes>
%done-bytes% / %total-bytes% bytes
<br />Speed: %speed-kb% KB/s
</div>
<div style="margin-top:5px; margin-bottom:20px;">
  <div class=out_bar><div class=in_bar style="width:%perc%px"></div></div> <span class=perc>%perc%%</span>
</div>

[progress-download-file]
<span class=flag>&nbsp;down&nbsp;</span>
<span class=filename>%filename%</span>
<div class=bytes>
%done-bytes% / %total-bytes% bytes
<br />Speed: %speed-kb% KB/s
</div>
<div style="margin-top:5px; margin-bottom:20px;">
  <div class=out_bar><div class=in_bar style="width:%perc%px"></div></div> <span class=perc>%perc%%</span>
</div>

[newfile]
<span class=flag>&nbsp;NEW&nbsp;</span>


And anybody please include logout button and rename/delete folder/files buttons with privilegies like a upload form.
And anybody include search if possible. This search i want search random word in folders/files .
Thank You
Title: Re: Changes How ?
Post by: kaler on September 18, 2009, 01:34:59 PM
hello i have see where you can change the color:
[style]
body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { margin:0; background-color:#0080FF; padding:10px; }
p { margin:0 }
a { text-decoration:none;  background-color:Transparent; color:#7E2217; }
a:visited { color:#2EFE9A; }
a:hover { background-color:#87AFC7; }
img { border-style:none }
td { font-size:10pt; background:#FFFF00; border:1px solid #58FA58 }
td img { vertical-align:top }
th, th a, th a:visited { color:#8D38C9; font-size:13pt; font-weight:bold; padding-bottom:0; }
#foldercomment { font-size:10pt; color:#FF0000; background:#FFF380; padding:3px; border:1px solid #045FB4; border-bottom:3px solid #045FB4; margin-top:2px; }
#tools { text-align:right; font-size: 8pt; }
#folder, .big { font-size:14pt; font-weight:bold;  }
#folderlabel, #folderstats, #footer { font-size: 8pt; }
#body {
  border-bottom: 4px solid #045FB4;
     border-top: 4px solid #045FB4;
    border-left: 1px dotted #045FB4;
   border-right: 1px dotted #045FB4;
  background:#FE9A2E;
  padding:15px;
  margin:15px;
}
.comment { font-size:7pt; color:#DF01D7; background:#FFFF00; padding:3px; border:1px solid #DF01D7; margin-top:2px; }
.button { float:right; padding:5px; padding-top:7px; margin:15px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
.button img { vertical-align:text-bottom; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }


The RED one you must change into your color you want to have...

I'm sorry there is no loggout button...

The Search button is this one:
<form id="search" action="/" name="search" method="get">
         <input type="text" name="search" maxlength="32" value="{.if not|{.?search.}|search|{.?search.}.}" onclick="if(this.value=='{.if not|{.?search.}|Search|{.?search.}.}')this.value=''"/>
      </form>
You must add it where you want...


When you want to rename and delet files and folders, you can use this one... (with my version, you can also create a folder...)

The Special beginn you musst add how i write down...:

Blue is the old version from you, and the red things I have added...

[special:begin]
{.if|{.and| {.get|can upload.} | {.urlvar|createfolder.} .}|{:
{.mkdir|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}
{.if|{.and| {.get|can upload.} | {.urlvar|deletefolder.} .}|{:
{.delete|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}
{.if|{.and| {.get|can delete.} | {.urlvar|createroot.} .}|{:
{.{.add folder.}|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}
{.if|{.and| {.get|can delete.} | {.urlvar|deleteroot.} .}|{:
{.delete|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}
{.if|{.and| {.get|can upload.} | {.urlvar|renamefile.} .}|{:
{.rename|%folder-resource%\{.urlvar|oldname.}|%folder-resource%\{.urlvar|newname.}.}
:}/if.}


[]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <style type="text/css">
  %style%
  </style>
  <title>SmasHinG %folder%</title>
  <link rel="shortcut icon" href="favicon.ico" />
</head>
 <body background="/background.jpg">
</body>
<body>
%login-link%
%loggedin%
%upload-link%


<table>
<tr>
<td>
<b>Create Folder:</b>
{.if|{.get|can delete.}
      |<form method='get'>
      <input class="toolsinput" type='text' alt="File/Folder Name" name='fldname' maxlength="100"
      size="23" value="{.!File/Folder Name.}" onclick="if(this.value=='{.!File/Folder Name.}')            this.value=''"/><input class="toolsbutton" type='submit' name='createfolder' value='OK' ></form>.}
</td>
<td>
<b>Delet Folder:</b>

{.if|{.get|can delete.}|
      <form method='get'>
      <input class="toolsinput" type='text' alt="Type File/Folder Name" name='fldname' maxlength="100"       size="23" value="{.!File/Folder Name.}" onclick="if(this.value=='{.!File/Folder Name.}')               this.value=''"/><input class="toolsbutton" type='submit' name='deletefolder' value='OK' ></form>.}
</td>
<td>
<b>Rename File/Folder:</b>
{.if|{.get|can delete.}|
      <form method='get'>
      <input class="toolsinput" type='text' name='oldname' maxlength="50" size="18" value="Old Name.."       onclick="if(this.value=='Old Name..')this.value=''"/>
      <input class="toolsinput" type='text' name='newname' maxlength="50" size="18" value="New Name.."       onclick="if(this.value=='New Name..')this.value=''"/>
      <input type='submit' name='renamefile' value='ok' class="toolsbutton">
</form>
</td>
</tr>
</table>


<div id=folderlabel>folder</div>
<div id=folder>%folder%</div>
<div id=body>
%folder-comment%
%up%
%files%
</div>
<div id=footer>
<center><b><a href="http://server.langame.org:69/">SmasHinG File Server</a></center></b>
<br /><center><b>ServerTime: %timestamp%</center></b>
<br /><center><b>UpTime: %uptime%</center></b>
<br /><center><b>Build-Time: %build-time%</center></b>
<br/><center><b>Admin Contact: bodushki@gmail.com</center></b>
<br/><center><b>Powered By SmasHinG</center></b>
</div>
</div>
</body>
</html>

YOUR REST OF THE TEMPLATE




When you have question, please ask:)
Title: Re: Changes How ?
Post by: SmasHinG on September 18, 2009, 02:25:41 PM
hello i have see where you can change the color:
[style]
body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { margin:0; background-color:#0080FF; padding:10px; }
p { margin:0 }
a { text-decoration:none;  background-color:Transparent; color:#7E2217; }
a:visited { color:#2EFE9A; }
a:hover { background-color:#87AFC7; }
img { border-style:none }
td { font-size:10pt; background:#FFFF00; border:1px solid #58FA58 }
td img { vertical-align:top }
th, th a, th a:visited { color:#8D38C9; font-size:13pt; font-weight:bold; padding-bottom:0; }
#foldercomment { font-size:10pt; color:#FF0000; background:#FFF380; padding:3px; border:1px solid #045FB4; border-bottom:3px solid #045FB4; margin-top:2px; }
#tools { text-align:right; font-size: 8pt; }
#folder, .big { font-size:14pt; font-weight:bold;  }
#folderlabel, #folderstats, #footer { font-size: 8pt; }
#body {
  border-bottom: 4px solid #045FB4;
     border-top: 4px solid #045FB4;
    border-left: 1px dotted #045FB4;
   border-right: 1px dotted #045FB4;
  background:#FE9A2E;
  padding:15px;
  margin:15px;
}
.comment { font-size:7pt; color:#DF01D7; background:#FFFF00; padding:3px; border:1px solid #DF01D7; margin-top:2px; }
.button { float:right; padding:5px; padding-top:7px; margin:15px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
.button img { vertical-align:text-bottom; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }


The RED one you must change into your color you want to have...

I'm sorry there is no loggout button...

The Search button is this one:
<form id="search" action="/" name="search" method="get">
         <input type="text" name="search" maxlength="32" value="{.if not|{.?search.}|search|{.?search.}.}" onclick="if(this.value=='{.if not|{.?search.}|Search|{.?search.}.}')this.value=''"/>
      </form>
You must add it where you want...


When you want to rename and delet files and folders, you can use this one... (with my version, you can also create a folder...)

The Special beginn you musst add how i write down...:

Blue is the old version from you, and the red things I have added...

[special:begin]
{.if|{.and| {.get|can upload.} | {.urlvar|createfolder.} .}|{:
{.mkdir|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}
{.if|{.and| {.get|can upload.} | {.urlvar|deletefolder.} .}|{:
{.delete|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}
{.if|{.and| {.get|can delete.} | {.urlvar|createroot.} .}|{:
{.{.add folder.}|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}
{.if|{.and| {.get|can delete.} | {.urlvar|deleteroot.} .}|{:
{.delete|%folder-resource%\{.urlvar|fldname.}.}
:}/if.}
{.if|{.and| {.get|can upload.} | {.urlvar|renamefile.} .}|{:
{.rename|%folder-resource%\{.urlvar|oldname.}|%folder-resource%\{.urlvar|newname.}.}
:}/if.}


[]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <style type="text/css">
  %style%
  </style>
  <title>SmasHinG %folder%</title>
  <link rel="shortcut icon" href="favicon.ico" />
</head>
 <body background="/background.jpg">
</body>
<body>
%login-link%
%loggedin%
%upload-link%


<table>
<tr>
<td>
<b>Create Folder:</b>
{.if|{.get|can delete.}
      |<form method='get'>
      <input class="toolsinput" type='text' alt="File/Folder Name" name='fldname' maxlength="100"
      size="23" value="{.!File/Folder Name.}" onclick="if(this.value=='{.!File/Folder Name.}')            this.value=''"/><input class="toolsbutton" type='submit' name='createfolder' value='OK' ></form>.}
</td>
<td>
<b>Delet Folder:</b>

{.if|{.get|can delete.}|
      <form method='get'>
      <input class="toolsinput" type='text' alt="Type File/Folder Name" name='fldname' maxlength="100"       size="23" value="{.!File/Folder Name.}" onclick="if(this.value=='{.!File/Folder Name.}')               this.value=''"/><input class="toolsbutton" type='submit' name='deletefolder' value='OK' ></form>.}
</td>
<td>
<b>Rename File/Folder:</b>
{.if|{.get|can delete.}|
      <form method='get'>
      <input class="toolsinput" type='text' name='oldname' maxlength="50" size="18" value="Old Name.."       onclick="if(this.value=='Old Name..')this.value=''"/>
      <input class="toolsinput" type='text' name='newname' maxlength="50" size="18" value="New Name.."       onclick="if(this.value=='New Name..')this.value=''"/>
      <input type='submit' name='renamefile' value='ok' class="toolsbutton">
</form>
</td>
</tr>
</table>


<div id=folderlabel>folder</div>
<div id=folder>%folder%</div>
<div id=body>
%folder-comment%
%up%
%files%
</div>
<div id=footer>
<center><b><a href="http://server.langame.org:69/">SmasHinG File Server</a></center></b>
<br /><center><b>ServerTime: %timestamp%</center></b>
<br /><center><b>UpTime: %uptime%</center></b>
<br /><center><b>Build-Time: %build-time%</center></b>
<br/><center><b>Admin Contact: bodushki@gmail.com</center></b>
<br/><center><b>Powered By SmasHinG</center></b>
</div>
</div>
</body>
</html>

YOUR REST OF THE TEMPLATE




When you have question, please ask:)


Search button doesn`t work. I want search button & bar like a upload picture. Please tell me how insert search to this position where is on picture and work correctly. Thank You


And here i don`t want change a color ot this background i want change this background with image tell me how ?
and logout button if you can write.Thanks

hello i have see where you can change the color:
[style]
body, th { font-family:tahoma, verdana, arial, helvetica, sans; font-weight:normal; font-size:9pt; }
body { margin:0; background-color:#0080FF; padding:10px; }
p { margin:0 }
a { text-decoration:none;  background-color:Transparent; color:#7E2217; }
a:visited { color:#2EFE9A; }
a:hover { background-color:#87AFC7; }
img { border-style:none }
td { font-size:10pt; background:#FFFF00; border:1px solid #58FA58 }
td img { vertical-align:top }
th, th a, th a:visited { color:#8D38C9; font-size:13pt; font-weight:bold; padding-bottom:0; }
#foldercomment { font-size:10pt; color:#FF0000; background:#FFF380; padding:3px; border:1px solid #045FB4; border-bottom:3px solid #045FB4; margin-top:2px; }
#tools { text-align:right; font-size: 8pt; }
#folder, .big { font-size:14pt; font-weight:bold;  }
#folderlabel, #folderstats, #footer { font-size: 8pt; }
#body {
  border-bottom: 4px solid #045FB4;
     border-top: 4px solid #045FB4;
    border-left: 1px dotted #045FB4;
   border-right: 1px dotted #045FB4;
  background:#FE9A2E;
  padding:15px;
  margin:15px;
}
.comment { font-size:7pt; color:#DF01D7; background:#FFFF00; padding:3px; border:1px solid #DF01D7; margin-top:2px; }
.button { float:right; padding:5px; padding-top:7px; margin:15px; border:2px solid black; background:white; font-size:8pt; font-weight:bold; }
.button img { vertical-align:text-bottom; }
.flag { font-weight:bold; font-size:8pt; background:white; color:red; text-align:center; border:1px solid red; }


The RED one you must change into your color you want to have...

I'm sorry there is no loggout button...
Title: Re: Changes How ?
Post by: kaler on September 18, 2009, 02:27:06 PM
i will try just a moment...
Title: Re: Changes How ?
Post by: kaler on September 18, 2009, 03:29:05 PM
yeah i'm ready.. you can download your template

when the user can download and delet in the folder, then he can rename and delet and create folders...

... when you have questions then ask me :)
Title: Re: Changes How ?
Post by: SmasHinG on September 18, 2009, 05:16:32 PM
yeah i'm ready.. you can download your template

when the user can download and delet in the folder, then he can rename and delet and create folders...

... when you have questions then ask me :)

Look error on upload picture
Search not work

And rename/delete/create  folder not work no buttons and in menu privilegies for who users set.
Title: Re: Changes How ?
Post by: kaler on September 18, 2009, 08:02:00 PM
... not my problem...

do u use the newest build?
Title: Re: Changes How ?
Post by: SmasHinG on September 18, 2009, 08:42:06 PM
... not my problem...

do u use the newest build?
i use 2.2f build 155  

and not work delete/rename/create folders/files  and SEARCH bar
i ask question for background in folders with yellow and orange color change with image and don`t tell me how i do it this work ?

I update version to 2.3beta build 246  and search it`s work, but rename/delete/create folders/files doesn`t work and if you can please include home button after search resultats  and this button back to home directory.
Title: Re: Changes How ?
Post by: maverick on September 19, 2009, 04:36:27 AM
i use 2.2f build 155  

Those features aren't supported in that version of HFS.  Get yourself the latest beta 2.3 build 246 from the beta forum.
Title: Re: Changes How ?
Post by: SmasHinG on September 19, 2009, 06:30:01 AM
Those features aren't supported in that version of HFS.  Get yourself the latest beta 2.3 build 246 from the beta forum.
i`m already with 2.3 beta build 246  please give me code for rename/delete/create folders/files  and for logout button. Thank You
Title: Re: Changes How ?
Post by: kaler on September 19, 2009, 07:50:49 AM
arg.. there is no logout button.

and the delet and serch funktion works...;) i have tested it...

do you have enabeld the macros?

And... only the user who can delet and upload to the folder, kan delet folder,etc...

But when you want, i change the template into the version, and everybody who enter your site can delet and rename etc...

Title: Re: Changes How ?
Post by: SmasHinG on September 19, 2009, 10:53:19 AM
arg.. there is no logout button.

and the delet and serch funktion works...;) i have tested it...

do you have enabeld the macros?

And... only the user who can delet and upload to the folder, kan delet folder,etc...

But when you want, i change the template into the version, and everybody who enter your site can delet and rename etc...


I have enabled macros  but template you give me not work with delete/rename/create folders i ask for users with privilegies upload set not for non logged
And logout button why don`t integrated ? and look old pictures and themes where i write what ask and tell me how change colors to picture with images ?
Title: Re: Changes How ?
Post by: bacter on September 19, 2009, 12:00:09 PM
With less effort than posting during 4 days asking how to add a background img to a html-element, you could have learned enough about it - googling or/and using the link of http://www.w3schools.com/ - to be able to change background colors and images wherever you want on any template!

Also, instead of repeating that you want a logout button - after you were told that there is no logout or exit in hfs - you could use the search option of this forum: you would find that many times this question was answered, explaining that logout is NOT possible: you have to close the browser.

Remember, that a forum is a place where NEW problems or features are discussed, themes that help to improve templates or hfs, asking for new applications and problems with macros ... things that can be of interest for most users. You may find people that like spending their time helping you and others - but the forum it's not meant to be a free shop where others work only for you. Get your basic knowledge of html and css (it's not difficult!), google and use the search feature of this forum: most questions like favicon, logout are already answered. Sure that this way you can get better help for not trivial questions! ;)

Title: Re: Changes How ?
Post by: kaler on September 19, 2009, 12:29:58 PM
jeah bacter you are right...

And SmasHinG

i have programmed for you a template, wich works 100%...

when you can delet a folder, you cant change theri name etc... I have ttold you, that the user MUST can DELET AND UPLOAD

When you can't understand it, then u aren't right in thsi forum....

In my first message i have told you, where you can change the color of the Table, but when you can't read the answers of you question, then nobody would help you anymore...

Please MODERATOR close this Topic...
Title: Re: Changes How ?
Post by: SmasHinG on September 19, 2009, 01:16:49 PM
jeah bacter you are right...

And SmasHinG

i have programmed for you a template, wich works 100%...

when you can delet a folder, you cant change theri name etc... I have ttold you, that the user MUST can DELET AND UPLOAD

When you can't understand it, then u aren't right in thsi forum....

In my first message i have told you, where you can change the color of the Table, but when you can't read the answers of you question, then nobody would help you anymore...

Please MODERATOR close this Topic...



Okey guys thank you for all and have a nice day/night :) ;)