PDA

View Full Version : Table Recreates itself for every 'master' query. Problem with template or index.php?


Antorz
10-02-2002, 08:32 PM
This is in reguards to Tech's 'Latest XX Threads on Forumhome Page' Hack..

Hack works great, but php modifications of it aren't going to hot..

Basicaly I tried to do something close to the modification he posted a screenshot for....

Original Hack screenshot, no modifications: https://vborg.vbsupport.ru/attachment.php?s=&postid=296738

Hack with modifications:
https://vborg.vbsupport.ru/attachment.php?s=&postid=296739


This is the code I have in there right now trying to accomplish that..


<table cellpadding="0" cellspacing="0" border="0" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" width="100%" align="center">
<tr>
<td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
<td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="1">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif">
<B><normalfont>Statistics</normalfont></B></td>
</tr>
</table>
</td>
</tr>
<tr>


<TD bgcolor="#1C5780" width="100%">
<smallfont>
<b>Top 5 New Thread Replys:</b>
<hr>

<table>
<tr>
<td width=65%><smallfont>Thread Names:</smallfont></td>
<td width=25%><smallfont>Last Posters:</smallfont></td>
<td width="10%"><smallfont>Replies:</smallfont></td>
<td align="right"><smallfont>Views:</smallfont></td>
</tr>
<tr>
<td width=65%><smallfont> <a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]"><b>$thread[title]</b></a></smallfont></td>
<td width=25%><smallfont><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$thread[postuserid]">$thread[postusername]</a></smallfont></td>
<td width="10%"><smallfont>$thread[views]</smallfont></td>
<td align="right"><smallfont>$thread[replycount]</smallfont></td>
</tr>
</table>
</smallfont></td>
</tr>
</table>



I'm not sure what I'm doing wrong, if it's coding in the index.php or in the threadbits template..

Basicaly it just takes that table, and for each "latest XXX thread" it makes a whole new 'complete' table for it...




Any support would be greatly apreciated.
Thanks
-Antorz