Chadi
08-08-2007, 01:19 PM
I created a custom template/page based on this tutorial.
http://www.vbulletin.com/forum/showthread.php?t=197563
My problem is I do not know what to input in the code/body area for RealChat
(software / unix edition http://www.realchat.com/chat-server-software.php).
I installed it with vbulletin integration
http://www.realchat.com/doc/database-integration.html
However, I just do not know what would go in the body of the custom template I created. I simply copied the body portion I found in the page source, but that only showed blank page when I pulled it up.
The actual code to link it in the navbar (or anywhere to create a link to the chat) is this:
<script language="Javascript" type="text/javascript">
<!--
function realchatPopup(url, nn, pu, au, hmac) {
var r = screen.height / screen.width;
var w = screen.width>800?1000:800;
var h = Math.round(w*r);
var c = function(s) { return encodeURIComponent(s).replace('!', '%21'); }
var rcw = window.open(url + '&nn=' + c(nn) + '&pu=' + c(pu) +'&au=' + c(au) + '&hmac=' + hmac + '&cu=cw', 'rc',
'width='+w+',height='+h+',status=no,toolbar=no,men ubar=no,location=no,scrollbars=yes,resizable=yes') ;
rcw.focus();
}
//-->
</script>
<a href="$chatLink">Chat</a>
Any help appreciated.
The link to the chat works fine (the script code I provide). I'm having a problem figuring out what goes in the body of the custom template I created so that the chat room shows up in there instead. When I go to this link, it shows a blank page:
http://www.talkjesus.com/misc.php?do=page&template=realchat
This is the custom template (called realchat_realchat)
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<noscript><b>This application requires JavaScript.</b><br/>Your browser either does not support JavaScript or scripts are being blocked.</noscript>
<script type="text/javascript">document.write('<script type="text/javascript" src="realchat.js$!20070808084731"><\/script>');</script>
$footer
</body>
</html>I'm obviously using the wrong coding to pull up the actual chat room. I just cannot figure out what the proper code should be. I really would appreciate any tips or help on this. I know its custom stuff, but your help is appreciated :)
Plus, there are no good chat software out there that integrate with vbulletin, aside this one which I'm trying out in trial mode.
http://www.vbulletin.com/forum/showthread.php?t=197563
My problem is I do not know what to input in the code/body area for RealChat
(software / unix edition http://www.realchat.com/chat-server-software.php).
I installed it with vbulletin integration
http://www.realchat.com/doc/database-integration.html
However, I just do not know what would go in the body of the custom template I created. I simply copied the body portion I found in the page source, but that only showed blank page when I pulled it up.
The actual code to link it in the navbar (or anywhere to create a link to the chat) is this:
<script language="Javascript" type="text/javascript">
<!--
function realchatPopup(url, nn, pu, au, hmac) {
var r = screen.height / screen.width;
var w = screen.width>800?1000:800;
var h = Math.round(w*r);
var c = function(s) { return encodeURIComponent(s).replace('!', '%21'); }
var rcw = window.open(url + '&nn=' + c(nn) + '&pu=' + c(pu) +'&au=' + c(au) + '&hmac=' + hmac + '&cu=cw', 'rc',
'width='+w+',height='+h+',status=no,toolbar=no,men ubar=no,location=no,scrollbars=yes,resizable=yes') ;
rcw.focus();
}
//-->
</script>
<a href="$chatLink">Chat</a>
Any help appreciated.
The link to the chat works fine (the script code I provide). I'm having a problem figuring out what goes in the body of the custom template I created so that the chat room shows up in there instead. When I go to this link, it shows a blank page:
http://www.talkjesus.com/misc.php?do=page&template=realchat
This is the custom template (called realchat_realchat)
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<noscript><b>This application requires JavaScript.</b><br/>Your browser either does not support JavaScript or scripts are being blocked.</noscript>
<script type="text/javascript">document.write('<script type="text/javascript" src="realchat.js$!20070808084731"><\/script>');</script>
$footer
</body>
</html>I'm obviously using the wrong coding to pull up the actual chat room. I just cannot figure out what the proper code should be. I really would appreciate any tips or help on this. I know its custom stuff, but your help is appreciated :)
Plus, there are no good chat software out there that integrate with vbulletin, aside this one which I'm trying out in trial mode.