not really errors with phpbb fetch itself, but trying to change the layout of the news template bit, but whenever paste my own layout into it and then move the bits over e.g. code that i think is the title and save it to see if it works i get an error saying error on line 266 etc...
what i'm really trying to do is replace the template for
Quote:
<!-- NEWS -->
<?php for ($i = 0; $i < count($news); $i++) { ?>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th class="thTop" height="28"><?php echo $news[$i]['topic_title']; ?><?php if ($news[$i]['topic_trimmed']) { echo '...'; } ?></th>
</tr>
<tr>
<td class="row1" align="left" width="100%">
<span class="gensmall">
Posted by
<a href="<?php echo append_sid($phpbb_root_path . 'profile.php?mode=viewprofile&u=' . $news[$i]['user_id']); ?>">
<?php echo $news[$i]['username']; ?>
</a>
on <?php echo $news[$i]['date']; ?> at <?php echo $news[$i]['time']; ?>
</span>
<span class="gen">
<hr size="1"/>
<?php echo $news[$i]['post_text']; ?><?php if ($news[$i]['trimmed']) { echo '...'; } ?>
</span>
<hr size="1"/>
<span class="gensmall">
<div align="right"><font color="#333333" face="Verdana" size="1">(<?php echo $news[$i]['topic_replies']; ?> )
<a href="<?php echo append_sid($phpbb_root_path . 'viewtopic.php?t=' . $news[$i]['topic_id']); ?>">
Comment<?php if ($news[$i]['topic_replies'] != 1) { echo 's'; } ?></a></font></div>
</span>
</td>
</tr>
</table>
<p />
<?php } ?>
|
with my own template - keeping the codes so that they load up with my template.
Quote:
<!-- news updates starts -->
<table cellSpacing="0" cellPadding="0" width="542" border="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td width="10">
<img alt src="updatetop_b_1.gif" border="0" width="10" height="29"></td>
<td width="461" background="updatetop_b_2.gif" height="29">
<table cellSpacing="0" cellPadding="0" width="461" border="0">
<tr>
<td width="20"> </td>
<td align="left" width="215"><font face="Arial,Helvetica" size="2">
Date</font></td>
<td align="middle" width="160"><b>
<font face="Arial,Helvetica" size="2" color="#FFFFFF">Title</font></b></td>
<td width="66"> </td>
</tr>
</table>
</td>
<td align="middle" width="61" background="update_av_bg.gif" rowSpan="2">
<img height="45" src="zeo.gif" width="45" border="1"></td>
<td width="10" background="update_av_right.gif" height="63" rowSpan="2"> </td>
</tr>
<tr>
<td vAlign="top" colSpan="2" height="34">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td width="21" background="updateside_a.gif" height="34"> </td>
<td vAlign="top" align="right" bgColor="#444444">
<font face="Arial,Helvetica" size="1"><font color="#000000">Posted
by:</font>
<font color="#FFFFFF">User</font> </font></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellSpacing="0" cellPadding="0" width="100%" bgColor="#444444" border="0">
<tr>
<td width="21" background="updateside_a.gif" height="100%"> </td>
<td bgColor="#444444">
<table cellSpacing="0" cellPadding="4" width="100%" border="0">
<tr>
<td><font face="Arial,Helvetica" size="2" color="#FFFFFF">Blah blah
blah</font></td>
</tr>
</table>
</td>
<td width="12" background="updateside_b.gif" height="100%"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellSpacing="0" cellPadding="0" width="100%" bgColor="#444444" border="0">
<tr>
<td width="21" background="updateside_a.gif" height="100%"> </td>
<td bgColor="#444444">
<table cellSpacing="0" cellPadding="4" width="100%" border="0">
<tr>
<td><b><font face="Verdana" size="1" color="#FFFFFF">Source:</font></b></td>
<td align="right">
<b>
<font face="Arial,Helvetica" size="2"> </font></b></td>
</tr>
</table>
</td>
<td width="12" background="updateside_b.gif" height="100%"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="542" height="28">
<img alt src="updatebottom.gif" border="0" width="542" height="28"></td>
</tr>
</table>
<br>
|
I really jus need help with cutting the codes out of the fetch coding..
e.g. title would = <?php for ($i = 0; $i < count($news); $i++) { ?> etc, so if i were to paste it into my layout and save portal.php it would load up using my layout and the title in it. so it could b finally used in my index.html