rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: ~GeeS~ on September 04, 2006, 05:58:40 PM

Title: Crazy idea
Post by: ~GeeS~ on September 04, 2006, 05:58:40 PM
Just some thoughts on the following situation:

Imagine, I am running a HFS server. My friend(s) and me are travelling across the world and want to communicate at fixed times.
Phoning would be much to expensive, but internet acces would be free. Unfortunately, the internet acces is restricted to firewalled pc's, which allow only traffic through port 80/443 (standard/secure surfing).

We could upload and download (text)files to the HFS server but this would be too slow and inconvienient.
So, would it be possible to have a page on HFS with one window, which autorefreshes (GET) every n seconds and a second window on that page, on which the user can type some text and submit (POST) this line of text to the first mentioned window. After the autorefresh the posted txt would be visible in that window.
This would be a cheap and primitive chatbox based on GET/POST, which would be available even behind firewalled PCs as long as HFS (on http or https) is accessible from the internet on one location.

Would it be possible with the existing version of HFS through HTML (and javascript). My friends are all noobs and can/will not install additional software (internetcafe ...).

Who can help? Would it be feasible?
Title: Re: Crazy idea
Post by: Unknown8063 on September 05, 2006, 03:52:56 PM
Have you considered exchanging e-mail addresses?
Title: Re: Crazy idea
Post by: ~GeeS~ on September 05, 2006, 06:44:11 PM
Yes, i did but this is to slow. You could also peruse an public messageboard or chatserver, but the challenge is, not to use third party servers.

All solution i found till now need some serverside scripting like php, cgi etc.
I was thinking on opening a textfile in HFS and upload/append lines of text from the different users to that file. This file would requested by autorefresh with the added lines of text.
But i'm afraid this isn't so easy to do.
Title: Re: Crazy idea
Post by: ants on September 06, 2006, 12:52:59 PM
Try http://www.ebuddy.com
Title: Re: Crazy idea
Post by: ~GeeS~ on September 06, 2006, 05:57:22 PM
... the challenge is, not to use third party servers.
Only HFS with the existing options.
Title: Re: Crazy idea
Post by: Unknown8063 on September 08, 2006, 10:44:33 PM
Once you get past the initial handshake with the mediation server, two hamachi (http://www.hamachi.cc) clients can message each other without a third party.  You could also use Apple's Bonjour over hamachi.
Title: Re: Crazy idea
Post by: ~GeeS~ on September 09, 2006, 02:39:51 PM
Finally I found an acceptable solution (at least it would works for me):

It's not a chat, but a kind of Messageboard:

1. Created an upload enabled folder for textmessages eg Messages.
2. This folder has a different template
3. In this template the *.txt files are displayed by <iframe> (No javascript needed)
4. In order to reply, a input box for the upload of an textfile has been added
5. In order to add a new message, the visitor has to create an textfile with eg. Notepad(++) and upload.
   (This is the ugly part of the solution, but acceptable imho)

I've attached the modified and commented default template to demonstrate the principle. No optimisation has been done.
Source: http://www.htmlcodetutorial.com/frames/frames.html

BTW, all filetypes can be uploaded and displayed as iframes, not only txt, but this wouldn't make sense. Set menuoption to number files instead of overwriting, in case visitors try to upload the same filename again.

Comments for improvement are welcome.

[attachment deleted by admin]
Title: Re: Crazy idea
Post by: maverick on September 09, 2006, 08:28:12 PM
Just noticed this thread.

I have done something similar for quite some time.  The only differences are:

Registered Users:
1. Any messages my registered users upload to me are private and protected.  They show up in the file list but only I can read them.
2. Any reply messages from me to my registered users are private and protected.  Only the person I am replying to can see it in the file list and read it.
3. I respect my users privacy.

Guests:
1. Any messages a guest uploads to me are private and protected.  They show up in the file list but only I can read them.
2. A message uploaded to me by a guest is not replied to because who would I reply to... a guest could be anybody. 
3. The guests have the option to register.  If they do, then the comments for registered users above apply to them.
Title: Re: Crazy idea
Post by: ~GeeS~ on September 12, 2006, 07:00:22 PM
The described features of yours i'am also applying and it can be done easily by configuring the appropriate directories with the HFS options available.

Quote
I respect my users privacy.
I see no reason why you should not. For these reason i delete the HFS logs -which are only accesible by me- in regular intervals. And just because i want to respect the privacy of my users, i do not want to fall back on 3rd party servers and services due to their log policies or their absence. Just a matter of principle and also no  advertisements to be annoyed from.

The advantage of the iframed txt files is, that i or the visitor(s) haven't to open the posted txt files one by one, but get a quick overview of a "thread" of text messages. Additionally it can be secured by Stunnel and no 3rd party server is involved. Probably it will not be an application for daily use, but i can imagine that it will have it's value for a cheap & secure communication in certain situations.
 
I'm still amazed how far the limits of HFS can be stretched to get the most out of it, even when this was not intended by design.
 
Title: Re: Crazy idea
Post by: maverick on September 13, 2006, 06:32:20 AM
I'm still amazed how far the limits of HFS can be stretched to get the most out of it, even when this was not intended by design.

Yes, isn't it great!  It's just a matter of using your imagination, then try to implement into HFS.  If it works.. fine.  If it doesn't, and requires a small hfs code change or something that rejetto approves of, it is usually implemented.  If not, back to the drawing board. ;D

Title: Re: Crazy idea
Post by: Harley on September 13, 2006, 03:48:40 PM
you guys are freakin amazing!
I'm lovin it!
Title: Re: Crazy idea
Post by: ~GeeS~ on September 14, 2006, 05:41:19 PM
Great find: Sailing with pirates   8)  ;D
"And a bottle of legal Rum!"
 ;)
Title: Re: Crazy idea
Post by: ~GeeS~ on September 14, 2006, 06:14:59 PM
Try http://www.ebuddy.com
Sorry for replying so late. But i didn't notice the implication of your suggestion.  :o
Question: Would you give them your creditcard numbers too?
Why should i send them my hotmail and other passwords?
Nothing negative about this company, i don't know them, but my passwords will not go thru 3rd part servers.
No way.
Title: Re: Crazy idea
Post by: Guest on September 29, 2006, 10:46:15 PM
Gees,
 I ran across something interesting at:
http://www.alertbookmarks.com/postaboard/
Its a message board/forum and it appears that it is
self contained/stand alone. The free version will only do two
boards, but how much does one need ? I'm not very good with this and,
I'm just starting to experiment with it, running it on my computer.
Its independent of HFS right now, but I believe there is a way to incorporate it.
I've found it's appearance is somewhat customizeable.
Unless you or someone else has found a better solution, its
the only thing I've found that appears to be independent of
3rd party servers ? Didn't find any virus or adware/malware activity, but as
always, I'd check it again.
Title: Re: Crazy idea
Post by: ~GeeS~ on September 30, 2006, 07:44:40 PM
... I ran across something interesting at:
http://www.alertbookmarks.com/postaboard/
Its a message board/forum and it appears that it is
self contained/stand alone. ...
Thx. Yes, the idea is nice and it could do the job i'm looking for and fullfills my premisses. In fact it's indeed a http server like HFS, but specialized as messageboard. Unfortunately it's not open source, which would not be the main show stopper for me, but having  had a look at the support forum, mainly spammed, my level of trust decreased. I'll stay to the solution i've described some postings before: a slight modification of the HFS template.
Title: Re: Crazy idea
Post by: Guest on October 04, 2006, 12:50:11 PM
Would there be a way to use a form to input a text message,
then display the result ? I haven't been able to learn much
about how to retrieve or display data collected by a form ?
Title: Re: Crazy idea
Post by: GeeS on October 04, 2006, 01:25:42 PM
Would there be a way to use a form to input a text message,
then display the result ? I haven't been able to learn much
about how to retrieve or display data collected by a form ?
I've thought about that too. In order to use a form, the input (text) from the form has to be uploaded as a file.

Like:
Subject form: <Enter file name here>               --> would create filename.txt
Input form:    <Any ASCII txt as message here>  --> would be the content of filename.txt
Post button                                                 --> would upload filename.txt with content from input form to HFS server

As long as there is no option in HFS to create folders and files from client side, this isn't possible.
Therefore i've to create the txt-file first and upload the file.


       


Title: Re: Crazy idea
Post by: heitudou on November 30, 2006, 03:23:52 PM
ha ha ha ha  ::) Now i have the same question, i dont know how to do it .

like this ~~~

[attachment deleted by admin]
Title: Re: Crazy idea
Post by: Fysack on December 05, 2006, 11:56:37 PM
My friends are all noobs
Yea, mine to man.