ALTER TABLE b2comments ADD admin INT( 1 ) DEFAULT 0 NOT NULL;
// Post Levels 1.0 - By: Matthew Youmans - Http://y-design.sytes.net
// Any corrections/additions to this code can be submitted via email to custom_designs@hotmail.com or this hacks thread at the Boardom B2 forum (http://www.tidakada.com/board/viewforum.php?f=9).
// It is highly recommended you remove the RSS feeds from your site.
// To use this hack New users can register must be turned on in b2config.php
//First step is to update your Database
ALTER TABLE b2posts ADD data_level INT(2) DEFAULT 0 NOT NULL;
//b2-include/b2template.functions.php
**Add code
function the_level() {
global $id,$postdata;
$data_level = $postdata['data_level'];
echo $data_level;
} //This is the function to show the data level
// b2edit.php
**Insert after $post_category = intval($HTTP_POST_VARS["post_category"]);
$data_level = intval($HTTP_POST_VARS["data_level"]);
**Locate
$query = "INSERT INTO $tableposts (ID, post_author, post_date, post_content, post_title, post_category) VALUES ('0','$user_ID','$now','$content','".$post_title."','".$post_category."')";
**Replace with
$query = "INSERT INTO $tableposts (ID, post_author, post_date, post_content, post_title, post_category, data_level) VALUES ('0','$user_ID','$now','$content','".$post_title."','".$post_category."','".$data_level."')";
**Insert after $post_title = addslashes($HTTP_POST_VARS["post_title"]);
$data_level = intval($HTTP_POST_VARS["data_level"]);
** Locate
$query = "UPDATE $tableposts post_content=\"$content\", post_title=\"$post_title\", post_category=\"$post_category\"".$datemodif." WHERE ID=$post_ID";
**Replace with
$query = "UPDATE $tableposts SET data_level=\"$data_level\", post_content=\"$content\", post_title=\"$post_title\", post_category=\"$post_category\"".$datemodif." WHERE ID=$post_ID";
// b2-include/b2edit.form.php
**Insert after echo " checked" ?> tabindex="7" id="autobr" />
**If someone would care to edit this to limit users from posting above their level and submit change to custom_designs@hotmail.com
//b2-include/b2edit.showposts.php
**Insert after start_b2(); ?>
= $postdata["data_level"] )
{ ?>
**Locate
]
// index.php
**After the