PDA

View Full Version : Iframe help.


jaffaman
03-07-2009, 10:37 AM
Ok i know nothing about coding what so ever so be gentle with me lol as there is no server status block for the PC game Black Hawk Down for vBulletin/vBadvanced i am trying to use an Iframe.

What i am trying to do is get a Iframe to point to a part of a page.

The page i am trying to show is http://www.grimreapers.co.uk/csabhdstats/index.php?action=servers2&id=1

This is the code i am trying to use.
<iframe src="http://www.grimreapers.co.uk/csabhdstats/index.php?action=servers2&id=1#status" height="378px" width="200px" scrolling="no">
Alternative text for browsers that do not understand IFrames.
</iframe>


This is the link to the Iframe http://www.grimreapers.co.uk/bhdss.html

This is the html code of the page i am trying to point to.

<block name="server_info">

<br>

<table border="0" cellspacing="0" cellpadding="7" width="200">
<tr>
<td valign="top" align="center">

<table width="100%">
<tr class="tableheader"><td colspan="2"></td></tr>
<tr class="tablerow1"><td width="70">Game Name</td><td width="100">{server_name}</td></tr>
<tr class="tablerow1">
<td>Map Age </td>
<td>{age}</td>
</tr>
<tr class="tablerow2"><td>Map Name</td><td>{map_name}</td></tr>
<tr class="tablerow1"><td>Game Type</td><td>{game_type}</td></tr>
<tr class="tablerow2"><td>Players</td><td>{players}</td></tr>
<tr class="tablerow1"><td>Dedicated</td><td>{dedicated}</td></tr>
<tr class="tablerow2"><td>Game</td><td>{game}</td></tr>
</table>
<CENTER><IMG SRC="http://www.grimreapers.co.uk/csabhdstats/templates/online2.gif" BORDER="0"></CENTER>
<td class="window1" align="center">
<tr><a name="status"></a>
<table border="0" cellSpacing="1" cellPadding="3" class="border" width="180px" align="center">
<td class="title1" align="center">
<br>
</td>
<td valign="top" align="center">


<table border="0" cellspacing="0" cellpadding="3" width="25">
<tr class="tableheader">

</tr>
<loop name="players">
<tr class="{players.class}" height="25">
<td width="110" valign="middle" align="center">{players.weapon_image}</td>
<td width="100"><font class="{players.team}"><b>{players.name}</b></font></td>

</tr>
</loop name="players">

</table>

</td>
</tr>
</table>
</block name="server_info">

No matter where i put the <a name="status"></a> it will not show the part of the page i want ?

This is what i get http://img.photobucket.com/albums/v297/jaffaman/ss2.jpg

This is what i want to get http://img.photobucket.com/albums/v297/jaffaman/ss1.jpg

Thanks for any help in advance.

mmoore5553
03-09-2009, 01:31 AM
the iframe is doing exactly what you want ...when you call an external page it loads it into it. That is what you have done. It is pulling the whole page and you have it centered. If you change to right you will see it will move all the text. you need to just put the actually code stats in the frame .