rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: Pit on November 01, 2008, 08:46:00 PM

Title: Question: Filecommentfield
Post by: Pit on November 01, 2008, 08:46:00 PM
Is it possible to display both infos Hash MD5 and the Upload from in the filecomment of an uploaded file?
 
Can anybody help me? Thanks
Title: Re: Question: Filecommentfield
Post by: rejetto on November 11, 2008, 12:48:59 AM
in the default tpl you see this code
Code: [Select]
{.if| %user% |{: {.append| %folder-resource%\hfs.comments.txt |{.filename|%item-resource%.}=uploaded by %user%
/append.} :}/if.}

i can imagine how it should be, but i didn't test it
Code: [Select]
{.save|%item-resource%.comment|MD5: {.md5 file|%item-resource%.}.}
{.if| %user% |{:{.append|%item-resource%.comment|
uploaded by %user%.}:}/if.}

this version doesn't use hfs.comments.txt
Title: Re: Question: Filecommentfield
Post by: Pit on November 11, 2008, 08:32:55 AM
Sorry but it didn“t work. It shows me only the Hash Number.
Title: Re: Question: Filecommentfield
Post by: maverick on November 11, 2008, 08:43:15 AM
Just tried it.  It works here.  md5 + username.
Title: Re: Question: Filecommentfield
Post by: Pit on November 11, 2008, 11:19:04 AM
Thanks, now it works here. I make a mistake - Sorry  :-\