rejetto forum
February 12, 2012, 11:02:11 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]
  Print  
Author Topic: Additional Comments (descript.ion)  (Read 773 times)
0 Members and 1 Guest are viewing this topic.
vbn
Experienced poster
***
Offline Offline

Singapore Singapore

Posts: 36


View Profile Email
« on: May 18, 2010, 09:17:13 PM »

I am looking for a way to include a secondary comments method. It is required to store MD5 hashes for uploaded files.

I want to display the MD5 for a file in the listing table. I am able to append the md5 hash to a comment and get it displayed but then manual comment updation by the uploader is not clean.

Any ideas ?



* hfs.PNG (17.42 KB, 972x238 - viewed 188 times.)
Logged
SilentPliz
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1023


....... chut ! shh!


View Profile WWW
« Reply #1 on: May 19, 2010, 12:21:48 PM »

I don't know what's the template you use.

If you can post your template here, I could propose you an another way to display your comments and md5 hash.


Quote
updation by the uploader is not clean.

If you can also say more what does not work as you want.

If you mean the user can not uploaded an *.md5 file ... It's normal. It's for avoid that a .md5 file be replaced by a false *.md5 by a user.

An md5 file can be created when we upload a file, but an file .md5 cannot be uploaded.
« Last Edit: May 19, 2010, 05:30:10 PM by SilentPliz » Logged
vbn
Experienced poster
***
Offline Offline

Singapore Singapore

Posts: 36


View Profile Email
« Reply #2 on: May 20, 2010, 01:59:13 AM »

Its the same default template in latest beta...just my automation on server side creates a MD5 for a uploaded file and appends to "comments" for that file with something like "<br>MD5 : 238428478743" ... for example.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #3 on: May 29, 2010, 12:21:08 PM »

sorry for the late reply.
so, your problems comes with manual edit of the comment? what's the problem exactly?
if you want to keep the comment and the md5 separately, it's easy.
just don't put the MD5 in the comment, and instead save it to a dedicated file.
then you can just make a little change to the template to display the MD5 after the comment.
Logged
vbn
Experienced poster
***
Offline Offline

Singapore Singapore

Posts: 36


View Profile Email
« Reply #4 on: July 05, 2010, 01:00:20 AM »

how can I accomplish this easily....I have my automation software which creates a .md5 with same name as the file when its uploaded via HFS or FTP...

In the listing I want to display this md5 against each of the file......

so ABC.rar has a corresponding ABC.md5 ... now in the template how can I read each md5 on traversal and display next to comments ?
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1469



View Profile WWW
« Reply #5 on: July 05, 2010, 05:48:25 AM »

in the menu , you have "fingerprints" which is used to create md5, you can disable it

we are working with the event "upload completed" in the file hfs.events (HFS: Event scripts (by Topic)).

Quote
[upload completed]
{.delete|%item-resource%.md5.}
{.save|%item-resource%.md5|{.md5 file|%item-resource%.}.}
{.append|%item-resource%.md5|{.chr|13|10.}|add some text as new line inside the md5.}

then every upload generate and md5 file , by deleting the previous file md5,

after you have to extract what is necessary to your main template

insert section [file]

{.load|%item-resource%.md5.}

and manage the information;

answer your question?  Wink
« Last Edit: July 05, 2010, 05:53:23 AM by Mars » Logged
rejetto forum
« Reply #5 on: July 05, 2010, 05:48:25 AM »

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

Italy Italy

Posts: 11759


View Profile
« Reply #6 on: July 06, 2010, 06:44:18 AM »

the md5 for abc.rar must be abc.rar.md5, not abc.md5

you can put this in the template  {.load|%item-resource%.md5.}
as mars reported
Logged
vbn
Experienced poster
***
Offline Offline

Singapore Singapore

Posts: 36


View Profile Email
« Reply #7 on: July 07, 2010, 12:20:11 AM »

Aha...I think the filename was what made me cry Sad

Anyways will try this now asap Smiley
Logged
Pages: [1]
  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 February 11, 2012, 06:53:44 PM
anything