Log in

View Full Version : Chat vb log in?


---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

RS_Jelle
03-28-2006, 04:42 PM
Read the vBulletin API Basics how-to (https://vborg.vbsupport.ru/showthread.php?t=98009). It's telling you everything about creating your own custom vB pages.

With the use of that tutorial, you can create a basic custom page with a template for your HTML code.

With the "Limiting Access to the Script" part of the tutorial, you can limit the access to members only. When you aren't logged in, you will see the vBulletin login page and after you logged in, you are transferred back to the page you came from (chat.php in this case).

---MAD---
03-29-2006, 08:00 AM
ok ill try that. Thanks alot!