---MAD---
03-28-2006, 09:44 AM
Hello,
I am trying to make it so users must be logged in to be able to access real chat. However i would like it so that the log in matches the log in page on vbulletin (style etc).
I have tried the non vb log in hack however it does not have the same log in style as vbulletin, it is much simpler.
Heres the code currently in chat.php:
<html>
<head>
<title>Chat Login Page</title>
<link rel="stylesheet" href="styles.css" type="text/css">
<meta name="description" content="RealChat Software">
<meta name="keywords" content="chat, client, server, java, realchat">
</head>
<body topmargin=0 leftmargin=0>
<center>
<!-- Begin: RealChat Client code -->
<applet
archive = "RealChat.jar"
codebase = "."
code = "rcs.client.RealChatClient.class"
name = "ChatClient"
width = "95%"
height = "90%"
align = "top"
alt = "RealChat Client applet"
MAYSCRIPT>
<param name="nick" value="<?php echo $vbulletin->userinfo[username]; ?>">
<param name="embedded" value="yes">
<!-- no java or java disabled -->
I took out some bits that arent important (text etc).
Where and how would i force people not logged in to log in and make them autoredirect back to chat.php?
Thanks
I am trying to make it so users must be logged in to be able to access real chat. However i would like it so that the log in matches the log in page on vbulletin (style etc).
I have tried the non vb log in hack however it does not have the same log in style as vbulletin, it is much simpler.
Heres the code currently in chat.php:
<html>
<head>
<title>Chat Login Page</title>
<link rel="stylesheet" href="styles.css" type="text/css">
<meta name="description" content="RealChat Software">
<meta name="keywords" content="chat, client, server, java, realchat">
</head>
<body topmargin=0 leftmargin=0>
<center>
<!-- Begin: RealChat Client code -->
<applet
archive = "RealChat.jar"
codebase = "."
code = "rcs.client.RealChatClient.class"
name = "ChatClient"
width = "95%"
height = "90%"
align = "top"
alt = "RealChat Client applet"
MAYSCRIPT>
<param name="nick" value="<?php echo $vbulletin->userinfo[username]; ?>">
<param name="embedded" value="yes">
<!-- no java or java disabled -->
I took out some bits that arent important (text etc).
Where and how would i force people not logged in to log in and make them autoredirect back to chat.php?
Thanks