
09-25-2008, 02:27 PM
|
|
|
Join Date: Mar 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by PGAmerica
I successfully have Flashchat 5.0.7 working in vbulletin 3.7.3 PL1 (thank you for this modification). It is working perfectly. In an effort to add an option in my navbar for Flashchat to come up in a new window, I added this javascript code.
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=400,left = 540,top = 325');");
}
// End -->
</script>
Then I added this link to my navbar.
Code:
<A HREF="javascript:popUp('/forums/chat/index.php$session[sessionurl_q]')">Chat in New Window (might have to login again)</A>
It works fine, except the user has to login again when the new flashchat window comes up.
Are there any suggestions as to how I can pass the vbulletin login info to FlashChat? I know I can call FlashChat with the link "/forums/misc.php?do=flashchat", but this puts the vbulletin wrapper around it. I want it to be all by itself in a popup window.
Note: When FlashChat is launched normally through vbulletin, it works fine.
|
Link to /forums/chat/flashchat.php instead of index.php
Plus this is how I did it not using javascript :
<a href="chat/flashchat.php" target="_blank">Chat</a>
|