-
chat altersito
salve volevo chiedervi come è possibile aggiungere la chat nel mio forum.. ho letto k devo scrivere queste due righe :
Codice HTML:
<script type="text/javascript"> var av_chat_lang = 'it'; </script>
<script type="text/javascript" src="http://tl.altervista.org/js/chat.js"></script>
ma qual ' è il file nella quale devo inserirlo?? grazie in anticipo
questo è il mio sito è voglio metterlo sopra gli argomenti
-
Se la vuoi solo nell'Indice, nella parte alta dell'index_body.html.
-
scusa l'ignoranza... quando vado nel file dell'index_body.html trovo gia una stringa uguale a quella che dovrei inserire io della chat... ma mi dico perchè non la vedo nell'indice..?? questo è tutto il file:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Untitled document</title>
</head>
<body>
<!-- INCLUDE overall_header.html -->
<script type="text/javascript">// <![CDATA[
var av_chat_lang = 'it';
// ]]></script>
<script src="http://tl.altervista.org/js/chat.js" type="text/javascript"></script>
<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF U_MCP -->
<p>{CURRENT_TIME} <br />[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
<!-- ELSEIF S_USER_LOGGED_IN -->
<p>{CURRENT_TIME}</p>
<!-- ENDIF --> <!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
<!-- IF S_DISPLAY_SEARCH -->
<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED} </a><!-- IF S_USER_LOGGED_IN --> • <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> • <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_T OPICS}</a></li>
<!-- ENDIF --> <!-- IF not S_IS_BOT and U_MARK_FORUMS -->
<li class="rightside"><a accesskey="m" href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></li>
<!-- ENDIF -->
</ul>
<!-- ENDIF --> <!-- INCLUDE forumlist_body.html -->
<h3>Legende des folders <a href="javascript:collapse1.slidedown()"><img src="styles/naruto_shippuuden/theme/images/down.png" alt="Afficher la légende" /></a> <a href="javascript:collapse1.slideup()"><img src="styles/naruto_shippuuden/theme/images/up.png" alt="Cacher la légende" /></a></h3>
<div id="dog" style="width: 810px; height: auto;">
<p><img style="vertical-align: middle;" src="styles/naruto_shippuuden/imageset/forum_read.png" alt="Forum lu" /> Forum lu <img style="vertical-align: middle;" src="styles/naruto_shippuuden/imageset/forum_read_locked.png" alt="Forum fermé, lu" /> Forum fermé, lu <i mg style="vertical-align: middle;" src="styles/naruto_shippuuden/imageset/forum_read_subforum.png" alt="Forum avec sous-forum lu" /> Forum avec sous-forum lu</p>
<p><img style="vertical-align: middle;" src="styles/naruto_shippuuden/imageset/forum_unread.png" alt="Forum non lu" /> Forum non lu <img style="vertical-align: middle;" src="styles/naruto_shippuuden/imageset/forum_unread_locked.png" alt="Forum fermé, non lu" /> Forum fermé, non lu <img style="vertical-align: middle;" src="styles/naruto_shippuuden/imageset/forum_unread_subforum.png" alt="Forum avec sous-forum non lu" /> Forum avec sous-forum non lu</p>
<p> <img style="vertical-align: middle;" src="styles/naruto_shippuuden/imageset/forum_link.png" alt="Forum lien" /> Forum lien <img src="styles/naruto_shippuuden/imageset/subforum_read.gif" alt="Sous-forum lu" />Sous-forum lu <img src="styles/naruto_shippuuden/imageset/subforum_unread.gif" alt="Sous-forum non lu" />Sous-forum non lu</p>
</div>
<script type="text/javascript">// <![CDATA[
//Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
var collapse1=new animatedcollapse("dog", 1000, false)
// ]]></script>
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT --> <form class="headerspace" action="{S_LOGIN_ACTION}" method="post">
<h3>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 116px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><script type="text/javascript"> var av_chat_lang = 'it'; </script></div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 116px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"><script type="text/javascript" src="http://tl.altervista.org/js/chat.js"></script></div>
</h3>
<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED --> • <a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
<fieldset class="quick-login"> <label for="username">{L_USERNAME}:</label> <input id="username" class="inputbox" title="{L_USERNAME}" name="username" size="10" type="text" /> <label for="password">{L_PASSWORD}:</label> <input id="password" class="inputbox" title="{L_PASSWORD}" name="password" size="10" type="password" /> <!-- IF S_AUTOLOGIN_ENABLED --> | <label for="autologin">{L_LOG_ME_IN} <input id="autologin" name="autologin" type="checkbox" /></label>
<script type="text/javascript">// <![CDATA[
var av_chat_lang = 'it';
// ]]></script>
<script src="http://tl.altervista.org/js/chat.js" type="text/javascript"></script>
<!-- ENDIF --> <input class="button2" name="login" type="submit" value="{L_LOGIN}" /> </fieldset> </form> <!-- ENDIF --> <!-- IF S_DISPLAY_ONLINE_LIST --> <!-- IF U_VIEWONLINE -->
<h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3>
<!-- ELSE -->
<h3>{L_WHO_IS_ONLINE}</h3>
<!-- ENDIF -->
<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST} <!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF --> <!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
<h3>{L_BIRTHDAYS}</h3>
<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF --> <!-- IF NEWEST_USER -->
<h3>{L_STATISTICS}</h3>
<p>{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}</p>
<!-- ENDIF --> <!-- INCLUDE overall_footer.html -->
</body>
</html>
sapresti dirmi di preciso dove?
-
Ciao, io avevo lo stesso tuo problema, inserivo il codice salvavo la pagina e poi quando andavo sul sito non la visualizzavo, poi mi hanno consigliato d'andare nel pannello admin o pcm sotto la voce generale e di provare a svuotare la cache, l'ho fatto e la chat è comparsa, così ha funzionato, spero che funzioni anche a te :wink: