hm on verra bien, Jappix en a écrit un, le souci donc c'est qu'il n'est pas encore intégré sur ogspy...
Ben si tu met un truc comme ça dans la head, ce n'est pas un truc légé ça ?
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
jQuery.ajaxSetup({ cache: true });
jQuery.getScript("https://static.jappix.com/server/get.php?l=en&t=js&g=mini.xml", function() {
JappixMini.launch({
connection: {
domain: "anonymous.jappix.com",
},
application: {
network: {
autoconnect: false,
},
interface: {
showpane: true,
animate: true,
},
user: {
random_nickname: false,
nickname: "USERNAME",
},
groupchat: {
open: ["ogspy"],
},
},
});
});
</script>
Et je sais qu'il y a moyen d'enregistrer ses propre identifiant jabber pour qu'il soient pris en compte... je peux regarder après si vous voulez...
D'autant plus qu'un autre intéret d'un chat comme ça, c'est qu'on peut partager ce salon et le mettre sur tous les forum des alliance amies...
C'est quoi l'intéret de "s'interfacer avec une base de donnée" ? je ne suis pas sûr de comprendre, tu dis ça pour utiliser des identifiant enregistré sur le site, ou tu voudrais que se soit les messages du chat qui soient enregistrées sur le site ?
À propos de chat Hipchat, je n'arrive pas me connecter sur le salon de discution ogspy. Perso j'ai déjà une adresse jabber que j'utilise avec pidgin. Y aurait-il moyen de connaitre le serveur du salon ? J'imagine que le salon s'appelle ogspy...
[édit]
Ha voilà, je viens de retrouve ce qu'il faut ajouter pour se connecter avec ses propres identifiants. Il suffit de remplacer ce qu'il est entre guillemets par des variables d'ogspy...
connection: {
user: 'user',
password: 'password',
domain: 'jappix.com',
resource: 'MyOwnResource'
},
D'après ce que je lis, il y a même moyen d'ouvrir plusieurs salons de discutions, ce qui permettrait par exemple, d'ouvrir un salon général, et un pour chaque alliance utilisant le serveur.
- Groupchats to join
- To automatically join groupchats when logged in, add them in the opts.application.groupchat.open array, like this:
opts.application.groupchat.open = ["support@muc.jappix.org", "mini@muc.jappix.com"];
- If you want to specify a password for a room to join, use the opts.application.groupchat.open_passwords array, with the elements sorted in the same order as they are in the groupchats array:
opts.application.groupchat.open_passwords = ["password_1", "password_2"];
Please note that you can safely remove all these stuffs, it will not hurt Jappix Mini!
- Chats to open
- As for groupchats, you can make Jappix Mini open chats with some users once connected. Add them in the MINI_CHATS array, like this:
opts.application.chat.open = ["valerian@jappix.com", "julien@jappix.com"];
- Chats to suggest
- To suggest the user a list of chats, add them in the opts.application.chat.suggest array, like this:
opts.application.chat.suggest = ["valerian@jappix.com", "julien@jappix.com"];
They will then appear in a list in the Jappix Mini roster, when clicking on the chat join button.
- Groupchats to suggest
- To suggest the user a list of groupchats, add them in the opts.application.groupchat.suggest array, like this:
opts.application.groupchat.suggest = ["support@muc.jappix.org", "mini@muc.jappix.com"];
They will then appear in a list in the Jappix Mini roster, when clicking on the chat join button.
- If you want to specify a password for a room to join, use the opts.application.groupchat.suggest_passwords array, with the elements sorted in the same order as they are in the groupchat suggest array:
opts.application.groupchat.suggest_passwords = ["password_1", "password_2"];
source