Just to check:
I’m working on the get-authors hack. and this is what my my-hacks.php file look
like. Is this correct?
<? php
Press Return twice
<?php
#require_once(ABSPATH . ‘wp-hilite.php’);
add_filter(‘the_content’, ‘hilite’);
?>
<?php
function get_authors($postCount = true, $excludeAdmin = true, $showFullName = false, $detailLink = ”) {
global $tableusers, $tableposts, $wpdb, $author, $siteurl, $blogfilename;
echo “<div id=’authors’>”;
echo “
“;
echo “</div>”;
}
/////////////////////////////////////////////////////////////////////
function get_user_table($userid) {
if ($userid) {
$data = get_userdata($userid);
if ($data->ID) {
echo “<table id=\”user_table\”>”;
echo “<tr>”;
echo “</tr><tr>”;
echo “<th>Name</th><td>”. ($data->user_firstname . $data->user_lastname ? “$data->user_firstname $data->user_lastname” : ‘ ‘) . “</td>”;
echo “</tr><tr>”;
echo “<th>Nick</th><td>” . ($data->user_login ? $data->user_login : ‘ ‘) . “</td>”;
echo “</tr><tr>”;
echo “<th>Email</th><td>” . ($data->user_email ? “user_email\”>$data->user_email” : ‘ ’) . “</td>”;
echo “</tr><tr>”;
echo “<th>Description</th><td>” . ($data->user_description ? $data->user_description : ‘ ‘) . “</td>”;
echo “</tr><tr>”;
echo “<th>Posts</th><td>” . ($posts ? “ID\”>$posts” : ‘ ‘) . “</td>”;
echo “</tr><tr>”;
echo “</tr>”;
echo “</table>”;
return;
}
}
echo “Unknown user!”;
}
?>
Now enter
?>