rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: rejetto on February 23, 2010, 02:28:11 AM

Title: next default template to build 261
Post by: rejetto on February 23, 2010, 02:28:11 AM
guys, this took me several hours.
it's my idea for the next default template.
still unfinished, some things are yet to come.
i know is not the nicest thing around, but i'm trying to not use extra images.
it's meant to be cross-browser (i forgot to test chrome/safari) and no-script compatible.
comments and contributions are welcome.
Title: Re: next default template
Post by: SilentPliz on February 23, 2010, 11:21:02 AM
Nice! ;)

There is a small error in line 104

< is missing here :

<button onclick = '.......

I tested it a little ... To be continued ...
Title: Re: next default template
Post by: SilentPliz on February 23, 2010, 11:38:45 AM
I like the highlighted selections ... good idea ;)

... Ideally, it would be nice, when you select multiple items, you can deselect them by clicking only on one of them.
------------------------------------------------------------------------
By cons I find quite annoying the borders around all the clickables stuff. :-\
Title: Re: next default template
Post by: SilentPliz on February 23, 2010, 03:05:13 PM
Since you are launched in JavaScript, why you will not incorporate this kind of thing:

I tried at one time, but my knowledge of scripts are rather limited.

It seemed in all cases more affordable than flash applets

http://www.jupload.biz/
Title: Re: next default template
Post by: Mars on February 23, 2010, 03:06:32 PM
Quote
Ideally, it would be nice, when you select multiple items, you can deselect them by clicking only on one of them

c'est déjà le cas mais t'as pas du cliquer au bon endroit :D



Title: Re: next default template
Post by: rejetto on February 23, 2010, 03:13:07 PM
i don't like java applet solutions. i find flash ones to be much lighter.

i will soon publish an update for the template.
Title: Re: next default template
Post by: Mars on February 23, 2010, 04:46:28 PM
I congratulate you on the made work of innovation, but I shall just have some small remarks to be formulated:

1-There are too many idle zones of space which lengthen  the page pointlessly.
(http://www.rejetto.com/forum/index.php?action=dlattach;topic=8247.0;attach=5008;image)

2- The appearance of the list is not of the most finished, the blue vertical separators of each side of names or boxes of text make more ornamental than useful, to preserve a zone of checkbox for the selection would have more been one
(http://www.rejetto.com/forum/index.php?action=dlattach;topic=8247.0;attach=5010;image)

3 resulting in an expansion of the web page that causes the use of elevators in several copies and that react badly with using the wheelmouse
(http://www.rejetto.com/forum/index.php?action=dlattach;topic=8247.0;attach=5012;image)

And this is only first impressions: appearance between firefox and ie is totally different.
Title: Re: next default template
Post by: bacter on February 23, 2010, 05:33:40 PM
New template looks better than actual, but there are some styling problems - not a problem of css, but a problem of different browsers.

For example, what mars sees as vertical bars delimiting the itemname, in FF shows correctly as blue border like on the elements on the left side.
I suggest you to remove borders and to use  a style-element (for example item) and tu apply 'item:hover backgroundcolor...' on <td class="item">
on the item field, this avoids problems with padding and borders in different browsers.

Also y suggest to limit the width of the leftblock with a maxwidth <div>
Title: Re: next default template
Post by: SilentPliz on February 23, 2010, 07:42:24 PM
... it would be nice also leave comments (for files & folders) in the usual place, for if they are too widest, the new menu take too much space.

Edit :

@Mars
On devrait censurer des images comme celles-ci ! ;D
Title: Re: next default template
Post by: Mars on February 23, 2010, 09:21:23 PM
Quote
For example, what mars sees as vertical bars delimiting the itemname, in FF shows correctly as blue border like on the elements on the left side.

just change those lines and works on twice brosers

#panel { width:40%; float:left; margin-top:1em; margin-left:1em;  margin-right:1.5em; }

a { text-decoration:none; color:#47c; border:0px solid transparent; padding:0.2em 0; }
Title: Re: next default template
Post by: rejetto on February 24, 2010, 12:06:13 AM
mars uses IE6.  :o
i will work now to improve compatibility with it, although i'm doubtful.
in attachment the expected look of the template.
Title: Re: next default template
Post by: rejetto on February 24, 2010, 02:06:01 AM
re-download the attachment at first post.
it's an updated version.
it has also a first attempt for improving IE6 compatibility.

http://www.rejetto.com/forum/index.php?action=dlattach;topic=8247.0;attach=5017 (http://www.rejetto.com/forum/index.php?action=dlattach;topic=8247.0;attach=5017)
Title: Re: next default template
Post by: SilentPliz on February 24, 2010, 07:34:45 AM
That's better!

Tests done with Firefox 3.5.8, IE8 (compatibility & standard modes), Opera 10.
The result is homogenic, and the annoying defects, seem to have disappeared.

 ;)
Title: Re: next default template
Post by: luca69 on February 24, 2010, 10:12:17 AM
Hi Rejetto,
the new template looks nice. I tested it on IE8 and it works perfectly.

my 2 euro cents - I found this features very useful and in my opinion shall be part of default template:
- the possibility to create a folder
- possibility to add a comment to the uploaded file
- function for the user to change her/his password

As you are working on the template, maybe you can also fix the bug with the Progress Frame which does not work with browsers different from IE  ;)
Title: Re: next default template
Post by: Mars on February 24, 2010, 01:48:40 PM
The new template cannot work if hfs is not connected to internet (self test successful ).

The cause is the use of a external javascript library.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>

Two solutions offer themselves to us:

1 - Load this file as resource interns in hfs, so that it is always available, but what blocks eventually the updates of this file.

2 - Add in hfs the possibility of loading a template in the form of an archive zip which would contain all the necessary resources, this principle is used in some GPS software to allow an overload of the resources (on the same principle as the css and its syntax)

Title: Re: next default template
Post by: r][m on February 24, 2010, 04:48:45 PM
My 2 cents on new tpl.  :)
For a web site the side bar style works OK.
For a file server with a lot of files in folders there is a lot of blank space
below it to the bottom of the page, unless its made to "float" down,
which I find annoying.
It also displays the same info for all folders, some of which
I view as unnecessary to be seen in all folders. This style can also crowd
long file names into 3 or 4 lines furthur extending the page.

Title: Re: next default template
Post by: SilentPliz on February 24, 2010, 06:51:40 PM
ONLY FOR TEST :)

Already the next modified template :

- Creating folders (up to 6 at once) :o :D
- comments for files and folders at any time
- rename files and folders
- replace folders (works in this way, only with the french beta, I think)

- Send notification messages to the desktop (these messages can be forwarded by eg to a e-mail box)
The installation of "Growl for Windows" on the Server side is required.

About Growl

There has this line in the template :

Quote
{.exec|"C:\Program Files\Growl for Windows\growlnotify.exe" /t:"{.postvar|notifytitle.}   %time%" /i:"e:\HFS.png" "{.postvar|notifytext.}".}

The part in blue is the path where Growl is installed on my system, pointing at growlnotify.exe; the file that is launched when sending an notification.
The part in green is where I placed the HFS.png icon on my hard drive.
Please correct if necessary in the template these paths to match yours.
I enclose to the end of this message, the .png that I use as an icon, but any image of modest size, can agree.

Other options (via hfs.events file) :
http://www.rejetto.com/forum/index.php/topic,7669.0.html


@rejetto:

You see, this is the price of success ... your model is not even in stores that "mod's" come already on the market. :D


EDIT 03-1-2010
Title: Re: next default template
Post by: luca69 on February 25, 2010, 08:40:45 AM
Tested with HFS 248.
I got a macro error  >:( (see attacment)
"Comment File & Folder" - nice but not very comfortable to use  :(

Select buttion does not work ?!?! --> Maybe I have to use the later version of HFS  ;)

Title: Re: next default template
Post by: SilentPliz on February 25, 2010, 08:58:16 AM
Quote
+ new macro alias: between, 123 if 2

123 if 2 it here since the build #251

But if you want to be sure not nothing to miss ... uses build #254 ;)

The select button work fine for me :-\


Joke : You're not using IE6 by chance? :D
Title: Re: next default template
Post by: bacter on February 25, 2010, 09:18:23 AM
I would not make any effort to support IE6 - just a message:
Code: [Select]
<!--[if lte IE 6]>Update your browser or install a new browser<![endif]-->
Title: Re: next default template
Post by: SilentPliz on February 25, 2010, 09:21:33 AM
 :D

Quote
Espèce de faux frère!

Mars : ;D
Title: Re: next default template
Post by: SilentPliz on February 25, 2010, 10:08:35 AM
TPL "mod" updated :

http://www.rejetto.com/forum/index.php/topic,8247.msg1048901.html#msg1048901

I forgot for comments:

{.convert|utf-8|ansi|{.postvar|outputtext.}.}

for ééé ààà ùùù ... etc
Title: Re: next default template
Post by: rejetto on February 25, 2010, 10:24:33 AM
I would not make any effort to support IE6 - just a message:

i'd be happy to do it.
sadly, my web stats (rejetto.com) reports IE6 to be used by 10% of those 67k people who visited the website this month.
10% is too much to ignore.
Title: Re: next default template
Post by: rejetto on February 25, 2010, 10:29:54 AM
For a web site the side bar style works OK. 
For a file server with a lot of files in folders there is a lot of blank space below it to the bottom of the page, unless its made to "float" down, which I find annoying.

i tested it with major browsers (latest versions) and the bar is like floating.
so i wonder why it doesn't for you.
can you double check?
and if confirmed, what browser are you using?

Quote
It also displays the same info for all folders, some of which I view as unnecessary to be seen in all folders.

please suggest what info i should remove. and how often they should be displayed.

Quote
This style can also crowd long file names into 3 or 4 lines furthur extending the page.

what display resolution are you using?
Title: Re: next default template
Post by: SilentPliz on February 25, 2010, 01:08:57 PM
The "Event" [upload completed] does not work with this template..
Is this only because it's a "prototype"? Or it's a bugs?

----------------------------

The delete function malfunctioning for delete root files to a folder parent.

home/
   folder
   folder
          file 1
         file 2
          subfolder
                     file 1
                    file 2
   folder
   folder


Red = Deletion often problematic
Green = delete working normally

Delete folder is OK

Edit:
This seems to affect only newly uploaded files.
And in any location (folders parents, children, family)  :D ;)
Title: Re: next default template
Post by: luca69 on February 25, 2010, 01:29:46 PM
123 if 2 it here since the build #251

But if you want to be sure not nothing to miss ... uses build #254 ;)

The select button work fine for me :-\


Joke : You're not using IE6 by chance? :D

...unfortunately IT department (e.g. antispam/antivirus) decided that I cannot download the HFS anymore  ???
I'll do the tests at home  ;)

About IE6, unfortunately IE6 is the official version within our company  :o
This means that if you plan not to supported it, I cannot use the latest version!

But we start to migrate to Windows 7  ;D and UNIX users work with FireFox in any case  :D
Title: Re: next default template
Post by: SilentPliz on February 25, 2010, 01:42:16 PM

...unfortunately IT department (e.g. antispam/antivirus) decided that I cannot download the HFS anymore  ???


Merde !  :-\

Good luck at home, so ! ;)

Title: Re: next default template
Post by: rejetto on February 25, 2010, 01:52:29 PM
2 - Add in hfs the possibility of loading a template in the form of an archive zip which would contain all the necessary resources, this principle is used in some GPS software to allow an overload of the resources (on the same principle as the css and its syntax)

that's it. next release.
Title: Re: next default template
Post by: Mars on February 25, 2010, 02:17:00 PM
Quote
...unfortunately IT department (e.g. antispam/antivirus) decided that I cannot download the HFS anymore  
I'll do the tests at home  


Why not using two links in this case for each realase?

www.dovedove.it/hfs/hfs254.exe

www.dovedove.it/hfs/hfslastbeta.zip     (inside last sources topic)            
 


Quote
Quote from: Mars on 24 February 2010, 14:48:40
2 - Add in hfs the possibility of loading a template in the form of an archive zip which would contain all the necessary resources, this principle is used in some GPS software to allow an overload of the resources (on the same principle as the css and its syntax)

that's it. next release.


it's a good news
Title: Re: next default template
Post by: rejetto on February 25, 2010, 04:17:49 PM


the attachment at first post has been updated with latest fixes!


...unfortunately IT department (e.g. antispam/antivirus) decided that I cannot download the HFS anymore  ???

are you sure there's nothing you can do to workaround this problem?
if you give us more details maybe we can suggest.
Title: Re: next default template
Post by: SilentPliz on February 25, 2010, 05:10:28 PM
"Mod" tpl updated ! :

http://www.rejetto.com/forum/index.php/topic,8247.msg1048901.html#msg1048901

 ;)
Title: Re: next default template
Post by: rejetto on February 26, 2010, 10:05:28 AM
@sp
i tested this
[upload completed]
{.add to log|test.}

and got this
10.20.16 127.0.0.1:4641 Uploading diffDlg.pas
10.20.16 127.0.0.1:4641 test
10.20.16 127.0.0.1:4641 Fully uploaded -  349 B @ 22 KB/s



are you sure you put your script in the events file instead of the template?
Title: Re: next default template
Post by: rejetto on February 26, 2010, 10:14:41 AM
mars moved to http://www.rejetto.com/forum/index.php/topic,8262.0.html
Title: Re: next default template
Post by: SilentPliz on February 26, 2010, 10:20:59 AM
@sp
i tested this
[upload completed]
{.add to log|test.}

and got this
10.20.16 127.0.0.1:4641 Uploading diffDlg.pas
10.20.16 127.0.0.1:4641 test
10.20.16 127.0.0.1:4641 Fully uploaded -  349 B @ 22 KB/s

are you sure you put your script in the events file instead of the template?

Forgot my post ... I think there is an incompatibility between your template and HFS in French.
It is rather a bug to solve on my side. :-\

Sorry for the inconvenience.

Title: Re: next default template
Post by: rejetto on February 26, 2010, 10:43:38 AM
This seems to affect only newly uploaded files.
And in any location (folders parents, children, family)  :D ;)

i hadn't test deletion yet.
it's a bug in the tpl. fixed.
i will make other changes and then upload it.
Title: Re: next default template
Post by: SilentPliz on March 01, 2010, 02:32:05 PM
"Mod" tpl updated ! :

http://www.rejetto.com/forum/index.php/topic,8247.msg1048901.html#msg1048901

I added : "Change my password"

 ;)
Title: Re: next default template
Post by: rejetto on March 01, 2010, 02:44:08 PM
nice addition SP. ;)
in the while i uploaded a newer version of the template, with folder creation and comments editing.
i'm using an ajax methods, and that's how i'll make the password changer too.
Title: Re: next default template
Post by: SilentPliz on March 01, 2010, 02:49:27 PM
 8) nice!
Title: Re: next default template
Post by: SilentPliz on March 01, 2010, 02:58:30 PM
This is an excellent method for comments! I like it! :-*

But ... you forgot to convert accented characters ;)
Title: Re: next default template
Post by: rejetto on March 01, 2010, 03:24:34 PM
you are right.
but i'm not sure the best way is to convert from utf8 to ansi.
maybe comments should be stored in utf8 and eventually converted to ansi if the template is not utf8.
but i just tested total commander and it stores in ansi. :-\
Title: Re: next default template
Post by: SilentPliz on March 01, 2010, 03:34:18 PM
or keep one page in ansi   ???

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
Title: Re: next default template
Post by: SilentPliz on March 01, 2010, 03:59:14 PM
Here is the latest update of tpl Mod ... after I stop.

You going too fast ... there is almost nothing to update.  :D ;)
Title: Re: next default template
Post by: SilentPliz on March 02, 2010, 04:19:58 PM
Idea : ???

A treeview in this style would be good. No ?

http://www.liberkey.com/en/applications/browse-catalog.html
Title: Re: next default template
Post by: rejetto on March 02, 2010, 04:32:30 PM
yes good, although not very important in my opinion.
i may work on it in the future.
i guess it can be done with current features.
Title: Re: next default template
Post by: SilentPliz on March 02, 2010, 04:47:27 PM
HFS has not been forgotten.  ;)
Title: Re: next default template
Post by: rejetto on March 09, 2010, 01:23:20 AM
ok, we are at Release Candidate stage :)
all important features have been made.
if you download the attachment at first post you'll find something new:
- upload progress
- more search options
- password changer

feedback is welcome
Title: Re: next default template
Post by: maverick on March 09, 2010, 04:20:16 AM
Just a thought as you are working on it anyway... how about introducing pages into the default (select number of files/folders to display per page)?  I'm sure some users would welcome it.
Title: Re: next default template
Post by: rejetto on March 09, 2010, 09:49:25 AM
i meant to do it and i forgot.
i will ;)
Title: Re: next default template
Post by: rejetto on March 18, 2010, 03:10:13 PM
updated version
much more customizable by putting javascript in section [more onload]
supporting and /regular expressions/ for the selection mask.
Title: Re: next default template
Post by: timteka on March 23, 2010, 12:54:13 PM
i have two scrollbars now (both in FF and IE), just like on this screenshot:
(http://www.rejetto.com/forum/index.php?action=dlattach;topic=8247.0;attach=5012;image)
Title: Re: next default template
Post by: rejetto on March 28, 2010, 01:50:44 PM
yeah, i knew it.
i eventually addressed the problem, and hope the solution will fit.

please re-download to get the new version.
Title: Re: next default template
Post by: maverick on March 30, 2010, 06:32:37 AM
1.  I think 'word wrapping' is a better choice than a horizontal scroll bar.  I'm thinking of those folders with longer comments (properties -> comments) which force you to scroll one or two screens to the right to see the size/date/hit columns when the horizontal scroll bar is active.
2.  Pages?
Title: Re: next default template
Post by: rejetto on March 30, 2010, 10:31:47 AM
1. i don't know what you are referring to. The only place where i forced no-wrap is a place that cannot cause any scrollbar to appear. A screen shot is welcome, or a detailed description.

2. will come. It takes time, and i'm very busy with job :(
I gave problems priority over features.
Title: Re: next default template
Post by: maverick on March 30, 2010, 11:18:54 AM
1. i don't know what you are referring to. The only place where i forced no-wrap is a place that cannot cause any scrollbar to appear. A screen shot is welcome, or a detailed description.

2. will come. It takes time, and i'm very busy with job :(
I gave problems priority over features.

1.  See screen shots below.  Ignore what looks as white space as my chosen colors don't show up well on a white background.

2.  No problem.  Whenever you can.
Title: Re: next default template
Post by: maverick on March 30, 2010, 12:28:47 PM
Re: template password changer

First of all I would like to say this feature works as expected.  However, I have come across a problem with it.

Like many other sites, to access my file server all users "including guests" have to login.  Name and password for guests at this time are simply "guest" and that takes them to their folders until they register which would give them increased access to the site.

The problem I have encountered is that when a guest logs in he now has the capability to change the one password set up for "all guests" but once he does that, he is the only one that knows what it is and no other guests can access the site.  This is not a good situation.  You will see an example of a 'Guest' user in my screen shots above.

What is needed here is an option in "User Accounts" allowing the admin to approve or disapprove of the use of the password changer by user.  If a user is allowed to change his password, the password changer button will appear in the template.  If not, it is not a user option.





Title: Re: next default template
Post by: SilentPliz on March 30, 2010, 12:39:55 PM
About maverick's screenshots

It is this that is problematic: white-space:pre;

.comment { white-space:pre; }

If I remove the whole line, or if I put something in place of white-space: pre; (e.g: .comment { font-size:9pt; }) ... comments are displayed correctly.

@ maverick
You can also think about putting some <br /> in your HTML comments   ;)
Title: Re: next default template
Post by: maverick on March 30, 2010, 12:56:58 PM

@ maverick
You can also think about putting some <br /> in your HTML comments   ;)

Thanks but in my custom template the folder comments are centered (via properties -> comments).  Looks much better and you don't get any unwanted blank lines.  
Title: Re: next default template
Post by: Mars on March 30, 2010, 12:58:29 PM
Quote
What is needed here is an option in "User Accounts" allowing the admin to approve or disapprove of the use of the password changer by user.  If a user is allowed to change his password, the password changer button will appear in the template.  If not, it is not a user option.


It is so simple to make, I wonder of such a request :D

On the base, it is necessary to use the groups.

Create a group: 'canchangepass'

To authorize the use of the change of password:

{.switch|canchangepass|;|{.get account||member of.}|{: <a onclick="url">change password</a> :}|.}

Or more simply (for the useless)

{.if |{.member of|canchangepass.}|{: <a onclick="url">change password</a> :}.}

change the blue text by the correct request  and set the user as memeber of 'canchangepass'
;)

Note from the wiki:
This is different from {.get account||member of.} because this latter form will consider only direct first-level membership, while {.member of.} will actually consider membership at any level.

Quote
{.if|{.and|%user%
            |{.not|{.match|guest;anonymous|%user%.}/not.}
            |{.member of|canchangepass.}
      /and.}
    |{: <a onclick="url">change password</a> :}
/if.}
Title: Re: next default template
Post by: maverick on March 30, 2010, 01:23:55 PM
mars,

I didn't think of doing it that way.  I'll give it a try.  Thanks.
Title: Re: next default template
Post by: SilentPliz on March 30, 2010, 01:29:19 PM
@ Maverick

Change the lines 306 at 311 with this "code"; that's all:

   <fieldset>
      <legend><img src="/~img27"> {.!User.}</legend>
     <center>
      {.if| %user% | %user% |<a href="~login">{.!Login.}</a></li> .}
     </center>
      {.if |{.and|%user%|{.!=|%user%|guest.}.}|
     <br />
      <button onclick='changePwd.call(this)' style='font-size:x-small;'>{.!Change password.}</button>
      /if.}
   </fieldset>  
Title: Re: next default template
Post by: Mars on March 30, 2010, 01:30:15 PM
look at my last updated post


[special:alias]
belong to=if|{.and|%user%|{.not|{.match|guest;anonymous|%user%.}/not.}|{.member of|$1.}/and.}|{: $2 :}/if.}

usage

{.belong to|canchangepass|{: action:}.}
Title: Re: next default template
Post by: Tha Jsta on March 30, 2010, 06:12:21 PM
@ Rejetto. From what the sighted tester of the new template tells me, it is better than the last one due to the search feature. However, me using a screen reader noticed a big problem with the table on the page.

With the last template, each line [File Name | File Size | Last Modified | Hits or however it is layed out] displayed vertically how you see it. This next default template displays the table in a continuous line until my screen reader wraps it back, so when I press the Down_Arrow key it keeps reading. I know this is not how the sighted see it, but I do have a feeling this can be fixed somehow. Do you have any suggestions?
Title: Re: next default template
Post by: maverick on March 31, 2010, 06:32:54 AM
@ Maverick

Change the lines 306 at 311 with this "code"; that's all:

Your solution works very good.  Thanks.
Title: Re: next default template
Post by: Mars on March 31, 2010, 07:56:21 PM
Quote
Quote from: SilentPliz on 30 March 2010, 14:29:19
@ Maverick

Change the lines 306 at 311 with this "code"; that's all:


Your solution works very good.  Thanks.

It is really the basic version, but it seems to me that a delphi coded version had been evoked,

Quote
What is needed here is an option in "User Accounts" allowing the admin to approve or disapprove of the use of the password changer by user.  If a user is allowed to change his password, the password changer button will appear in the template.  If not, it is not a user option.


The use of the groups is completely adapted to this type of regulation, it is useful also in the 'admin panel' for the management of the accounts, it would be good that all these craftiness do not stay dead letters.
Title: Re: next default template
Post by: rejetto on April 07, 2010, 03:41:21 PM
you'll find latest version in build #260, with following changes:

change password permissions:
i introduced a default group giving permission to change password.
anyway, special needs can be achieved by redefining the alias "can change pwd".
Indeed you can make it so that everyone will get the permission without having to assign the account to the group, or even excluding the "guest" account.

first multipage attempt:
the list is downloaded completely, then paged through javascript.

english:
a guy from the USA kindly suggested some better wording.

comments:
fixed the problem with comments.
I also made it so that if you just type some text without using the <br> tag, it will automatically be wrapped to each line.
Title: Re: next default template
Post by: maverick on April 08, 2010, 12:45:36 AM
Thanks.  You addressed the problems I noticed as well as added the new features I suggested for the new default template.  Seems to be working good.  :)
Title: Re: next default template
Post by: TSG on April 08, 2010, 06:28:55 PM
It is a lot better than the old default template... it does lack a bit in the styling department, you could do a lot more with just JS/CSS/HTML. Its even possible to do fancy gradients with css that will work in all modern browsers. But I suppose it is still quite functional. I would offer my help with the template styling, I just need some more motivation, working on profitable websites at the moment so open source stuff takes a back seat. I am trying to organise myself so I can get back on here though.

I like the use of selection on the table rows, its almost exactly how I was going to implement the selectable archive download on our templates. I may just copy it from this haha.

Also I don't know how long hot linking the jquery api will last... would it not be better to use sections for the javascript, like you do the stylesheet. I know it'll mean the template is big and ugly but you could just place the sections under the core of the template so the user doesn't see it initially. My main worry is, we accidentally left a hotlink to a jquery plugin and the bastards modified the code to 'Rick Roll' everyone doing it. So all the sites running on our work system were being Rick Roll'd. That was not Google, I doubt they would do that but just a warning for the dangers of hotlinking lol.
Title: Re: next default template
Post by: rejetto on April 09, 2010, 01:27:16 PM
how can i make gradients without images?

hotlinking jquery from google is highly adviced if you make a quick search (even if i'm doing the dirty way to save 1 step).
Title: Re: next default template
Post by: TSG on April 09, 2010, 02:50:12 PM
I would make a design that can make use of, but is not reliant on the gradients, something along the lines of the ToG... not identical of course, that's silly. I had a play with this at work once:

Mozilla Firefox: http://hacks.mozilla.org/2009/11/css-gradients-firefox-36/
Chrome/Safari: http://developer.apple.com/safari/library/documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Gradients/Gradients.html

No idea about Opera but IE has supported gradients for a while via its filter properties. Its being introduced into the CSS3 spec. So it wont work in older browsers, but if you have the latest build, you're good to go. Which is why it might be nice for the new template, prepared for the future in a way. But the design cannot rely on it alone.

But like I said via email, I wont be around for a week so I can't really work on it until after then. Spending a week on the worlds largest sand island (Fraser Island) :) we go there once every few years.

(http://i39.tinypic.com/126460m.jpg)
Can't wait to dive back into that :)
Title: Re: next default template
Post by: Nestor on June 27, 2010, 04:30:47 AM
I am not sure if this is the proper thread to post this, but I believe there's an error in the default template of HFS 2.3.260, around #381:
      <div id='folder-stats'>%number-folders% {.!folders.},  %number-files% {.!files.}, %total-size%ytes

At the end of the line, shouldn't it rather say : "%total-size% {.!Bytes.}" ?
Title: Re: next default template
Post by: Mars on June 27, 2010, 10:31:53 AM
you seem are right but the var %total-size%  is xxB or xxKB  then if you add "yte" the final text is normal. have a look on your web result.

it is the same with %item-size% they return always the unit

you can use %total-size% and %total-bytes% or %total-kbytes% without the unit

as %item-size% with %item-size-b% or %item-size-kb%

Code: [Select]
by example one file of 256bytes

%item-size%      ->> 256B
%item-size-b%    ->> 256
%item-size-kb%   ->> 0

On the other hand I would not know how to say if the correction will intervene from the next version, because rejetto is very active but outside this forum  :D

Title: Re: next default template
Post by: SilentPliz on June 27, 2010, 11:26:23 AM
<div id='folder-stats'>%number-folders% {.!folders.},  %number-files% {.!files.}, %total-size%

%total-size% alone seems sufficient, since it still gives the good value. No?
Title: Re: next default template
Post by: Mars on June 27, 2010, 11:52:02 AM
 with a french version

<div id='folder-stats'>%number-folders% {.!folders.},  %number-files% {.!files.}, {.if|%total-kbytes%|%total-kbytes%Kilo O|%total-bytes% O.}ctets
Title: Re: next default template
Post by: Nestor on June 27, 2010, 12:15:16 PM
I see. However IMHO having the B hardcoded should be avoided. Notice it doesn't even appear with the variable unlike what SilentPliz has reported about the french version.

I only noticed it because I was trying to translate the latest template into Spanish, and when searching for any ".!" string, I found this odd thing at the end of the line, and when trying to "fix it", I got the double B.
Not that it matters for Spanish (since for sizes we use the same english words), but it might be source of problems for other languages.

IMHO if full localization is in the ToDo list, this should be addressed with a more general approach than hardcoding the strings.
Title: Re: next default template
Post by: Mars on June 27, 2010, 12:21:33 PM
Quote
I was trying to translate the latest template into Spanish,

use the syntax as my last post
Title: Re: next default template
Post by: Nestor on June 27, 2010, 12:31:18 PM
As I mentioned, this is not a problem for Spanish, I was only concerned about localization for other languages.
AFAIK, it's generally accepted by programmers that hardcoding strings makes localization more difficult, so it's not a good practice.

This is constructive criticism, I do appreciate the time and effort spent in this useful application, that's why I posted.
Title: Re: next default template
Post by: SilentPliz on June 27, 2010, 12:53:32 PM
I agree with you.
Before we can use external languages files for HFS, it will must review some strings ... The B is not the most difficult to overcome, however.
Title: Re: next default template
Post by: rejetto on June 28, 2010, 06:27:32 PM
ok, removed from next version (261)
Title: Re: next default template
Post by: Mars on June 30, 2010, 09:22:56 PM
i think it is possible to change to

%total-size% return the unit  without 'B'  , in the same time we can modify  %item-size%

the delphi function must return only the value and the unit without the 'B'

Quote
function smartsize(size:int64):string;
begin
if size < 0 then result:='N/A'
else
  if size < 1 shl 10 then result:=format('%d ',[size])
  else
    if size < 1 shl 20 then result:=format('%f K',[size/(1 shl 10)])
    else
      if size < 1 shl 30 then result:=format('%f M',[size/(1 shl 20)])
      else result:=format('%f G',[size/(1 shl 30)])
end; // smartsize

<div id='folder-stats'>%number-folders% {.!folders.},  %number-files% {.!files.}, %total-size%{.!unit.}

then in the template it will possible to use as unit one of

[special:string]
unit=Byte
unit=Octet
unit=Octeto
unit=Байт
unit=バイト
unit=字节
unit=בייט

for other values we can change the template or the delphi code
vars:
'%total-out%' '%total-in%' '%total-size%'
'%diskfree%' '%item-size%' '%done%' '%total%'

macros:
'smart size'


others: 6 update

HRM_REPLY: if not data.fullDLlogged then add2log(format('Served %sB', [smartSize(conn.bytesSentLastItem)]), data);
HE_POST_END_FILE:
  if logUploadsChk.checked and (data.uploadFailed = '') then
    add2log(format('Fully uploaded -  %sB @ %d KB/s', [
      smartSize(conn.bytesPostedLastItem),
      calcAverageSpeed(conn.bytesPostedLastItem) ]), data);
HE_LAST_BYTE_DONE:
  if logFulldownloadsChk.checked
  and (data.downloadingWhat in [DW_FILE, DW_ARCHIVE]) then
    begin
    data.fullDLlogged:=TRUE;
    add2log(format('Fully downloaded - %sB @ %d KB/s - %s', [
      smartSize(conn.bytesSentLastItem),
      calcAverageSpeed(conn.bytesSentLastItem), url_]), data);
    end;

  sbarIdxs.totalOut:=addPanel( format('Total Out: %sB',[
    smartSize(outTotalOfs+srv.bytesSent)]) );
  sbarIdxs.totalIn:=addPanel( format('Total In: %sB',[
    smartSize(inTotalOfs+srv.bytesReceived)]) );

  if f.isFile() then
    result:=result+format(#13'Size: %s'#13'Downloads: %dB',
      [ smartsize(sizeofFile(f.resource)), f.DLcount ]);


in the template: 4 update
<div id='folder-stats'>%number-folders% {.!folders.},  %number-files% {.!files.}, %total-size%{.!unit.}

[+file]
<td>%item-size%{.!unit.}<td>%item-modified%<td>%item-dl-count%


[progress-upload-file]
{.if not|{.{.?only.} = down.}|{:
   <li> Uploading %total%{.!unit.} @ %speed-kb% KB/s
   <br /><span class='fn'>%filename%</span>

[progress-download-file]
{.if not|{.{.?only.} = up.}|{:
   <li> Downloading %total%{.!unit.}
   <br>Speed: %speed-kb% KB/s


now it's time to apply all of them to the build 261. ;)
Title: Re: next default template
Post by: rejetto on July 06, 2010, 11:14:17 AM
i think we can live without the B in some of the places where it used to be there
Title: Re: next default template
Post by: Mars on July 06, 2010, 12:59:25 PM
Quote
i think we can live without the B in some of the places where it used to be there

The "B" in the template will miss us less than you on the forum, even if it means going without something, for me, it will be the "B".

Do I have to set up a pool for this question? :D :D :D :D
 ;)
Title: Re: next default template
Post by: TSG on July 08, 2010, 07:13:33 AM
I was thinking, if you want to include a HFS logo or something, so it doesn't look like its coming from purple land, and you don't want to host it on the server as an image, or embed it in the application.

You could use a base64 uri in css, this lets a user delete it for modification, it also is not actually hidden in HFS and used only for template purposes, keeps it editable. You could use this to add images to the interface also, if you wanted to make a really pro default template.

This does pose some problems, make sure you comment what it is, otherwise it just looks like a block of letters. It also does increase the CSS size, obviously, so make sure any base64 operations are at the bottom of the CSS file, so its the last thing to happen after the page generation. You can also do this to reduce the number of calls to the server. I don't like it from a designers point of view, I like to see the images on my hard drive, and I use sprites to get around the multiple call issue. But it is handy sometimes.

Something like this could also be used with the HFS icons, you could convert the windows icons to png24 then base64 them and feed that to the browser. If this isn't already how it works, I am not sure. Just trying to help, when I can.

A related article:
http://www.nczonline.net/blog/2010/07/06/data-uris-make-css-sprites-obsolete/

A base64 online encoder/decoder:
http://www.motobit.com/util/base64-decoder-encoder.asp

Title: Re: next default template
Post by: rejetto on July 08, 2010, 03:24:44 PM
interesting, it may be used for small images, like single pixel width gradients.
things like that should be like 1kb or so.
Title: Re: next default template to build 261
Post by: Phillip on September 08, 2010, 08:42:45 AM
I tested it and it looks good.  I like the format, simple and to the point.