stealthx Posted November 30, 2007 Share Posted November 30, 2007 Hi all, As mentioned in title, i need help with news feeding from phpbb as i seem to have a problem with my tables. My problem is illustrated in the screenshot i took at http://img521.imageshack.us/img521/3830/helpjq7.gif If need be, My php script is below <HEAD><TITLE>Seraph Ragnarok Online : SeraphRO.com Where Fun Never Ends!</TITLE> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <META http-equiv=cache-control content=public> <META http-equiv=Content-Language content=en-gb> <META content="New Server! All new classes, maps, skills, monsters, dungeons,quests. Custom wings, headgears, weapons, quests and many more! Powered by lagless dedicated server." name=description> <META content="seraph, seraphro, anime, sro, private server, custom wings, homunculus, quest, ro database, game server, ragnarok online, top list, game, game toplist, game news, game sites, gaming sites, links, 100, 200" name=keywords> <META content=index,follow name=robots> <LINK href="style.css" type=text/css rel=stylesheet> </HEAD> <p> <?php /* Server Status Script */ include("server_status.php"); ?> <script type="text/javascript" src="javascript_functions.php"></script> <div id="topbar"> <table border="0" cellspacing="0"> <tr> <td colspan="2" align="center" valign="top" bgcolor="#000000" style="padding: 3px;"> <div class="text_grey">[<a title="Click here to close this" href="javascript:void(0);" onClick="document.getElementById('topbar').style.visibility = 'hidden';">X</a>] Vote For Us [<a title="Click here to close this" href="javascript:void(0);" onClick="document.getElementById('topbar').style.visibility = 'hidden';">X</a>]</div></td> </tr> <tr> <td align="center" bgcolor="#000000" valign="top" style="padding: 3px;"> </td> </tr> </table> </div> <table align="center" width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <TD background=img/header.jpg colSpan=5 height=242></TD></TR> </TABLE> <TABLE height=27 cellSpacing=0 cellPadding=0 width=800 align=center border=0> <TBODY> <TR> <TD width=800 height=27><IMG height=27 src="img/bar_left.gif" width=3><A href="#"><IMG height=27 src="img/home.gif" width=73 border=0></A><IMG height=27 src="img/bar_middle.gif" width=2><A href="#"><IMG height=27 src="img/server_info.gif" width=113 border=0></A><IMG height=27 src="img/bar_middle.gif" width=2><A href="#"><IMG height=27 src="img/downloads.gif" width=111 border=0></A><IMG height=27 src="img/bar_middle.gif" width=2><A href="#"><IMG height=27 src="img/register.gif" width=96 border=0></A><IMG height=27 src="img/bar_middle.gif" width=2><A href="#"><IMG height=27 src="img/control_panels.gif" width=135 border=0></A><IMG height=27 src="img/bar_middle.gif" width=2><A href="#"><IMG height=27 src="img/donate.gif" width=86 border=0></A><IMG height=27 src="img/bar_middle.gif" width=2><A href="http://seraphro.com/testforum"><IMG height=27 src="img/forum.gif" width=86 border=0></A><IMG height=27 src="img/bar_middle.gif" width=2><A href="#"><IMG height=27 src="img/staff.gif" width=80 border=0></A><IMG height=27 src="img/bar_right.gif" width=3></TD></TR></TBODY></TABLE> <TABLE cellSpacing=0 cellPadding=5 width=800 align=center border=0> <TBODY> <TR> <TD class=sub_menu width=800 background=img/bg2.gif>LALALALA</TD></TR></TBODY></TABLE> <TABLE cellSpacing=0 cellPadding=0 width=800 align=center border=0> <TBODY> <TR> <TD class=page_body width=800> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD class=text_grey vAlign=top width=590> // PHPBB EXPORT SCRIPT STARTS HERE <? require("funcs.php"); $res = getlastposts($numposts); /* debug_array($res); */ ?> <? for($i=0; $i<count($res); $i++) { ?> <tr> <td> <table width="600" align="left" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="16" height="16" align="left" valign="top"><img src="img/cat_top_ls.gif" width="16" height="16" alt=" " border="0" /></td> <td width="100%" valign="middle" class="tcat"> <div align="left"> <a target="_blank" href="<?=getposturl($res[$i][pst_postid]) ?>"><?=$res[$i][tpc_title] ?></a> <br><? if ($res[$i][pst_postsub]!=$res[$i][tpc_title] && $res[$i][pst_postsub]!="") { print "<b>Subject</b>: <a href=\"" . getposturl($res[$i][pst_postid]) . "\">" . $res[$i][pst_postsub] . "</a>"; } ?> </td> </div> </td> <td width="16" height="16" align="right" valign="top"><img src="img/cat_top_rs.gif" width="16" height="16" alt=" " border="0" /></td> </tr> </table> </tr> <tr> <? if ($avatarsupport==1) { ?> <td width="750"><?=get_post_text($GLOBALS['numchar'], $res[$i][pst_posttxt], $res[$i][pst_postid]) ?></td> <td width="<?=getmaxwidth() ?>" align="right"><img src="<?=getavatar($res[$i][usr_avatar], $res[$i][usr_avtype]) ?>" alt="<?=$res[$i][usr_username] ?>s avatar" border="0"></td> <? } else { ?> <table width="600" align="left" border="0" cellpadding="0" cellspacing="0" class="midrow"> <tr><td width="600" align="left" class="midrow"> <?=fmt_date($res[$i][pst_posttime], datefmt) ?> by <a target="_blank" href="<?=getprofileurl($res[$i][usr_userid]) ?>"><?=$res[$i][usr_username] ?></a><br/> <br/><div align="left" class="midrow2"> <?=get_post_text($GLOBALS['numchar'], $res[$i][pst_posttxt], $res[$i][pst_postid]) ?> </div></td></tr> <td width="600" height="28" align="left" class="btm"> <div align="left"> <a target="_blank" href="<?=gettopicurl($res[$i][pst_postid]) ?>"><?=$res[$i][tpc_replies] ?> Comments</a></td> </div> <? } ?> </tr> <? } ?> </TD> <TD width=10></TD> <TD vAlign=top width=180> <TABLE cellSpacing=0 cellPadding=0 width=180 border=0> <TBODY> <TR> <table width="180" height="99" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"> <img src="img/stats_01.gif" width="180" height="23" alt=""></td> </tr> <tr> <td rowspan="7"> <img src="img/left.gif" width="97" height="70" alt=""></td> <td> <img src="img/right2.gif" width="83" height="13" alt=""></td> </tr> <tr> <td> <?php echo $server_status; ?></td> </tr> <tr> <td> <img src="img/right1.gif" width="83" height="15" alt=""></td> </tr> <tr> <td> <?php echo $server_status; ?></td> </tr> <tr> <td> <img src="img/right1.gif" width="83" height="15" alt=""></td> </tr> <tr> <td> <?php echo $server_status; ?></td> </tr> <tr> <td> <img src="img/right3.gif" width="83" height="12" alt=""></td> </tr> <tr> <td colspan="2"> <img src="img/under.gif" width="180" height="6" alt=""></td> </tr> </table> </tr> </table> </table> <table> <TABLE height=30 cellSpacing=0 cellPadding=0 width=800 align=center border=0> <TD class=footer vAlign=top align=middle width=800 background=img/footer.gif height=30><IMG height=2 src="img/spacer.gif"><BR>Copyright © 2007 SeraphRO.Com :: All rights reserved :: Graphics Coypyright Gravity Co Ltd. :: Design Copyright Stealth</TD></TABLE><BR class=text_grey> Hope to solve this ASAP. Thanks in advance, Jaryl (Stealth) Quote Link to comment https://forums.phpfreaks.com/topic/79522-php-news-feedphpbb-and-table-help-needed/ Share on other sites More sharing options...
MadTechie Posted November 30, 2007 Share Posted November 30, 2007 what is the problem? from the screen shot it looks like a HTML/CSS problem not a php one.. Quote Link to comment https://forums.phpfreaks.com/topic/79522-php-news-feedphpbb-and-table-help-needed/#findComment-402784 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.