TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 97
  • Total: 98
  • @rjen

Users In Chat Block (flashchat)

Started by Zetan, September 30, 2007, 04:48:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zetan

I have been using flashchat for a while now, I have made a new site and well it seems that when I put the users in chat block in the left panel of tp the box is minimised but when you enter the forums its show like its supposed to, or if I put the users in chat block on the right panel its showing ok.

To fill you in I am running smf v1.1.3, tp v0.9.8, coppermine v1.4, flashchat v4.7.11 and I have the coppermine in a front page article within an iframe, as well the flashchat opens in an iframe aswell.

I seems that because I have the coppermine opening as the main page (front page article) this could be causing the problems but I am not sure.

The site in question is http://www.bigphatshowoff.com

Any suggestions would be great.

Zetan

I think I see what you are talking about. Try creating the block again using the same block type.
It should work on whatever page you are viewing. Delete that block and put the content in a new block, I don't think for a second it will make a difference.

There may be a conflict there somewhere.

Zetan

#2
I gave it a shot same effect, it seems that if I am entering any of the forum links from the top tabs, it opens up the users in chat block but when I am in the main page which is the coppermine gallery (showing the front page article) the users in chat block minimises, its like when in the gallery it does not update that chat block.

I even double cheked the iframe names just to be sure they seem like there is no overlapping names or anything.

Zetan

I'm of the opinion that this is the software/code you are using.. I'm not sure it's a TinyPortal problem, though I can see a conflict.. but I'm not sure what it is at this time.. You will need to investigate this a little.. If you really think it's a problem with TinyPortal.. please come back and we will look into it. I just don't feel it's TP at this time.

Zetan

I agree I dont think its a tinyportal thing either (am I in the wrong area with this) just looking for a little help that all.

I am using a scriptbox block iframe call to open (chat/info_embedded.php) the users in chat block.

code below.

<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Users In Chat</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">

/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["chatusers"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>
</head>

<body>
<iframe id="chatusers" src="'/chat/info_embedded.php" scrolling="no" marginwidth="0" allowtransparency="true" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:novisible; width:100%; display:none"></iframe>
</body>
</html>

This website is proudly hosted on Crocweb Cloud Website Hosting.