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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-03-2006, 09:47 AM
pokerie pokerie is offline
 
Join Date: Apr 2006
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default FlashChat Integration Problems :(

Hi there,

Ive asked this on the tufat.com forums but havent had any helpful responses. Hoping somebody here may have had the same issue and been able to solve it?

I'm trying to get flashchat to fit with the site www.poker.ie

I've setup a testpage at: http://www.poker.ie/community/forums...r_ie_chat2.php

As you can see the chatbox isn't showing up. I've followed the instructions on http://www.tufat.com/docs/flashchat/sample.html

The template integration has two methods as far as I can see, the first to use a tpl file, the second to write the header and footer code right into the page. I've opted for the latter. Am I missing something? Have I misunderstood this page - http://www.tufat.com/docs/flashchat/sample.html ?

Here's the php file - I've removed all php that is unrelated to flashchat:

Code:
<?php
	require_once('inc/smartyinit.php');
	$data = array();
	$lin = false;
	
	if(isset($_REQUEST['username'])) {
		if(!isset($_REQUEST['lang'])) $_REQUEST['lang'] = $GLOBALS['fc_config']['defaultLanguage'];
		if(!isset($_REQUEST['password'])) $_REQUEST['password'] = '';

		$params = array(
			'login' => $_REQUEST['username'],
			'password' => $_REQUEST['password'],
			'lang'  => $_REQUEST['lang']
		);

		$lin = true;
		
		//third parameter = width in pixels
		//fourth parameter = height in pixels
		$data['flashChatTag'] = flashChatTag('600', '500', $params);
	}
	else
	{
		$data['languages'] = $GLOBALS['fc_config']['languages'];
		$data['defaultLanguage'] = $GLOBALS['fc_config']['defaultLanguage'];
	}	
	
	$data['lin'] = $lin;
	$smarty->assign('data', $data);
	
	?>
	
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	
	<head>
	
	<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	
	<title>
	Poker.ie
	</title>
	
	<link rel="stylesheet" href="http://www.poker.ie/styles/styles.css" type="text/css" media="screen" />
	
	
	</head>
	
	<body>
	
	<div id="body_wrapper">
	<div id="body_wrapper_b">
	
		<!-- Start of Navigation Tabs PUT ON AN INCLUDE -->
		
		<div id="nav_tabs">
			
		</div>
		
		<!-- End of Navigation Tabs-->
		
		<!-- Start of Main Navigation PUT ON AN INCLUDE-->
	
		<div id="page_commnav">
	
			<ul>
	
			<!-- Class for Current Section -->
			<li id="commnav_01"><a href="index.php"><span>Home</span></a></li>
			<li id="commnav_02" class="current_section"><a href="map_directory.php"><span>Map Directory</span></a></li>
			<li id="commnav_03"><a href="magazine/"><span>Magazine</span></a></li>
			
			<li id="commnav_04"><a href="http://www.poker.ie/community/forums"><span>Forum</span></a></li>
			</ul>
	
	
			<div class="clearthis">&nbsp;</div>
	
		</div>
	
		<!-- End of Main Navigation -->
	
		<!-- Start of Page Header PUT ON AN INCLUDE -->
	
		<div id="page_header_comm">
		
			<!-- Heading -->
			<h1><span>www.Poker.ie</span></h1>	
				
			<div id="login_box">

			</div>		
	
		</div>
	
		<!-- End of Page Header -->
	
		<!-- Start of Page Body -->
	
		<div id="page_body_comm">
			
			<div id="chat">
			
				<?
					$params = array(
						'login' => $_REQUEST['username'],
						'password' => $_REQUEST['password'],
						'lang'  => $_REQUEST['lang']
					);
					echo flashChatTag('600', '500', $params); // add options like width and height of the SWF area here
				?>
			</div>

	</div>

	<!-- End of Page Body -->



	<!-- Start of Page Footer PUT ON AN INCLUDE -->

	<div id="page_footer">

		
		<!-- Copyright -->

		<div id="footer_copyright">
		&copy; Content copyright by Poker.ie <a href="tc.php">Terms 
		&amp; Conditions</a></div>


		<!-- Design Credit -->

		<div id="footer_design">
		
		Development by <a href="http://www.hotpebble.com">Hotpebble</a>
		</div>


	</div>

</div>
</div>


</body>
</HTML>
Any ideas why it isn't showing?
Reply With Quote
 


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 05:31 PM.


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.03386 seconds
  • Memory Usage 2,296KB
  • Queries Executed 13 (?)
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)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete