rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: riccetts on March 17, 2011, 09:03:27 PM

Title: separate upload page
Post by: riccetts on March 17, 2011, 09:03:27 PM
I would like to know how to make a separate upload page and then the files are directed into a hidden folder.
thanks for help
Title: Re: separate upload page
Post by: rejetto on March 17, 2011, 10:05:48 PM
first: you should be good at HTML.

the template of HFS 2.2 sports a separated upload page.
You can learn from it, or start from it. I'm attaching it here for your convenience.

You can learn more details at this page http://www.rejetto.com/wiki/index.php/HFS:_Template

To upload to a hidden folder you can either

(1) upload directly to the folder, and hide just its content (not the folder itself) as in
as having the page at http://my-hfs/hidden-folder/~upload
you can hide the content by setting a files-filter to \*
* is for everything, and the initial \ works as a negation.

(2) upload to any folder, and then use command {.move.} to move the just uploaded file.
You may put it in the [upload completed] event or in the [upload success]
Title: Re: separate upload page
Post by: riccetts on March 17, 2011, 10:26:39 PM
Thanks man
I figured it out already, I have a habit of playing with the code until I get it right.
I created some buttons but now I'm having troubles aligning them on the top of the page.
I have them like a tool bar but I can't get them to align right.(every button is going to the right instead of the left)
Can you help with that one?
Thanks rejetto
Title: Re: separate upload page
Post by: FRENCH CAN CAN on March 18, 2011, 07:32:25 AM
<p style="float:right; margin-top:8px; margin-right:-3px; margin-left:-3px;"> button </p>  (button right)

<p style="float:left; margin-top:8px; margin-right:-3px; margin-left:-3px;"> button </p>     (button left)

fix the code and you'll see that it works, if you want you can also put "<div style="............> button </ div>".
Title: Re: separate upload page
Post by: rejetto on March 18, 2011, 10:22:03 AM
you should post your tpl
Title: Re: separate upload page
Post by: riccetts on March 21, 2011, 01:59:55 PM
I will when I'm happy with what I have currently.
I am getting there though.
Title: Re: separate upload page
Post by: rejetto on March 21, 2011, 04:30:35 PM
i didn't mean "publish for sharing it with the world", but "making us able to read it", because giving advices based on nothing is very hard.
Title: Re: separate upload page
Post by: riccetts on March 21, 2011, 06:01:04 PM
I understand.
I will copy and paste code if that helps.
Title: Re: separate upload page
Post by: rejetto on March 22, 2011, 01:43:05 PM
ok, you go to the line where there's
.button { float:right;

and make it float:left
this will change every button.

If you don't want to change every button, but only some, just ask.
Title: Re: separate upload page
Post by: riccetts on March 22, 2011, 01:57:56 PM
Thank you again