rejetto forum
May 25, 2012, 03:17:55 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
  Print  
Author Topic: Testing build #178  (Read 7244 times)
0 Members and 1 Guest are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« on: February 06, 2008, 11:27:35 PM »

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 06, 2008, 11:40:16 PM by rejetto, Reason: added some links » Logged
Foggy
Insane poster
*****
Offline Offline

Australia Australia

Posts: 806


View Profile
« Reply #1 on: February 06, 2008, 11:34:42 PM »

what does for each do?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #2 on: February 06, 2008, 11:39:33 PM »

i had no time to document new macros in the last weeks.
i'm going to add at least an post reference to those...
Logged
Guest
Guest


Email
« Reply #3 on: February 07, 2008, 01:34:22 AM »

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

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #4 on: February 07, 2008, 03:26:37 AM »

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.


* comments.png (4.67 KB, 362x106 - viewed 370 times.)
« Last Edit: February 07, 2008, 03:39:48 AM by SilentPliz » Logged
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #5 on: February 07, 2008, 03:44:34 AM »

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,


* Macrotest.png (3.02 KB, 261x99 - viewed 339 times.)
« Last Edit: February 07, 2008, 03:46:31 AM by bacter » Logged

your computer has no brain - use your own !
rejetto forum
« Reply #5 on: February 07, 2008, 03:44:34 AM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #6 on: February 07, 2008, 06:44:32 AM »

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

Australia Australia

Posts: 1919



View Profile WWW
« Reply #7 on: February 07, 2008, 08:05:47 AM »

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

SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #8 on: February 07, 2008, 08:40:01 AM »

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, 08:53:54 AM by SilentPliz » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #9 on: February 07, 2008, 09:15:05 AM »

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

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #10 on: February 07, 2008, 09:17:09 AM »

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. Smiley
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1046


....... chut ! shh!


View Profile WWW
« Reply #11 on: February 07, 2008, 09:25:57 AM »

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. Cry
« Last Edit: February 07, 2008, 09:32:49 AM by SilentPliz » Logged
Guest
Guest


Email
« Reply #12 on: February 07, 2008, 09:51:08 AM »

Macro in comment:
Does this mean something like
Code:
{{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 ?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #13 on: February 07, 2008, 09:55:47 AM »

no, that's a "comment in macro", not a "macro in comment" Wink
silentpliz is using macro in comment http://www.rejetto.com/forum/index.php?topic=5627.msg1033106#msg1033106
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #14 on: February 07, 2008, 09:57:05 AM »

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.
Logged
Pages: [1] 2
  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 19, 2012, 11:51:39 PM
anything