Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Changing The Way MyBB Does Threads
Eric J. Offline
Junior Member
**
Posts: 8
Joined: Jan 2013
Post: #14
RE: Changing The Way MyBB Does Threads
Nvm, got it working with this:

PHP Code:
1
2
3
4
5
6
7
8
9
<?php
$id = "0";
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."threads WHERE fid = 2 ORDER BY `tid`");
$threads = '';
while($thread = $db->fetch_array($query)) {
	$id++;
	$threads .= "<a href=\"showthread.php?tid={$thread['tid']}\"><div class=\"theme-listing theme-".$id."\"><div class=\"like-count\"><i class=\"icon-heart\"></i> 0</div><div class=\"theme-name\"><div class=\"float_right\"><span><i class=\"icon-eye-open\"></i> </span>{$thread['views']}<span> | <i class=\"icon-comment\"></i> </span>{$thread['replies']}</div>".htmlspecialchars_uni($thread['subject'])."</div></div></a>";
}
?>


and the outcome:

Demo: http://mybb-themes.com/index.php

(This post was last modified: 01-05-2013 06:44 PM by Eric J..)
01-05-2013 04:32 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Changing The Way MyBB Does Threads - Eric J. - 01-05-2013 04:32 PM

 Standard Tools
Forum Jump: