[Risolto]Chat

Started by Elisa, May 25, 2004, 02:30:16 PM

Previous topic - Next topic

Elisa

Vorrei installare una chat nel mio forum, ma non so da che parte cominciare!
Girovagando qua e la ho trovato questa: integratedchat_2.0_SMFB5 e integratedChat_2.0
Però non ho nessuna idea di come si montino!
Sempre per via che non so una parola di inglese! Qualcuno mi può aiutare?
Nella prima versione c'è un file che dice questo:

<id>
Integrated Chat
</id>

<version>
2.0 for SMG Beta 5
</version>

<mod info>
Integrated Chat using www.everywherechat.com servers, fully IRC compliant.
AWSOME MOD :)

1. Upload files from mod into forum following directory structure in zip file
2  Run chatdb.php via web browser (unless your upgrading), delete chatdb.php
3. Run integratedchat_2.0.mod in boardmodSE OR use your favorite text editor
4. Go into your admin panel and edit the chat settings under mod settings.
5. Make sure your room name doesn't exist on the server first.
   Then once you have gone in the room double click on it to register yourself and your other mods.
   You might have to do this again occasionally if there is a chat server upgrade.
5. I personally edited my BoardIndex.template.php to make the number of users and who they were on my index page.
Another option is to insert the following into a news box in the admin panel. Change roomname to your room name.

There are currently <script src="http://www.everywherechat.com/users.asp?room=ROOMNAME"></script> people talking in the chat room.<BR>
<script src="http://www.everywherechat.com/members.asp?room=ROOMNAME"></script>


</mod info>

<edit file>
Sources/ModSettings.php
</edit file>

<search for>
array('text', 'cal_maxspan'),
</search for>

<add after>
&$txt['chatTitle'],
// Integrated Chat 1.0 Settings
array('text', 'chatLanguage'),
array('text', 'chatRoomName'),
array('text', 'chatAppend'),
array('text', 'chatWidth'),
array('text', 'chatHeight'),
array('text', 'chatPassword'),
array('check', 'chatRoomsTab'),
</add after>

<search for>
'default_personalText', 'time_format',
</search for>

<add after>
'chatLanguage', 'chatRoomName', 'chatAppend', 'chatWidth',
'chatHeight', 'chatPassword',
</add after>


<edit file>
Themes/default/languages/index.english.php
</edit file>

<search for>
$txt['quickmod_delete_selected'] = 'Delete Selected';
</search for>

<add after>

$txt['chatAlt'] = 'Chat';
$txt['chatStats'] = 'Chat Stats';
</add after>


<edit file>
Themes/default/languages/ModSettings.english.php
</edit file>

<search for>
$txt['cal_maxspan'] = 'Max number of days an event can span';
</search for>

<add after>

$txt['chatTitle'] = 'Integrated Chat Settings';
$txt['chatLanguage'] = 'Choose the language of your board';
$txt['chatRoomName'] = 'Type in the name of your chat room';
$txt['chatAppend'] = 'Type in 3 or 4 letters to append to every user name. This prevents duplicate names from the server, ex _app';
$txt['chatWidth'] = 'Type in the Width of the chat applet (default 700)';
$txt['chatHeight'] = 'Type in the Height of the chat applet (default 500)';
$txt['chatPassword'] = 'If you want to put a password on your room put it here, otherwise use NULL';
$txt['chatRoomsTab'] = 'If you do not want a list of other chat rooms to appear set to false, otherwise true';
</add after>

<edit file>
Themes/default/BoardIndex.template.php
</edit file>

<search for>
// "Users online" - in order of activity.
</search for>

<add before>

// Chat Stats
echo '
<tr>
<td class="catbg" colspan="2">', $txt['chatStats'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=chat">
<img src="', $settings['images_url'], '/chatIcon.gif" alt="', $txt['chatAlt'], '" border="0" /></a>
</td>
<td class="windowbg2" width="100%">
<BR>There are currently <script src="http://www.everywherechat.com/users.asp?room=', $modSettings['chatRoomName'], '"></script> people talking in the chat room.<BR>
<script src="http://www.everywherechat.com/members.asp?room=', $modSettings['chatRoomName'], '"></script>
<span class="smalltext">';

</add before>

<edit file>
index.php
</edit file>

<search for>
'calendar' => array('Calendar.php', 'CalendarMain'),
</search for>

<add after>
'chat' => array('Chat.php', 'ChatRoom'),
</add after>

<edit file>
Themes/default/languages/Who.english.php
</edit file>

<search for>
$txt['whoall_.xml'] = 'Viewing an XML feed.';
</search for>

<add after>
$txt['whoall_chat'] = 'Entering the <a href="' . $scripturl . '?action=chat">Chat Room</a>.';
</add after>


<edit file>
Themes/default/index.template.php
<search for>
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
</search for>

<add after>

// Integrated Chat Mod Icon
if (!$context['user']['is_guest'])

Ezechiele

Non so, ma credo tu debba usare board mod e poi uppare i file modificati  :o

Elisa

Cos'è board mod??????
Help!!! Sono proprio imbranata!!!
E poi quali files modificati!

FaSan

Quella è una Mod x YabbSe e non per SMF. Quindi il BoardMod sicuramente non andrà come dovrebbe (non trovando tutte le corrette corrispondenze).

Teoricamente la mod in questione è adattabile, ma c'è sicuramente da lavorarci sù, visto che SMF è sufficentemente nuovo da non conoscerlo ancora a fondo.

Detto fra noi quella mod non era granchè neanche x YabbSe hehehe...

Io nel mio vecchio me la son fatta da solo, installando un server IRC, un java client e adattando un file di login in php.

Quando SMF sarà definitivo, proverò ad adattarla e postarla ;)



FaSan

Elisa

Però la l'ho trovata su questo sito quella chat e si chiama proprio SMF beta 5! Tra l'altro ho fatto una prova sul forum, ho uppato i files, ho digitato www.miosito/forum/chatdb.php come dice lì e i files si sono caricati ma poi non so che fare!!!

Comunque se questa chat non va bene, non ne esistono altre per SMF????

FaSan

Pensavo fosse x YabbSe, se è x SMF non dovrebbe crear problemi :)

il file chatdb.php non è altro che una modifica al database, per applicare la mod devi editare i file descritti (EDIT FILE xxxx), cercare le stringhe (SEARCH xxxx) e aggiungere dopo (add after) o prima (add before) le modifiche.

Quella mod lavora con un server IRC di EveryWhereChat, dovrai quindi registrare un account su quel server (così come descritto tra i tags modinfo).



FaSan

Elisa

Mamma mia!
Oggi ci provo ma sarà sicuramente un disastro!!!!

Elisa

FUNZIONAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!!!!!!!!!!
[/color]

Ezechiele


Elisa

L'unico problema è che non mi fa cambiare le stanze nè mandare mess privati!
Però per me che so a mala pena accendere il pc è una conquista!!!!

Supreme


Elisa

Quote from: Supreme on May 26, 2004, 12:50:09 PM
hihihi :D

Con questo contributo ora ho capito tutto!!!! :D :D :D

Elisa

Tutto a posto ora!

alba_q

E' possibile sapere dove posso scaricare la chat?
Ciao Cia

FaSan

Il tasto "Search" è tuo Amico !  ;)

Advertisement: