rejetto forum

chat

Guest · 15 · 11734

0 Members and 1 Guest are viewing this topic.

ronny

  • Guest
is there any way to talk to users connected to HFS


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile

Sure.  Use a chat server. 
maverick


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile

wfm

  • Guest
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: 2063
    • View Profile
An old chat of Mars accommodated to a personalized sauce  ;D


Offline CivicScootin

  • Occasional poster
  • *
    • Posts: 37
    • View Profile
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: 1298
  • ....... chut ! shh!
    • View Profile
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
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: 1298
  • ....... chut ! shh!
    • View Profile
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
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
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: 2063
    • View Profile
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
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
yes i would like to see your new chat.
downloaded hfs 2.3 now.


Offline FRENCH CAN CAN

  • Tireless poster
  • ****
    • Posts: 681
    • View Profile
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 »