 |
boardom b2 message board
|
View previous topic :: View next topic |
Author |
Message |
mirukusheeki
Joined: 13 Jan 2005 Posts: 2
|
Posted: Thu Jan 13, 2005 9:49 pm Post subject: Iframe |
|
|
Hi there!
I'm a PHP noob, but I'm pretty good at HTML. I've inserted an iframe into my index.php document that points to home.php. Unfortunately, home.php doesn't want to display my entries, so I continue to get different types of errors.
Right now I left it as is to get some help, so this is what index.php and home.php look like.
Index.php:
Code: | <?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>update bucket. updates.ws.nu</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<link href="style.css" type="text/css" rel="stylesheet">
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="701" height="536" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="14">
<img src="images/reirei_01.gif" width="700" height="108" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="108" alt=""></td>
</tr>
<tr>
<td rowspan="6">
<img src="images/reirei_02.gif" width="13" height="427" alt=""></td>
<td colspan="2">
<a href="http://updates.whisperslip.nu">
<img src="images/index.gif" width="66" height="38" border="0" alt=""></a></td>
<td>
<a href="b2login.php">
<img src="images/login.gif" width="68" height="38" border="0" alt=""></a></td>
<td>
<a href="contact.html">
<img src="images/contact.gif" width="87" height="38" border="0" alt=""></a></td>
<td colspan="5" rowspan="2">
<img src="images/reirei_06.gif" width="164" height="42" alt=""></td>
<td>
<img src="images/wsdotnu.gif" width="105" height="38" alt=""></td>
<td>
<img src="images/htkorg.gif" width="128" height="38" alt=""></td>
<td>
<img src="images/muezk.gif" width="54" height="38" alt=""></td>
<td rowspan="6">
<img src="images/reirei_10.gif" width="15" height="427" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="38" alt=""></td>
</tr>
<tr>
<td colspan="4" rowspan="3">
<img src="images/reirei_11.gif" width="221" height="18" alt=""></td>
<td colspan="3" rowspan="5">
<img src="images/reirei_12.gif" width="287" height="389" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="4" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/reirei_13.gif" width="114" height="14" alt=""></td>
<td>
<a href="#" onMouseover="scrollspeed=-5" onMouseout="scrollspeed=0">
<img src="images/up.gif" width="16" height="12" border="0" alt=""></a></td>
<td rowspan="2">
<img src="images/reirei_15.gif" width="12" height="14" alt=""></td>
<td>
<a href="#" onMouseover="scrollspeed=5" onMouseout="scrollspeed=0">
<img src="images/down.gif" width="16" height="12" border="0" alt=""></a></td>
<td rowspan="2">
<img src="images/reirei_17.gif" width="6" height="14" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="12" alt=""></td>
</tr>
<tr>
<td>
<img src="images/reirei_18.gif" width="16" height="2" alt=""></td>
<td>
<img src="images/reirei_19.gif" width="16" height="2" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="2" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/reirei_20.gif" width="4" height="371" alt=""></td>
<td colspan="8">
<table id="Table_02" width="381" height="353" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<iframe id="iframe" name="frame" src="home.php" width=381 height=353 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe>
</tr>
</table></td>
<td>
<img src="images/spacer.gif" width="1" height="353" alt=""></td>
</tr>
<tr>
<td colspan="8">
<img src="images/reirei_22.gif" width="381" height="18" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="18" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="4" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="62" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="68" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="87" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="114" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="12" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="16" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="6" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="105" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="128" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="54" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="15" height="1" alt=""></td>
<td></td>
</tr>
</table>
</body>
</html> |
Home.php:
Code: | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
A:link
{ text-decoration:none; color:#fefefe; font-weight:bold }
A:visited
{ text-decoration:none; color:#fefefe; font-weight:bold }
A:active
{ text-decoration:none; color:#fefefe; font-weight:bold }
A:hover
{ text-decoration:none; color:#fefefe; font-weight:bold }
.title { text-align:left; line-height:normal; font-family:Georgia; text-transform:uppercase; color:#fefefe; font-size:20px; font-weight:bold }
.content { text-align:justify; line-height:normal; font-family:Arial; color:#1D86B7; font-size:12px }
.contentheader { text-align:center; line-height:normal; font-family:Times New Roman; text-transform:uppercase; color:#fefefe; font-size:16px; font-weight:bold }
body
{ margin:0px;
background-color:#A0DCF8 }
</style>
</head>
<body>
<table width="100%" cellpadding="3" cellspacing="3">
<tr valign="top">
<td class="content">
<!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_date("d.m.y","<h1>","</h1>"); ?>
<p>
<?php permalink_anchor(); ?>
<strong><?php the_title(); ?></strong> (category: <strong><?php the_category() ?></strong>)<br />
<?php the_content(); ?><?php link_pages("<br />Pages: ","<br />","number") ?>
<br />
<em>posted by <strong><?php the_author() ?></strong> @ <a href="<?php permalink_link() ?>"><?php the_time() ?></a></em>
<br />
<a href="<?php comments_link() ?>"><?php comments_number("no comments", "1 comment", "% comments") ?></a>
</p>
<?php include ("b2comments.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php } ?>
</td>
</tr>
</table>
</body>
</html>
<!--DO NOT REMOVE BELOW SCRIPT. IT SHOULD ALWAYS APPEAR AT THE VERY END OF YOUR CONTENT-->
<script language="JavaScript1.2">
//Scrollable content III- By http://www.dynamicdrive.com
var speed, currentpos=curpos1=0,alt=1,curpos2=-1
function initialize(){
if (window.parent.scrollspeed!=0){
speed=window.parent.scrollspeed
scrollwindow()
}
}
function scrollwindow(){
temp=(document.all)? document.body.scrollTop : window.pageYOffset
alt=(alt==0)? 1 : 0
if (alt==0)
curpos1=temp
else
curpos2=temp
window.scrollBy(0,speed)
}
setInterval("initialize()",10)
</script> |
My website is http://updates.whisperslip.nu
Any help would be appreciated.  |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 889 Location: Oslo, Norway
|
Posted: Thu Jan 13, 2005 10:41 pm Post subject: |
|
|
<?php /* Don't remove this line, it calls the b2 function files ! */ $blog=1; include ("blog.header.php"); ?>
This goes to the file where your blog resides, USUALLY index.php.
In your case it's home.php. _________________ Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
mirukusheeki
Joined: 13 Jan 2005 Posts: 2
|
Posted: Thu Jan 13, 2005 10:50 pm Post subject: |
|
|
Wow, thanks!
I'm such a dummie.  |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 889 Location: Oslo, Norway
|
Posted: Fri Jan 14, 2005 10:14 am Post subject: |
|
|
Please delete the codes above now..
And remember: proof-reading code gets you further on your own!
Heck, last night I had a positioned div set to size: 100%; and I couldn't figure why it wouldn't work:p _________________ Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2 © 2001, 2002 phpBB Group
|