rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: ronny on October 27, 2006, 01:09:18 PM

Title: chat
Post by: ronny on October 27, 2006, 01:09:18 PM
is there any way to talk to users connected to HFS
Title: Re: chat
Post by: maverick on October 27, 2006, 03:34:38 PM

Sure.  Use a chat server. 
Title: Re: chat
Post by: rejetto on October 28, 2006, 05:07:38 PM
hehe
no, sorry
Title: Re: chat
Post by: wfm on June 10, 2010, 08:45:46 PM
make a new virtual folder and use this as "diff template"

<html>
<head>
<title>HFS %folder%</title>
<link rel="shortcut icon" href="favicon.ico" />

<!-- used to refresh chat box -->
<script language="JavaScript" type="text/JavaScript">
var refresh=true;
function Prefresh() {
  if ((document.frm.texto.value=='') & (document.frm.login.value>''))
  {
  window.location="{.get|url|text=.}";
  document.frm.texto.focus();
  refresh=true;
  }
};
if (refresh) setTimeout("Prefresh()",5000);
</script>

<!-- Define special:begin -->
{.set | pass | !clear .}
{.set | chatfile | chat.txt .}
{.set | chattext | {.load|{.^chatfile.} .} .}
{.set| maxlength | 100240.}

<!-- Limit Length of file and reset it when pass is given -->
{.if|{.length | {.^chattext.} .}>{.^maxlength.}|
  {. set | chattext |{.cut||{.div|{.^maxlength.}|2.}|{.^chattext.} .}/set.}
 /if.}
{.if|{.?text={.^pass.}.}|{:{.save | {.^chatfile.}|.}:}.}


<!-- Save chat file on hard drive -->

{.if| {.and|{.?name.}|{.?text.}|{.not| {.?text={.^pass.}.}.}/and.}
     |{:
          {.set | chattext |{.time.} --- <b>{.?name.}</b>&gt; {.?text.}<br>{.^chattext.}.}
          {.save | {.^chatfile.}|{.^chattext.} /save.}
      :}
/if.}


</head>
<body>
Welcome to the dopehaus chat board. feel free to use this as a classifiieds directory or what ever you want i guess. also this is now a perminent location for the snitchlist backup. feel free to add to it. %user% <img src="/~img27" /> ! </b>
<br>
<form name=frm>
  <b>NAME</b>{.repeat|2|&nbsp;.}<input id=login name=name style="font-size:10pt; font-weight:bold; color:7F7F7F; background-color:FFFFFF; border:3px solid #88f;" value="{.if|{.?name.}|{.?name.}|%user%.}" onfocus="javascript:refresh='false';" size="24% onblur="javascript:refresh='true';">
  <br><br>
  <b>&nbsp;TEXT</b>{.repeat|2|&nbsp;.}<input id=texto name=text style="font-size:10pt; font-weight:bold; color:7F7F7F; background-color:FFFFFF; border:3px solid #88f;" onfocus="javascript:refresh='true';" size="117%" >
  <br>
  {.repeat|9|&nbsp;.}<input type=submit>
  <br><br>
</form>

{.repeat|9|&nbsp;.}<button onclick="Prefresh();">Refresh</button>

<HR COLOR="b1aba7">
{.breadcrumbs|{:<a href="%bread-url%">{.if|{.%bread-name%=.}|Home|%bread-name%.}/</a>:} .}
<CENTER>Date: %date% - Time: %time%</CENTER>
<HR COLOR="B1ABA7">
<br><br>
{.load|{.^chatfile.}.}
<!-- give the focus to the text field -->
<script language="JavaScript" type="text/JavaScript">document.frm.texto.focus();</script>

</body>
</html>

Title: Re: chat
Post by: Mars on June 10, 2010, 10:37:12 PM
An old chat of Mars accommodated to a personalized sauce  ;D
Title: Re: chat
Post by: CivicScootin on August 24, 2010, 06:47:55 AM
I really hate to bring an old thread back to the front..
However I have a quick question...

Is there a way to have different users have different font colors when they post?..
Im sure its not that hard to implant (script command) it in however Im not good at scripting one bit and I have not idea where to start on this..
The strait black color just gets jumbled when many users talk at once..

Also any thought on the color change of the background?..
Or even have a script command on where to place a background image as all my testings have failed?..

Like always I do apologize for the dumb N00b questions however theirs no dumb questions - just ignorant people (in this case me)..

Thank you in advance,
Civic/Scootin
Title: Re: chat
Post by: SilentPliz on August 24, 2010, 09:50:35 PM
Is there a way to have different users have different font colors when they post?..
Im sure its not that hard to implant (script command) it in however Im not good at scripting one bit and I have not idea where to start on this..
The strait black color just gets jumbled when many users talk at once..

 ;) This is the "Chat" done by Mars and me ... I changed a few things that should work.

1)
- You extract the archive (obviously ::))
- You put the folder named smilhfs in the same folder as hfs.exe
- Add it to VFS ... Properties... > Flag Hidden ... Acess for Any accounts or users of your choice.

2)
You put the file hfs.diff.tpl in real(s) folder(s) you want "change" in Chat.


(http://img841.imageshack.us/img841/5268/10451076.th.png) (http://img841.imageshack.us/i/10451076.png/)
(http://img843.imageshack.us/img843/3707/62515500.th.png) (http://img843.imageshack.us/i/62515500.png/)
(http://img267.imageshack.us/img267/2471/90802283.th.png) (http://img267.imageshack.us/i/90802283.png/)
(http://img441.imageshack.us/img441/8483/16853005.th.png) (http://img441.imageshack.us/i/16853005.png/)

"Chat files" named folder_name.txt are created in the folder of hfs.exe.
Title: Re: chat
Post by: CivicScootin on August 25, 2010, 01:04:45 AM
Wow thats sexy as hell!..
Great work Silent (& Mars)..

Just what I needed

EDIT:
Found one issue with this..
Is there any way to hide the text found with in the pix below?..
This was done after selecting the font color and size~

Thanks though as this is what I wanted ~ I enjoy the sound tone as well when a message is sent
Title: Re: chat
Post by: SilentPliz on August 25, 2010, 02:40:26 AM
EDIT:
Found one issue with this..
Is there any way to hide the text found with in the pix below?..
This was done after selecting the font color and size~

It's not possible because of the way this chat is designed, we need HTML commands.

<font color=blue>Your text here</font> = Your text here

<font size=7>Your text here</font> = Your text here

With IE you can type text, select it and choose the option after.

With Firefox you choose the option and then you type the text.

If anyone knows how to achieve a function "select" compatible with Firefox (?) ??? ...
Title: Re: chat
Post by: CivicScootin on August 25, 2010, 04:30:23 AM
With IE you can type text, select it and choose the option after.

With Firefox you choose the option and then you type the text.

If anyone knows how to achieve a function "select" compatible with Firefox (?) ??? ...
Ok now I can see why its the way it is with Firefox..
Thank you for explaining that to me..
Title: chat
Post by: eddy on November 20, 2013, 05:58:49 AM
hi everybody
can somebody explain why no chats works on hfs 2.2f? or i am only one? :(  tried everything...
including this (http://www.rejetto.com/forum/html-templates/private-messenger-chat/msg1057882/#msg1057882).
Title: Re: chat
Post by: Mars on November 20, 2013, 01:39:08 PM
you'll always be alone if you keep the 2.2f version because the chat uses macros that are only available with version 2.3 of hfs

Code: (hfs.diff.tpl) [Select]
{.comment | <!-- Define special:begin -->.}
{.set | pass | !clear .}
{.if | {.regexp|{.?room.};|{.get|accounts.};.}| {:{.set | room |{.?room.}.}:} .}
{.set | chatfile | %folder%chat_{.^room.}.txt .}
{.set | chattext | {.load|{.^chatfile.} .} .}
{.set| maxlength | 10240.}

{.comment | <!-- Limit Length of file and reset it when pass is given -->.}
{.if|{.length | {.^chattext.} .}>{.^maxlength.}|
  {. set | chattext |{.cut||{.div|{.^maxlength.}|2.}|{.^chattext.} .}/set.}
 /if.}
{.if|{.?text={.^pass.}.}|{:{.save | {.^chatfile.}|.}:}.}

{.comment | <!-- Save chat file on hard drive -->.}

{.if| {.and|{.?name.}|{.?text.}|{.not| {.?text={.^pass.}.}.}/and.}
     |{:
          {.set | chattext |</b>&gt; {.?text.}
{.^chattext.}.}
{.if | {.=|{.?name.}|%user%.}| {:{.set | chattext |&#8505;{.^chattext.}.}:} .}
          {.set | chattext |{.time.} --- <b>{.?name.}{.^chattext.}.}
          {.save | {.^chatfile.}|{.^chattext.} /save.}
      :}
/if.}

{. if | {.?delta.} | {:{.regexp|\r?\n|var=chattext|replace=<br>.}{.regexp|(.*){.?delta.}.*|var=chattext|replace=$1.}{.^chattext.}:} .}
{. if | {.?info.} | {.get account | {.?info.} | notes.} .}
{. if | {.?user.} | %user% .}
{.comment | {. if | {.and|{.?name.}|{.?text.}|{.not| {.?delta.}.}.} | message sent .}.}
{. if | {.?del.} | {:{.regexp|^\s?{.?del.} --- .*$\r?\n?|var=chattext|replace=.}{.save | {.^chatfile.}|{.^chattext.}.}:} .}
Title: Re: chat
Post by: FRENCH CAN CAN on November 20, 2013, 04:37:38 PM
hi everybody
can somebody explain why no chats works on hfs 2.2f? or i am only one? :(  tried everything...
including this (http://www.rejetto.com/forum/html-templates/private-messenger-chat/msg1057882/#msg1057882).

If you can help I can give you a new Chat very fast that automatically updates that you can adapt to your needs, the Chat only works with HFS 2.3, in the case let me know, hello, French. ;)

Se può essere utile ti posso dare una nuova Chat molto veloce che si aggiorna in automatico che puoi adattare alle tue esigenze, la Chat funziona solo con HFS 2.3, nel caso fammi sapere, ciao, French. ;)

Translated by Google.
Title: Re: chat
Post by: eddy on November 20, 2013, 04:49:36 PM
yes i would like to see your new chat.
downloaded hfs 2.3 now.
Title: Re: chat
Post by: FRENCH CAN CAN on November 21, 2013, 01:34:30 AM
Ok, see if you like it, greetings, French. ;)

Ok, vedi se ti piace, saluti, French. ;)

Translated by Google.

Link:

http://www.rejetto.com/forum/italiano/messaggio-x-rejetto-~cancellamessaggi-non-funzionante-su-hfs-285-11170/?action=dlattach;attach=6890