PDA


View Full Version : Display PHP pages within VBAdvanced?


jazba
02-22-2006, 03:16 AM
I created a new template as follows:

==========================================================
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet]Request A Song<!-- Module Title Here --></strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">

<!-- Content for your module goes here -->
<script type="text/javascript">
function autoResize() {
var dest = document.getElementById('container');
var source = window.frames[0].document.body.innerHTML;
dest.innerHTML = source
} </script>
<div id=container>
<iframe onload="autoResize()" name="I1" src="http://72.9.240.20/~jazba/sam/index.php" width="100%" scrolling="yes" border="0" frameborder="0">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>
</div>


</td>
</tr>
</table>
<br />
==========================================================

The resulting page is http://www.desiradio.ca/vb/index.php?page=request

The problem is that the "Request A Song" page has a smaller height rather than having 100% height.. I tried the iframe code with height=100% but that didnt work either. I want the height of that frame containing the PHP file to be 100% of the php page itself (it works fine with html pages)

The current workaround is to add height in the iframe tag , but that gives a fixed height and some php pages that are linked need scrolling.
Workaround Code:

-------------------------------
<iframe onload="autoResize()" name="I1" src="http://72.9.240.20/~jazba/sam/index.php" width="100%" height="500" scrolling="yes" border="0" frameborder="0">
------------------------------------

Please advise if there is any effective way to get the height to a 100% for PHP pages ?

Thanks

trana
02-22-2006, 12:21 PM
You might want to think about using the Webtemplates hack for this as it will probably be easier.

jazba
02-22-2006, 04:21 PM
web templates hack? can you guide me where to find it?

tomshawk
02-22-2006, 05:35 PM
http://www.vbulletin.org/forum/showthread.php?t=103076

trana
02-22-2006, 05:49 PM
That is one of the most powerful scripts for VB, love it.