rejetto forum

a couple of questions~

Guest · 10 · 3994

0 Members and 1 Guest are viewing this topic.

Anonymous

  • Guest
Hi, i'm a new-comer from Hong Kong.
I have been using HFS for a week or more and find it really good.
First i would like to thank Rejetto for that.

And then here are my questions:
When my friends go to the page generated by HFS, they can download the files alright. However, in my website, when i use this html code:
<img src="http://[ip-address]:port/[filename.gif]">
then the picture on my website can only be seen in my computer.
Although my friend can download my files through the page generated by HFS, they simply can't see the picture.
Is it a problem with my setting or HFS wouldn't allow me to do that?

The next question is that i can't see the upload button on the HFS page, even in real folders.

My last question is about HTML template editing.
I made some changes to the template successfully:
e.g. hide the "hits" when listing the files
But when i want to make further changes, i can't understand all of the variables. Some of them cannot be found in "help".
e.g. %new%, %encoded-folder%
I have noticed the item "update template help" on the to-do list, but i can't wait to edit the template.
Is somebody kind enough to explain them to me?

Lastly, i replace the english words with the Traditional Chinese ones in the default template.
I have tested it to work properly.
Here is the link, in case someone from Hong Kong or Taiwan may find it useful.
http://hk.geocities.com/hen_ry_song0/default_tc.zip
Thanks again for the great software!


Offline Mr. Anon

  • Tireless poster
  • ****
    • Posts: 270
    • View Profile
Hi Guest.
I will post the help on the vars here soon. Stay tuned. :)


Offline Rafi

  • Tireless poster
  • ****
    • Posts: 452
    • View Profile
#2 - right-click on the upload folder ->upload-for-users-> and enable/permit users to enter

then - make sure you *login* in you browser : right-click->login...


Anonymous

  • Guest
Hi, it's me again.
Thanks for the solution for the 2nd question.
And the variables... i have spent hours to figure out some of them.
At least i can guess that %new% is the "new flag" and %decoded-folder% is the URL of the folder (with non-ASCII chars decoded), right?
waiting for ur help on other variables.
I have tried my best to make a template listing files in the way shown below:

it may be useful in folders with hundereds of files, i suppose.
so, here is the template-->link
i want the template to let the user has a choice on the format when listing the files.
(that is, the old one in default template and mine)
but i face a problem when editing the template.
my thought is to use a javascript variable (e.g. format) to hold the choice of the user when clicking a button (using onClick)
but when the page is reloaded, all the variables will be lost!
then what can i do?
(maybe i m a bit confusing, if u dont understand it then kindly take a look on the template above, thx!)
also, can my 1st question be solved?
last thing to add, does rejetto plan to add the "delete files/folder" function in the future?
i think it will be really useful.
Thanks a lot!


Anonymous

  • Guest
well, here is some information about my first question.
i have tried to OFF the HFS first and type the following commands:
ipconfig /release_all
ipconfig /renew_all
in order to close all other connections.
then i ON the HFS again, using port 1007.
type i type "netstat -nap tcp" in the command prompt.
i can see that only 0.0.0.0:1007 is listening, but not [my ip-address]:1007
is it responsible for the problem?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
Quote from: "Anonymous"
i can see that only 0.0.0.0:1007 is listening, but not [my ip-address]:1007 is it responsible for the problem?
it is not, 0.0.0.0 means HFS is listening on ANY ip address.

you want to put an image in your template?
is this image served by HFS itself?
if no, why?
if yes, you should put in the template only a RELATIVE path to it, not the full URL including http://etcetc


Anonymous

  • Guest
no, the image is not on the template.
it is on my website so relative URL can't be used.
it is really strange that my fds can download my files from HFS,
but they can't see the image, isn't it?


Offline Rafi

  • Tireless poster
  • ****
    • Posts: 452
    • View Profile
Quote from: "Anonymous"
no, the image is not on the template.
it is on my website so relative URL can't be used.
it is really strange that my fds can download my files from HFS,
but they can't see the image, isn't it?
Try this on HFS -
* right click -> new-link
* just enter the REAL URL of the picture in your web-site (e.e. http://..../.../picture.gif)
* then rename this "new link" in HFS to something else (e.e "My picture")

and that's it! they can click on it and see the picture.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
if your friends put the image URL in the address bar,
does the image show up?


Anonymous

  • Guest
yes, the problem is solved.
thanks for ur help.