OPENwolf2009 wrote:can you show more than 5 ?
includes/top_five.php
FIND
every instance of the number 5
REPLACE WITH
any number you want.
May look odd though if you pick 10 topics and 5 users eg.
OPENwolf2009 wrote:can you show more than 5 ?
you can try this for the top_five_body.html for your styleslammed83mazda wrote:I uploaded the subsilver2 html file and its the same thing. I need the borders around it like iemonster. Looks very professional that way. I really like this mod. Thanks for the quick reply.
Code: Select all
<br clear="all" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="18" height="18"><img src="./styles/AeroBlue/theme/images/tl.png" width="18" height="18" alt="" /></td>
<td height="18" style="background:url('./styles/AeroBlue/theme/images/tm.png');"></td>
<td width="18" height="18"><img src="./styles/AeroBlue/theme/images/tr.png" width="18" height="18" alt="" /></td>
</tr>
<tr>
<td width="18" style="background:url('./styles/AeroBlue/theme/images/ml.png');"></td>
<table class="tablebg" width="100%" cellspacing="0">
<tr>
<th width="40%">{L_NEWEST_TOPICS}</th>
<th width="20%">{L_TOP_FIVE_ACTIVE}</th>
<th width="40%">{L_TOP_FIVE_NEWEST}</th>
</tr>
<tr>
<td class="row1"><!-- BEGIN hot_topic_row --><span class="genmed"><a href="{hot_topic_row.U_TOPIC}">{hot_topic_row.TOPIC_TITLE}</a> {hot_topic_row.USERNAME_FULL}</span><br /><!-- END hot_topic_row --></td>
<td class="row1"><!-- BEGIN top_five_active --><span class="genmed">{top_five_active.USERNAME_FULL} {L_POSTS}: <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a></span><br /><!-- END top_five_active --></td>
<td class="row1"><!-- BEGIN top_five_newest --><span class="genmed">{top_five_newest.USERNAME_FULL} {L_JOINED}: {top_five_newest.REG_DATE}</span><br /><!-- END top_five_newest --></td>
</tr>
</table>
</td>
<td width="18" style="background:url('./styles/AeroBlue/theme/images/mr.png');"></td>
</tr>
<tr>
<td width="18" height="18" align="right"><img src="./styles/AeroBlue/theme/images/bl.png" width="18" height="18" alt="" /></td>
<td height="18" style="background:url('./styles/AeroBlue/theme/images/bm.png');"></td>
<td width="18" height="18"><img src="./styles/AeroBlue/theme/images/br.png" width="18" height="18" alt="" /></td>
</tr>
</table>
OPENbarryoneoff wrote:Great mod. Easy to install. Thanks.
Just one question: Would it be difficult to change the position to the top of the forum rather than the bottom?
Code: Select all
<!-- INCLUDE top_five_body.html -->
Code: Select all
<!-- INCLUDE forumlist_body.html -->
ranks are cached, you could try the way they are displayed in viewtopic.phpSnorlaxative wrote:What would I need to edit to display ranks (first, second, etc) next to the usernames? (Example in red)
OPENNotam wrote:is it possible to exclude any forum while getting the posts
Code: Select all
$sql_and = ' AND ' . $db->sql_in_set('p.forum_id', $forum_array, true);
Code: Select all
$sql_and = ' AND ' . $db->sql_in_set('p.forum_id', $forum_array, true) . ' OR p.forum_id <> some_forum_number';
Code: Select all
foreach ($user_posts as $row)
{
$username_string = get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);
Code: Select all
$place = 0;
foreach ($user_posts as $row)
{
$place++;
$username_string = '<span style="color:red;"> ' . $place . '</span> ' . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);