Author Topic: Testing build #164  (Read 11161 times)

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Testing build #164
« on: December 18, 2007, 03:03:25 AM »
there was enough news to deserve a new beta.
i will document new macros later, now i'm sleepy.

download @ www.dovedove.it/hfs/hfs164.exe

what's new
+ [special:begin] www.rejetto.com/forum/?topic=5349.msg1031223#msg1031223
+ search results have links to their folder http://www.rejetto.com/forum/index.php?topic=5371.msg1031206
+ new template macro: <> != for time filename
+ searching ABC* will force the name to begin by ABC, while *ABC force it to be at the end
+ automatic comment for the uploaded file
+ %item-resource% %folder-resource%
+ {{?name = X}} is a shortcut for {{ {{?name}} = X }}
* a line break less in [sections]
* searches are now made in current folder
* "back" instead of "up" after search
- AV of the template engine
- problems with macros names ending with space
- "backup on save" was not working www.rejetto.com/forum/?topic=5378
- hang up by searching * in the log
- "...https instead of http" and "stop spiders" was not saved
- infix macro operators >= <= were not working 

Offline TSG

  • Operator
  • Tireless poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: Testing build #164
« Reply #1 on: December 18, 2007, 03:53:07 AM »
%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg -
{{filesize|%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg}}
result:
E:\My Documents\My Pictures\Random Images\previews_and_thumbnails\prev-After The Rain.jpg.jpg - 0

This does not work... it is a sub folder on my drive but it doesn't try to get to it...

This does work...
%folder-resource% - E:\My Documents\My Pictures\Random Images

%item-resource% -
{{filesize|%item-resource%}}

Works but is useless because you can already see the current files filesize with %item-size% lol.


The line break after macro sections is gone :)
« Last Edit: December 18, 2007, 03:56:08 AM by That_Stevens_Guy »

Offline Foggy

  • Tireless poster
  • ****
  • Posts: 806
    • View Profile
Re: Testing build #164
« Reply #2 on: December 18, 2007, 04:17:17 AM »
%folder-resource% doesnt work in a recursive list, it only returns the folder that the list in for. %item-resource% does though.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #164
« Reply #3 on: December 18, 2007, 12:47:57 PM »
%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg -
{{filesize|%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg}}
result:
E:\My Documents\My Pictures\Random Images\previews_and_thumbnails\prev-After The Rain.jpg.jpg - 0

don't you see the double .jpg in the end? :)

Offline Foggy

  • Tireless poster
  • ****
  • Posts: 806
    • View Profile
Re: Testing build #164
« Reply #4 on: December 18, 2007, 01:18:43 PM »
%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg -
{{filesize|%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg}}
result:
E:\My Documents\My Pictures\Random Images\previews_and_thumbnails\prev-After The Rain.jpg.jpg - 0

don't you see the double .jpg in the end? :)

That's how the thumbnail generator creates the thumbs, I wasn't able to get filesize to work either. I was using {{filesize|%folder-resource%/%item-name%}} but {{filesize|%item-resource%}} worked.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #164
« Reply #5 on: December 18, 2007, 01:40:23 PM »
ok, i found the bug

Offline TSG

  • Operator
  • Tireless poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: Testing build #164
« Reply #6 on: December 18, 2007, 05:43:55 PM »
In recursive listing, %folder-resource% does not work, from a virtual folder it returns nothing, and in a real it only returns the current folder, %item-resource% does work properly, but it has the filename, some uses may need just the folder path which is what %folder-resource% is for :) hope it can be fixed for 165.

Next build - 165: Breadcrumbs are finally here!!! no more js needed.
« Last Edit: December 18, 2007, 05:47:09 PM by That_Stevens_Guy »

Offline KalleB

  • Occasional poster
  • *
  • Posts: 97
    • View Profile
Re: Testing build #164
« Reply #7 on: December 18, 2007, 10:30:28 PM »
The new HFS is starting to look and feel pretty good I think..  :) But there's still a couple of style issues in the default template that I'm not totally comfortable with:

  • Attachment #1 - The dotted borders at the sides and heavy ones on top and bottom should be equally thick. Same thing with the comment borders.

  • Attachment #2 - The search field and the button can be easily blended in by adding tag class=row when using the old template. I don't know which class would do this with the new template but I'd hope to see it looking like this in the future releases.
    (the text "etsi" should of course be "search" - the image is from my translated template :D)


Also, when using the new template, I would not like to see these "Requested GET /~style.css" and "Requested GET /~style.menu.css" in the log every time a folder is opened.
« Last Edit: December 18, 2007, 10:56:52 PM by KalleB »

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1895
    • View Profile
Re: Testing build #164
« Reply #8 on: December 18, 2007, 11:14:43 PM »
un bug dans la version 164  avec {{inc| var | n}}

dans mon template-pages j'utilise pour tous les items

Quote
[file]
{{set|itemmax|{{add|{{^itemmax}}|1}}}}
<tr id="item.{{^itemmax}}" style="display:true">
   <td>{{^itemmax}}%new% ........

et tout marche à merveille

en remplacant {{set|itemmax|{{add|{{^itemmax}}|1}}}}
 par {{ inc | itemmax |1}}    itemmax est bien incrémenté de 1

Quote
[file]
{{ inc | itemmax |1}}
<tr id="item.{{^itemmax}}" style="display:true">
   <td>{{^itemmax}}%new% ........

mais <tr id="item.{{^itemmax}}"  est mal évalué et me retourne un  itemmax=''

alors que {{^itemmax}} placé après %list% me donne bien le nombre d'items  comme %number%    ?? ??


il semble être obligatoire de redéfinir une vaiable à l'aide se SET en la forçant par un calcul car même 

Quote
[file]
{{ inc | itemmax |1}}
{{set|itemmax|{{^itemmax}}}}

<tr id="item.{{^itemmax}}" style="display:true">
   <td>{{^itemmax}}%new% ........
ne marche pas

conclusion {{^itemmax}}  dans %list% n'est pas évalué
 et à savoir si tous les {{^...}} le sont aussi ?
« Last Edit: December 18, 2007, 11:32:54 PM by mars »

Offline bacter

  • Operator
  • Tireless poster
  • *****
  • Posts: 682
    • View Profile
Re: Testing build #164
« Reply #9 on: December 19, 2007, 12:28:14 AM »
the scope of 'variables' like 'itemmax' is incorrect.

I tried something similar as mars.

I initialized a var at beginning of the section files and also tried it to do in the section [special:begin],
then i tried the inc in file. but 'itemmax' i initilized elsewhere and in the section 'file' seem not to be the same!

if a variable is initialized in some section, it should be available in all dependent sections, and the result of a variable incremented in some subsection should be stored where that thing is initialized.
your computer has no brain - use your own !

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #164
« Reply #10 on: December 19, 2007, 12:32:16 AM »
  • Attachment #1 - The dotted borders at the sides and heavy ones on top and bottom should be equally thick. Same thing with the comment borders.

i like this asymmetry.

Quote
  • Attachment #2 - The search field and the button can be easily blended in by adding tag class=row when using the old template.

a button that looks like another thing may mislead the user. (usability matter)

The good in HFS is that you can customize as you like by the template.
Anyway it's bad that till now customizing meant extra work to stay up to date with the new default template.
To lessen this problem, from next beta you will be able to put a diff template in the root with section
Code: [Select]
[style.user]
body {background:red}
this way you will still be using the default template, but adding your changes as a diff, you will stay up to date.
This deserves to be documented in the wiki.

Quote
Also, when using the new template, I would not like to see these "Requested GET /~style.css" and "Requested GET /~style.menu.css" in the log every time a folder is opened.

ok you won't

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #164
« Reply #11 on: December 19, 2007, 12:46:06 AM »
I initialized a var at beginning of the section files and also tried it to do in the section [special:begin],
then i tried the inc in file. but 'itemmax' i initilized elsewhere and in the section 'file' seem not to be the same!

i made this test:
Code: [Select]
[special:begin]
{{set|x|0}}

and then added {{inc|x|1}} right after [file]
i had {{^x}} increasing inside [file] and had the right total number of files putting it in the main section.

it worked like a charm.

btw, {{inc|x}} is not accepted in 164 cause of a bug, but it will in 165

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1895
    • View Profile
Re: Testing build #164
« Reply #12 on: December 19, 2007, 12:54:06 AM »
when moved {{set|itemmax|0}} from main to [special:begin] all work fine to me ;D

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1240
  • ....... chut ! shh!
    • View Profile
Re: Testing build #164
« Reply #13 on: December 19, 2007, 09:12:54 AM »
It's just for me, or there is a bug when you click on "file list" , files in the directory will appear on one line. (Firefox 2 xx)

(Build # 164)

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12953
    • View Profile
Re: Testing build #164
« Reply #14 on: December 19, 2007, 11:24:45 AM »
yes sorry, fixed in next beta