MyBB Tutorials

Stickies Page [Like Nulled] {NO HIDE}

Submitted by Harley, , Thread ID: 42222

Thread Closed
30-07-2017, 11:06 AM
This post was last modified: 08-08-2017, 07:43 AM by Harley
#1
For this tutorial I will use the Pages plugin:https://community.mybb.com/mods.php?action=view&pid=936


PHP Code:
<html>
<
head>
<
title>Forum Stickies</title>
</
head>
</
html>

<?
php
define
("IN_MYBB"1);
require_once 
"./global.php";
require_once 
MYBB_ROOT "inc/class_parser.php";

$query $db->query("SELECT * FROM mybb_threads WHERE sticky=1");
while(
$threads $db->fetch_array($query))
{
  
$stickies[] = $threads;



for( 
$i$i count($stickies) ; $i++ )
{
 echo 
"tid: ",$stickies[$i]['tid'];
 echo 
"<br/>";
 echo 
"username: ",$stickies[$i]['username'];
 echo 
"<br/>";
 echo 
"closed: ",$stickies[$i]['closed'];
 echo 
"<br/>";
 echo 
"subject: ",$stickies[$i]['subject'];
 echo 
"<br/>";
 echo 
"<br/>";
}
?>

Users browsing this thread: