php/phpbb problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SirJustice
Forum Newbie
Posts: 1
Joined: Wed Mar 31, 2004 8:39 pm

php/phpbb problem

Post by SirJustice »

http://www.beatlesabbeyrd.com/viewtopic.php?t=11


If you look at that topic, and the way posts come up, you'll see it's a little weird. For some reason it tells everyone who's made topics in the post at the top with links to their posts.

If someone could help me get it back to the original look and feel of phpbb


Sorry the code will be long, but I don't know much php to know where the problem lies.

Code: Select all

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr> 
	<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="&#123;U_VIEW_TOPIC&#125;">&#123;TOPIC_TITLE&#125;</a><br />
	  <span class="gensmall"><b>&#123;PAGINATION&#125;</b></span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr> 
	<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="&#123;U_POST_NEW_TOPIC&#125;"><img src="&#123;POST_IMG&#125;" border="0" alt="&#123;L_POST_NEW_TOPIC&#125;" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="&#123;U_POST_REPLY_TOPIC&#125;"><img src="&#123;REPLY_IMG&#125;" border="0" alt="&#123;L_POST_REPLY_TOPIC&#125;" align="middle" /></a></span></td>
  </tr>
  <tr>
	<td align="left" valign="middle" width="100%"><span class="nav"><a href="&#123;U_INDEX&#125;" class="nav">&#123;L_INDEX&#125;</a>&nbsp;&raquo;&nbsp;<a href="&#123;U_VIEW_FORUM&#125;" class="nav">&#123;FORUM_NAME&#125;</a>&nbsp;&raquo;&nbsp;<a class="nav" href="&#123;U_VIEW_TOPIC&#125;">&#123;TOPIC_TITLE&#125;</a></span></td>
  </tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr> 
  		<td class="tableborder">

			<table width="100%" cellspacing="1" cellpadding="3" border="0">
				<tr align="right">
					<td class="catHead" colspan="5" ><span class="nav"><a href="&#123;U_VIEW_OLDER_TOPIC&#125;" class="nav">&#123;L_VIEW_PREVIOUS_TOPIC&#125;</a> :: <a href="&#123;U_VIEW_NEWER_TOPIC&#125;" class="nav">&#123;L_VIEW_NEXT_TOPIC&#125;</a> &nbsp;</span></td>
				</tr>
				&#123;POLL_DISPLAY&#125; 
				<tr>
					<th class="thLeft" width="150" nowrap="nowrap">&#123;L_AUTHOR&#125;</th>
					<th class="thRight" nowrap="nowrap">&#123;L_MESSAGE&#125;</th>
				</tr>
				<!-- BEGIN postrow -->
				<tr> 
<a href="javascript:emoticon('&#1111;b]&#123;postrow.POSTER_NAME&#125;&#1111;/b], ')">&#123;postrow.POSTER_NAME&#125;</a>

					<td class="&#123;postrow.ROW_CLASS&#125;" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="100%">&nbsp;<a href="&#123;postrow.U_MINI_POST&#125;"><img src="&#123;postrow.MINI_POST_IMG&#125;" alt="&#123;postrow.L_MINI_POST_ALT&#125;" title="&#123;postrow.L_MINI_POST_ALT&#125;" border="0" /></a>&nbsp;<span class="postdetails">&#123;L_POSTED&#125;: &#123;postrow.POST_DATE&#125;<span class="genmed">&nbsp;</span>&nbsp; &nbsp;&#123;L_POST_SUBJECT&#125;: &#123;postrow.POST_SUBJECT&#125;</span></td>
							<td valign="top" nowrap="nowrap"><table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td width="100%" nowrap="nowrap">&#123;postrow.QUOTE_IMG&#125; &#123;postrow.EDIT_IMG&#125; &#123;postrow.DELETE_IMG&#125; &#123;postrow.IP_IMG&#125;</td></tr></table></td>
						</tr>
						<tr> 
							<td colspan="2"><hr /></td>
						</tr>
						<tr>
							<td colspan="2"><span class="postbody">&#123;postrow.MESSAGE&#125;</span>&#123;postrow.ATTACHMENTS&#125;<span class="postbody">&#123;postrow.SIGNATURE&#125;</span><span class="gensmall">&#123;postrow.EDITED_MESSAGE&#125;</span></td>
						</tr>
					</table></td>
				</tr>
				<tr> 
					<td class="&#123;postrow.ROW_CLASS&#125;" width="150" align="left" valign="middle"><span class="gensmall">&nbsp;<a href="#top" class="gensmall">&#123;L_BACK_TO_TOP&#125;&nbsp;&raquo;</a></span></td>
					<td class="&#123;postrow.ROW_CLASS&#125;" width="100%" height="28" valign="bottom" nowrap="nowrap">
					
						<table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
							<tr> 
								<td valign="middle" nowrap="nowrap"><table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td width="100%" nowrap="nowrap">&#123;postrow.PROFILE_IMG&#125; &#123;postrow.PM_IMG&#125; &#123;postrow.EMAIL_IMG&#125; &#123;postrow.WWW_IMG&#125; &#123;postrow.AIM_IMG&#125; &#123;postrow.YIM_IMG&#125; &#123;postrow.MSN_IMG&#125; &#123;postrow.ICQ_IMG&#125;</td></tr></table></td>
								 &#123;postrow.BUDDY_IMG&#125;

							</tr>
						</table>
					
					</td>
				</tr>
				<tr> 
					<td class="row3" colspan="2" height="1"><img src="templates/Solaris/images/spacer.gif" alt="" width="1" height="1" /></td>
				</tr>
				<!-- END postrow -->
	<tr align="center"> 
		<td class="row1" colspan="2" >
		&#123;QUICKREPLY_OUTPUT&#125;
		</td>
	</tr>


				<tr align="center"> 
					<td class="catBottom" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
						<tr><form method="post" action="&#123;S_POST_DAYS_ACTION&#125;">
							<td align="center"><span class="gensmall">&#123;L_DISPLAY_POSTS&#125;: &#123;S_SELECT_POST_DAYS&#125;&nbsp;&#123;S_SELECT_POST_ORDER&#125;&nbsp;<input type="submit" value="&#123;L_GO&#125;" class="liteoption" name="submit" /></span></td>
						</form></tr>
					</table></td>
				</tr>
			</table>
			
  		</td>
	</tr>
</table>  			

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="middle" width="100%" colspan="2"><span class="nav"><a href="&#123;U_INDEX&#125;" class="nav">&#123;L_INDEX&#125;</a>&nbsp;&raquo;&nbsp;<a href="&#123;U_VIEW_FORUM&#125;" class="nav">&#123;FORUM_NAME&#125;</a>&nbsp;&raquo;&nbsp;<a class="nav" href="&#123;U_VIEW_TOPIC&#125;">&#123;TOPIC_TITLE&#125;</a></span></td>
  </tr>
  <tr>
	<td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="&#123;U_POST_NEW_TOPIC&#125;"><img src="&#123;POST_IMG&#125;" border="0" alt="&#123;L_POST_NEW_TOPIC&#125;" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="&#123;U_POST_REPLY_TOPIC&#125;"><img src="&#123;REPLY_IMG&#125;" border="0" alt="&#123;L_POST_REPLY_TOPIC&#125;" align="middle" /></a></span></td>  
	<td align="right" valign="top" nowrap="nowrap"><span class="gensmall">&#123;S_TIMEZONE&#125;</span><br /><span class="nav">&#123;PAGINATION&#125;</span></td>
  </tr>
  <tr>
	<td align="left" colspan="3"><span class="nav">&#123;PAGE_NUMBER&#125;</span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
  <tr> 
	<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">&#123;S_WATCH_TOPIC&#125;</span><br />
	  &nbsp;<br />
	  &#123;S_TOPIC_ADMIN&#125;</td>
	<td align="right" valign="top" nowrap="nowrap">&#123;JUMPBOX&#125;<span class="gensmall">&#123;S_AUTH_LIST&#125;</span></td>
  </tr>
</table>

Thanks to anyone who helps
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

i didn't even look trhought tha code because im pretty sure it does lie there. Its witht eh mysql SELECT statement. It has them ORDER BY date DESC, and the DESC should eb ASC. So search around int he code for soemthing like that, and change the DESC to ASC, and see if it works!
Post Reply