How to intergrate Morevil chat (auto login)
Hello!
Sorry for my bad english :)
I would like to integrate Morevil chat but I don't know how to pass user name for auto login to chat.
The parameter is:
<param name="auto-login" value=" ">
This parameter can be generated dynamically on the server-side (Perl, PHP, ASP, JSP...) or printed inside HTML page by javascript.
Well, I don't know how, so if anyone can help...
Thanks
0
This discussion has been closed.
Comments
u want every user on ur forum to be automatically be logged in to the chat ?
1) Copy the morevil webchat files to vanilla root.
ur files should look like this. http://mysite.com/vanilla/chat.php etc
2) Install Page Manage extension
3) Create a new Page, give it a name etc, and then use this as the html code
<?php echo '<div style="margin:20px 0 0 10px;"><p> My Chat place. excellent for waisting time</p> <APPLET codebase="." archive="'.$this->Context->Configuration["BASE_URL"].'chat.jar" code="Chat" width=750 height=450> <param name="config" value="'.$this->Context->Configuration["BASE_URL"].'config.txt"> <param name="smiles" value="on"> <param name="multi-rooms" value="on"> <param name="auto-login" value="'.$this->Context->Session->User->Name.'"> <param name="fgColor" value="#000000"> <param name="bgColor" value="#DDDDDD"> Your browser is NOT Java enabled </APPLET></div>'; ?>
this will add a tab in the menu bar and when u click on it the chat will appear. it should autologin if ur using the full version. Autologin isn't available in the Lite version
i'll tell u the first part, rest you should be able to do. I'll tell u how
Part 1
Create a folder called morevil in extensions folder
inside it put all ur chat files. remember you need the full version for autologin
Now in morevil folder, create a new file called vanillachat.php
In it you copy paste this.
<?php include('../../appg/settings.php'); include('../../appg/init_vanilla.php'); $Context->Session->Check($Context); echo' <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <TITLE>Morevil Web Chat 4.23</TITLE> </HEAD> <BODY> <a href="http://www.morevil.com/chat/"><H3 align=center> <FONT COLOR="#707070" FACE="Arial, Helvetica"> Morevil Web Chat 4.23</FONT></H3></a> <APPLET archive="chat.jar" code="Chat" width=750 height=450> <param name="config" value="config.txt"> <param name="smiles" value="on"> <param name="multi-rooms" value="on"> <param name="auto-login" value="'.$Context->Session->User->Name.'"> <param name="fgColor" value="#555555"> <param name="bgColor" value="#CCCCCC"> Your browser is NOT Java enabled </APPLET> <BR> <BR> <BR> <DIV align=center> <FONT SIZE="-2" FACE="Arial, Helvetica"> Copyright © 2000-2006, <A HREF="http://www.morevil.com/"><B>Morevil</B></A>. All rights reserved. </FONT> </DIV> </BODY> </HTML>'; ?>
Now when you run the vanillachat.php file like so http://mywebsite.com/vanilla/extensions/morevil/vanillachat.php
you should see the chat window with Autologin.
Thats part 1
part 2 search online on how to create a link that popups a window. pick the simplest code.
Part 3 is use that link in Nugget extension and make it display in the panel. you're done.