Hi all,
I am making a website, i have a allias testing.gamerscafe.nl and a main site www.gamerscafe.nl
I am using php and html
I am using phpbb3.06 with portal premod 5.0
I want the pages open in the same portal and i have no problem in FF (main en testing)
The problem is in IE, the weird part is I have no problem on the testing site:
http://testing.gamerscafe.nl/portl_pages.php if you press a button insite the portal like Players, the page opens in the same portal.
But on www.gamerscafe.nl the page opens in a new window. I also want that to open in the same portal.
PHP code:
Code:
<?php
if (!defined('IN_PHPBB'))
{
exit;
}
global $user, $db;
if ($user->data['is_registered']){
$dat = $user->data['user_id'];
$link = '<iframe src ="http://www.come2play.com/channel_auth.asp?channel_id=33202&uid=';;
$link .= $dat;
$link .= '&nick_name=';
$link.= $user->data['username'];
$link .='&auth_sig=';
$channel = '23b7f054e101a14674b51c9f0d7dfee2';
$combine = $dat|$channel;
$combimix= md5($combine);
$link .= $combimix ;
$link .='" width="850" name="galleryframe" id="galleryframe" height="520" frameborder="0" scrolling="no" allowtransparency="true" >';
$link .='<p>Your browser does not support iframes.</p>';
$link .='</iframe>';
}else{
$link .= '<center> You need to be logd in to see this iframe';
}
// Assign specific vars
$template->assign_vars(array(
'I_FRAME' => $link,
));
$template->set_filenames(array(
'body' => 'portal/block/multiplay.html',
));
?>
The HTML code:
Code:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body onLoad="MM_preloadImages('styles/X-TremeRed/theme/images/buttons/players_2.png', 'styles/X-TremeRed/theme/images/buttons/games_3.png', 'styles/X-TremeRed/theme/images/buttons/rewards_2.png', 'styles/X-TremeRed/theme/images/buttons/stats_2.png')">
<center>
<table cellspacing="0" width="100%">
<tr>
<td ALIGN="center">{I_FRAME}</td>
</tr>
<tr>
<td valign="top" align="center">
<a href="http://www.come2play.com/player_gallery_frame.asp?channel_id=33202&t=1" target="galleryframe" onMouseOver="MM_swapImage('games','','styles/X-TremeRed/theme/images/buttons/games_2.png',1)" onMouseOut="MM_swapImgRestore()">
<img src="styles/X-TremeRed/theme/images/buttons/games_4.png" alt="games" name="games" width="100" height="40" border="0"></a>
<a href="http://www.come2play.com/player_gallery_frame.asp?channel_id=33202&t=2" target="galleryframe" onMouseOver="MM_swapImage('Player','','styles/X-TremeRed/theme/images/buttons/players_2.png',1)" onMouseOut="MM_swapImgRestore()">
<img src="styles/X-TremeRed/theme/images/buttons/player_1.png" alt="Players" name="Player" width="100" height="40" border="0"></a>
<a href="http://www.come2play.com/player_gallery_frame.asp?channel_id=33202&t=3" target="galleryframe" onMouseOver="MM_swapImage('rewards','','styles/X-TremeRed/theme/images/buttons/rewards_2.png',1)" onMouseOut="MM_swapImgRestore()">
<img src="styles/X-TremeRed/theme/images/buttons/rewards_1.png" alt="Rewards" name="rewards" width="100" height="40" border="0"></a>
<a href="http://www.come2play.com/player_gallery_frame.asp?channel_id=33202&t=4" target="galleryframe" onMouseOver="MM_swapImage('statistics','','styles/X-TremeRed/theme/images/buttons/stats_2.png',1)" onMouseOut="MM_swapImgRestore()">
<img src="styles/X-TremeRed/theme/images/buttons/stats_1.png" alt="statistics" name="statistics" width="100" height="40" border="0"></a>
</td>
</tr>
</table>
</center>
As you can see i called target="galleryframe" works perfect in FF and on testing in IE8
But not on the main site, somebody knows a soluttion?
many thnx,
Jiheld.
1.423 views