rejetto forum

Testing build #178

rejetto · 19 · 13675

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13430
    • View Profile
download @ www.dovedove.it/hfs/hfs178.exe

what's new
+ new template macro: for each http://www.rejetto.com/forum/index.php?topic=5353.msg1032834#msg1032834
+ URI support in {{load}}
+ support for paths . and .. in {{add folder}}
+ support for multiple substitutions in {{replace}} http://www.rejetto.com/forum/index.php?topic=5353.msg1032842#msg1032842
* DNS updater: lowered frequency of external IP check     
- {{substring}} was returning whole string when first pattern was not found
- possible memory leak in {{set item}}
- possible macro injection in comments 
- {{delete}} required unnecessary extra parameter
- NT4 incompatibility with automatic updates
- automatic backup restoration on VFS corruption was not working
- wrong template parsing of "[unclosed section"
- erroneous loading of diff templates from subfolders of a real folder www.rejetto.com/forum/?topic=5605
- {{from table}} was not synced to variable content www.rejetto.com/forum/?topic=5620
- using special characters in username led to hanging connections http://www.rejetto.com/forum/index.php?topic=5573.msg1033030#msg1033030
« Last Edit: February 07, 2008, 05:40:16 AM by rejetto »


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13430
    • View Profile
i had no time to document new macros in the last weeks.
i'm going to add at least an post reference to those...


Guest

  • Guest
Had to go back to build 177. Diff template no longer works in 178 at all.
Read link in 178 Whats New.
Diff template in sub real folder works perfectly in 177 here?
Am I missing some new setting in 178?


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
I confirm that there are conflicts with the diff templates.

And the comments as :

<IMG alt="" src="/~img4">
{{repeat|1|&nbsp;}} Choix de Softs libres très intéressants.
<br>
{{repeat|4|&nbsp;}} A découvrir...


have a display problem.
See attached image.
« Last Edit: February 07, 2008, 09:39:48 AM by SilentPliz »


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
silentpliz:

I pasted your samplecode in the testsection of my template and it works as it is expected!

Whenever I had the problem to see unexpanded macros while working in a template with the latest builds,  as in your example, this was caused by some minor sintax error like a missing  brace '}' in a macro or '>' in html..

For something like you want, it would probably be better to use css than macros,
« Last Edit: February 07, 2008, 09:46:31 AM by bacter »
your computer has no brain - use your own !


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13430
    • View Profile
And the comments as :
{{repeat|1|&nbsp;}} Choix de Softs libres très intéressants.

I'm sorry guys, but macros won't be available in comments for security reasons.

There was another bug with comments, showing an empty comment box for every file that has no comment. Fixed in next build. I wonder why no one reported it yet.

I'll check the diff tpl thing ASAP.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
Yes that is a concern, but Macros are needed in diff tpl, so i would suggest disabling the upload of hfs.diff.tpl for security reasons.


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
And the comments as :
{{repeat|1|&nbsp;}} Choix de Softs libres très intéressants.

I'm sorry guys, but macros won't be available in comments for security reasons.

There was another bug with comments, showing an empty comment box for every file that has no comment. Fixed in next build. I wonder why no one reported it yet.

I'll check the diff tpl thing ASAP.


   
For "comments without comment," I noticed, but after finding problems on the diff templates, it seemed to me so little that I forgot.

The macro above was functioned before, that is no longer possible... It's a pity.
« Last Edit: February 07, 2008, 02:53:54 PM by SilentPliz »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13430
    • View Profile
Yes that is a concern, but Macros are needed in diff tpl, so i would suggest disabling the upload of hfs.diff.tpl for security reasons.

it's already disabled.

The macro above was functioned before, that is no longer possible... It's a pity.

i don't think you'd exchange safety for such feature.


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
A bug fun with the diff templates:
If I have a diff template translated into french to a folder, it translated into french the default template in release 178, which is in English.

It is a bug almost beneficial. :)


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
rejetto says
Quote
i don't think you'd exchange safety for such feature.

I have a "chat" who operated macros in the comments
And I fear (unless I am mistaken), it must finish poorly. :'(
« Last Edit: February 07, 2008, 03:32:49 PM by SilentPliz »


Guest

  • Guest
Macro in comment:
Does this mean something like
Code: [Select]
{{if| {{?search}} |<div class=item-folder>{{!Location:}} %item-folder%</div> }}%comment% in [file] will no longer work? Or is it hfs.comments.txt in folder? Or
comment for folder in Menu ?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13430
    • View Profile
no, that's a "comment in macro", not a "macro in comment" ;)
silentpliz is using macro in comment http://www.rejetto.com/forum/index.php?topic=5627.msg1033106#msg1033106


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13430
    • View Profile
A bug fun with the diff templates:
If I have a diff template translated into french to a folder, it translated into french the default template in release 178, which is in English.

I don't understand the bug you are talking about.
But just know that to translate the default template, you can just put [special:strings] in the root diff template, and that's by design, not a bug.