Where can I find a block that allow me to show the last 10 recent posts in a specific forums...
The idea is only to show the last posts of only 5 forum sections.
Any ideia where I can find?
Or any ideia how to make that in this block?
Code:
<?php
########################################################################
# PHP-Nuke Block: fiblack Center Forum Block v.2 #
# Made for PHP-Nuke 6.5 and up #
# #
# Made by mikem http://www.nukecops.com #
########################################################################
# This block is made only to match the phpib2 Theme pack #
# This program is free software. You can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License. #
# If you modify this, let me know for fun. =) #
########################################################################
if (eregi("block-fiblack-Forum.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$result2 = sql_query("SELECT username, user_id, user_color_gc FROM ".$prefix."_users where user_id='$topic_poster'", $dbi);
list($username, $user_id, $user_color_gc)=sql_fetch_row($result2, $dbi);
$avtor= UsernameColor($user_color_gc, $username);
$sifra=$user_id;
$result3 = sql_query("SELECT poster_id, FROM_UNIXTIME(post_time,'%m/%d/%Y às %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
list($poster_id, $post_time)=sql_fetch_row($result3, $dbi);
$result4 = sql_query("SELECT username, user_id, user_color_gc FROM ".$prefix."_users where user_id='$poster_id'", $dbi);
list($username, $user_id, $user_color_gc)=sql_fetch_row($result4, $dbi);
$username= UsernameColor($user_color_gc, $username);
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum