Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Web Live Chat


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 489
  • Lokalizacja:AMXX.PL
Offline

Napisano 06.03.2014 18:25

<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><b><font size="6"><font color="#FF0000">Web Live Chat</font></font><br /></b> <b> Versión: 1.2<br /></b> </div><br /><br /><b><font size="5"><font color="#0000CD">.: Description :.</font></font></b><br /><br /><ul><li>The plugin sends everything a player says using HTTP Post Request format to your website.</li>
<li>The handler is a PHP file, it gets what the player said &amp; he store the message in a database.</li>
<li>With the second PHP file you can see the CS Chat on live, it automatically checks if there are new messages every second using ajax (without refreshing the page).</li>
</ul><br /><br /><b><font size="5"><font color="#0000CD">.: Cvars :.</font></font></b><br /><br /><ul><li>amx_chat_host &quot;your website&quot; (default: 127.0.0.1)</li>
<li>amx_chat_phpfile &quot;file.php&quot; (default: chat.php)</li>
<li>cvar values are <u><font color="red">cached</font></u> in memory at plugin startup, so if you change a cvar it won't take effect until you reload the map/restart the server.</li>

</ul> <br /> <br /><b><font size="5"><font color="#0000CD">.: Changelog :.</font></font></b><br /><br /><ul><li>Version 1.0: First realease.</li>
<li>Version 1.1: Added new cvars</li>
<li>Version 1.2: Added IP check in chat.php to verify that the POST Request came from your server (to prevent flood or false data).</li>
</ul><br /><br /><b><font size="5"><font color="#0000CD">.: Comments :.</font></font></b><br /><br /><ul><li>Why did I not update the database with the plugin itself? Most of game hosters dosn't allow you to use local databases, most of free webhostings doesn't allow remote connections to database, some non-free webhostings doesn't allow remote connetions to database. My plugin works on all this cases, so you don't have to worry about it.</li>
<li>I know the javascript code (index.php) is not the most efficient code &amp; the best choice would be only refresh it when new data is available, but I would like to keep it simple as it is.</li>
<li>chat.php =&gt; the Post request handler &amp; database seeker.</li>
<li>index.php =&gt; the live chat itself (look at the screenshot to see chat style).</li>
<li>cs_chat.sql =&gt; mysql table query.</li>
</ul><br /><br /><b><font size="5"><font color="#0000CD">.: ScreenShot :.</font></font></b><br /><br /><img src="http://i.imgur.com/Bg3NRWa.png" border="0" alt="" /></div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1394130632">WebLiveChat.zip</a> (2.0 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sma.gif" alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>

<a href="http://www.amxmodx.o...?file_id=131209"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1394130669">Get Source</a> (WebLiveChat.sma - 1.9 KB)

</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych