1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Fixes #1056 - Forum rules and statistics links added back to template and reworked for bootstrap. thread_sef removed from forum_thread database table and now generated on the fly. More testing required.

This commit is contained in:
Cameron
2015-06-17 20:09:26 -07:00
parent 1e174e2169
commit 56321dfcf7
12 changed files with 753 additions and 429 deletions

32
top.php
View File

@@ -72,18 +72,18 @@ if ($action == 'active')
{$from}, {$view}
";
if ($sql->db_Select_gen($qry))
if ($sql->gen($qry))
{
$text = "<div style='text-align:center'>\n<table style='width:auto' class='fborder'>\n";
$gen = e107::getDateConvert();
$text = "<div>\n<table style='width:auto' class='table fborder'>\n";
$gen = e107::gethateConvert();
$text .= "<tr>
<td style='width:5%' class='forumheader'>&nbsp;</td>
<td style='width:45%' class='forumheader'>".LAN_1."</td>
<td style='width:15%; text-align:center' class='forumheader'>".LAN_2."</td>
<td style='width:5%; text-align:center' class='forumheader'>".LAN_3."</td>
<td style='width:5%; text-align:center' class='forumheader'>".LAN_4."</td>
<td style='width:25%; text-align:center' class='forumheader'>".LAN_5."</td>
<th style='width:5%' class='forumheader'>&nbsp;</th>
<th style='width:45%' class='forumheader'>".LAN_1."</th>
<th style='width:15%; text-align:center' class='forumheader'>".LAN_2."</th>
<th style='width:5%; text-align:center' class='forumheader'>".LAN_3."</th>
<th style='width:5%; text-align:center' class='forumheader'>".LAN_4."</th>
<th style='width:25%; text-align:center' class='forumheader'>".LAN_5."</th>
</tr>\n";
while ($row = $sql->db_Fetch(MYSQL_ASSOC))
@@ -155,17 +155,17 @@ if ($action == 'top')
";
// $top_forum_posters = $sql->db_Select("user", "*", "`user_forums` > 0 ORDER BY user_forums DESC LIMIT ".$from.", ".$view."");
$text = "
<div style='text-align:center'>
<table style='width:95%' class='fborder'>
<div>
<table style='width:95%' class='table table-striped fborder'>
<tr>
<td style='width:10%; text-align:center' class='forumheader3'>&nbsp;</td>
<td style='width:50%' class='forumheader3'>".TOP_LAN_1."</td>
<td style='width:10%; text-align:center' class='forumheader3'>".TOP_LAN_2."</td>
<td style='width:30%; text-align:center' class='forumheader3'>".TOP_LAN_6."</td>
<th style='width:10%; text-align:center' class='forumheader3'>&nbsp;</th>
<th style='width:50%' class='forumheader3'>".TOP_LAN_1."</th>
<th style='width:10%; text-align:center' class='forumheader3'>".TOP_LAN_2."</th>
<th style='width:30%; text-align:center' class='forumheader3'>".TOP_LAN_6."</th>
</tr>\n";
$counter = 1 + $from;
$sql2 = e107::getDb('sql2');
if ($sql2->db_Select_gen($qry))
if ($sql2->gen($qry))
{
while ($row = $sql2->db_Fetch(MYSQL_ASSOC))
{