rejetto forum
May 25, 2012, 02:07:59 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1] 2 3
  Print  
Author Topic: Testing build #164  (Read 8223 times)
0 Members and 1 Guest are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« on: December 17, 2007, 09:03:25 PM »

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 
Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #1 on: December 17, 2007, 09:53:07 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

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 Smiley
« Last Edit: December 17, 2007, 09:56:08 PM by That_Stevens_Guy » Logged

Foggy
Insane poster
*****
Offline Offline

Australia Australia

Posts: 806


View Profile
« Reply #2 on: December 17, 2007, 10:17:17 PM »

%folder-resource% doesnt work in a recursive list, it only returns the folder that the list in for. %item-resource% does though.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #3 on: December 18, 2007, 06:47:57 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

don't you see the double .jpg in the end? Smiley
Logged
Foggy
Insane poster
*****
Offline Offline

Australia Australia

Posts: 806


View Profile
« Reply #4 on: December 18, 2007, 07:18:43 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

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

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.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #5 on: December 18, 2007, 07:40:23 AM »

ok, i found the bug
Logged
rejetto forum
« Reply #5 on: December 18, 2007, 07:40:23 AM »

Do you like this software? Consider even $2
 Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #6 on: December 18, 2007, 11:43:55 AM »

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 Smiley hope it can be fixed for 165.

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

KalleB
Experienced poster
***
Offline Offline

Finland Finland

Posts: 97



View Profile
« Reply #7 on: December 18, 2007, 04:30:28 PM »

The new HFS is starting to look and feel pretty good I think..  Smiley 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 Cheesy)


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.


* borders.jpg (10.28 KB, 292x142 - viewed 296 times.)

* search.jpg (12.84 KB, 576x63 - viewed 278 times.)
« Last Edit: December 18, 2007, 04:56:52 PM by KalleB » Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #8 on: December 18, 2007, 05: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, 05:32:54 PM by mars » Logged
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #9 on: December 18, 2007, 06:28:14 PM »

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.
Logged

your computer has no brain - use your own !
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #10 on: December 18, 2007, 06:32:16 PM »

  • 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:
[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
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #11 on: December 18, 2007, 06:46:06 PM »

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:
[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
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #12 on: December 18, 2007, 06:54:06 PM »

when moved {{set|itemmax|0}} from main to [special:begin] all work fine to me Grin
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #13 on: December 19, 2007, 03: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)
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #14 on: December 19, 2007, 05:24:45 AM »

yes sorry, fixed in next beta
Logged
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 07, 2012, 07:24:17 AM