Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2007, 01:19 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default custom page

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:

Code:
    <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,menubar=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...plate=realchat

This is the custom template (called realchat_realchat)

Code:
$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.
Reply With Quote
  #2  
Old 08-09-2007, 11:11 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would appreciate any help on this.
Reply With Quote
  #3  
Old 08-12-2007, 11:39 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone willing to give this a shot? It would be a great blessing to many vbulletin owners who are looking for a decent chat room.
Reply With Quote
  #4  
Old 08-13-2007, 12:01 AM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The misc.php file you are using to test the template requires that the template name begins with "custom"


from the php:
PHP Code:
        eval('print_output("' fetch_template('custom_' $template_name) . '");'); 

rename your template to custom_realchat
Reply With Quote
  #5  
Old 08-14-2007, 12:56 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. The page pulls up, but this time the chat just does not appear at all

http://www.talkjesus.com/misc.php?do...plate=realchat

custom_realchat template shows this:

Code:
$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 don't know what specific chat code should actually be in there.


When I go directly to the original chat page, the page source shows this:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<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$!20070809010203"><\/script>');</script>
</body>
</html>
Reply With Quote
  #6  
Old 08-14-2007, 01:58 AM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where on your system have you dropped the realchat.js?

src="realchat.js$!20070809010203"

is the js sitting in your root folder, or in clientscript, or somewhere else? if it is somewhere else, add the path to the src line

src="clientscript/realchat.js$!20070809010203"
Reply With Quote
  #7  
Old 08-14-2007, 02:10 AM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its located in this directory

/home/username/public_html/RealChat/www/pub

I tried this:

<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/www/pub/realchat.js$!20070808084731"><\/script>');</script>

Didn't work

I also tried this

<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/www/pub/realchat.js$!20070808084731"><\/script>');</script>
Reply With Quote
  #8  
Old 08-14-2007, 03:18 AM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the source of your webpage (near the bottom) it says

src="RealChat/www/pub/RealChat/www/pub/realchat.js

So the path is being concatenated somewhere. Play around with the php code until the resulting source code is correct.

Can you provide a link to the "working" non vb page?
Reply With Quote
  #9  
Old 08-14-2007, 02:04 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://147.202.66.9:8085/?nn=Chad&pu=http%3A%2F%2Fwww.talkjesus.com%2Fmembe r.php%3Fu%3D3&au=http%3A%2F%2Fwww.talkjesus.com%2F image.php%3Fu%3D3&hmac=f4a83ad5df7ba1e27fe1873f21f 8d1d5&cu=" target="_blank">Click here for direct page</a>

Thanks for the help.

If you get this worked out, it will be a great thing for all other vbulletin users looking for something more stable, clean and user friendly than flashchat (which I've used for 3 years now).
Reply With Quote
  #10  
Old 08-14-2007, 08:44 PM
Eikinskjaldi's Avatar
Eikinskjaldi Eikinskjaldi is offline
 
Join Date: Feb 2006
Location: Hell, never looked better
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's putting up a page not found error, it is at least performing the document.write.

As I said in my last post, you need to play around with your "src="path/path/RealChat.js"

Until what actually appears in the loaded page (view the source thereof) shows the correct path
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04047 seconds
  • Memory Usage 2,281KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete