Author Topic: chat  (Read 5288 times)

0 Members and 1 Guest are viewing this topic.

ronny

  • Guest
chat
« on: October 27, 2006, 01:09:18 PM »
is there any way to talk to users connected to HFS

Offline maverick

  • Tireless poster
  • ****
  • Posts: 1052
  • Computer Solutions
    • View Profile
Re: chat
« Reply #1 on: October 27, 2006, 03:34:38 PM »

Sure.  Use a chat server. 
maverick

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12945
    • View Profile
Re: chat
« Reply #2 on: October 28, 2006, 05:07:38 PM »
hehe
no, sorry

wfm

  • Guest
Re: chat
« Reply #3 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>

« Last Edit: June 10, 2010, 10:31:47 PM by Mars »

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1876
    • View Profile
Re: chat
« Reply #4 on: June 10, 2010, 10:37:12 PM »
An old chat of Mars accommodated to a personalized sauce  ;D

Offline CivicScootin

  • Occasional poster
  • *
  • Posts: 37
    • View Profile
Re: chat
« Reply #5 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

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1225
  • ....... chut ! shh!
    • View Profile
Re: chat
« Reply #6 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.







"Chat files" named folder_name.txt are created in the folder of hfs.exe.
« Last Edit: August 27, 2010, 02:51:01 AM by SilentPliz »

Offline CivicScootin

  • Occasional poster
  • *
  • Posts: 37
    • View Profile
Re: chat
« Reply #7 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
« Last Edit: August 25, 2010, 01:45:10 AM by CivicScootin »

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
  • Posts: 1225
  • ....... chut ! shh!
    • View Profile
Re: chat
« Reply #8 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 (?) ??? ...
« Last Edit: August 25, 2010, 02:42:55 AM by SilentPliz »

Offline CivicScootin

  • Occasional poster
  • *
  • Posts: 37
    • View Profile
Re: chat
« Reply #9 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..

Offline eddy

  • Occasional poster
  • *
  • Posts: 19
    • View Profile
chat
« Reply #10 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.
« Last Edit: November 20, 2013, 06:35:14 AM by eddy »

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1876
    • View Profile
Re: chat
« Reply #11 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.}.}:} .}

Offline FRENCH CAN CAN

  • Tireless poster
  • ****
  • Posts: 681
    • View Profile
Re: chat
« Reply #12 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.

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.

Offline eddy

  • Occasional poster
  • *
  • Posts: 19
    • View Profile
Re: chat
« Reply #13 on: November 20, 2013, 04:49:36 PM »
yes i would like to see your new chat.
downloaded hfs 2.3 now.

Offline FRENCH CAN CAN

  • Tireless poster
  • ****
  • Posts: 681
    • View Profile
Re: chat
« Reply #14 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
« Last Edit: November 21, 2013, 03:33:34 AM by FRENCH CAN CAN »