Zeile 11 | Zeile 11 |
---|
/** * Build a list of forum bits. *
|
/** * Build a list of forum bits. *
|
* @param int The parent forum to fetch the child forums for (0 assumes all) * @param int The depth to return forums with.
| * @param int $pid The parent forum to fetch the child forums for (0 assumes all) * @param int $depth The depth to return forums with.
|
* @return array Array of information regarding the child forums of this parent forum */ function build_forumbits($pid=0, $depth=1)
| * @return array Array of information regarding the child forums of this parent forum */ function build_forumbits($pid=0, $depth=1)
|
Zeile 111 | Zeile 111 |
---|
if($private_forums[$forum['fid']]['lastpost']) { $forum['lastpost'] = $private_forums[$forum['fid']]['lastpost'];
|
if($private_forums[$forum['fid']]['lastpost']) { $forum['lastpost'] = $private_forums[$forum['fid']]['lastpost'];
|
| if(!$private_forums[$forum['fid']]['lastposteruid'] && !$private_forums[$forum['fid']]['lastposter']) { $private_forums[$forum['fid']]['lastposter'] = $lang->guest; // htmlspecialchars_uni'd when formatted later }
|
$lastpost_data = array( "lastpost" => $private_forums[$forum['fid']]['lastpost'],
| $lastpost_data = array( "lastpost" => $private_forums[$forum['fid']]['lastpost'],
|
Zeile 123 | Zeile 128 |
---|
} else {
|
} else {
|
| if(!$forum['lastposteruid'] && !$forum['lastposter']) { $forum['lastposter'] = $lang->guest; // htmlspecialchars_uni'd when formatted later }
|
$lastpost_data = array( "lastpost" => $forum['lastpost'], "lastpostsubject" => $forum['lastpostsubject'],
| $lastpost_data = array( "lastpost" => $forum['lastpost'], "lastpostsubject" => $forum['lastpostsubject'],
|
Zeile 184 | Zeile 194 |
---|
); }
|
); }
|
// If the current forums lastpost is greater than other child forums of the current parent, overwrite it if(!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost'])
| // If the current forums lastpost is greater than other child forums of the current parent and forum info isn't hidden, overwrite it if((!isset($parent_lastpost) || $lastpost_data['lastpost'] > $parent_lastpost['lastpost']) && $hideinfo != true)
|
{ $parent_lastpost = $lastpost_data; }
| { $parent_lastpost = $lastpost_data; }
|
Zeile 282 | Zeile 292 |
---|
if($forum['linkto'] == '') { // No posts have been made in this forum - show never text
|
if($forum['linkto'] == '') { // No posts have been made in this forum - show never text
|
if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == '') && $hideinfo != true)
| if($lastpost_data['lastpost'] == 0 && $hideinfo != true)
|
{ eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_never")."\";"); }
| { eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_never")."\";"); }
|
Zeile 292 | Zeile 302 |
---|
$lastpost_date = my_date('relative', $lastpost_data['lastpost']);
// Set up the last poster, last post thread id, last post subject and format appropriately
|
$lastpost_date = my_date('relative', $lastpost_data['lastpost']);
// Set up the last poster, last post thread id, last post subject and format appropriately
|
| $lastpost_data['lastposter'] = htmlspecialchars_uni($lastpost_data['lastposter']);
|
$lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']); $lastpost_link = get_thread_link($lastpost_data['lastposttid'], 0, "lastpost"); $lastpost_subject = $full_lastpost_subject = $parser->parse_badwords($lastpost_data['lastpostsubject']);
| $lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']); $lastpost_link = get_thread_link($lastpost_data['lastposttid'], 0, "lastpost"); $lastpost_subject = $full_lastpost_subject = $parser->parse_badwords($lastpost_data['lastpostsubject']);
|
Zeile 458 | Zeile 469 |
---|
/** * Fetch the status indicator for a forum based on its last post and the read date *
|
/** * Fetch the status indicator for a forum based on its last post and the read date *
|
* @param array Array of information about the forum * @param array Array of information about the lastpost date * @param int Whether or not this forum is locked or not
| * @param array $forum Array of information about the forum * @param array $lastpost Array of information about the lastpost date * @param int $locked Whether or not this forum is locked or not
|
* @return array Array of the folder image to be shown and the alt text */ function get_forum_lightbulb($forum, $lastpost, $locked=0)
| * @return array Array of the folder image to be shown and the alt text */ function get_forum_lightbulb($forum, $lastpost, $locked=0)
|
Zeile 473 | Zeile 484 |
---|
$folder = "offlink"; $altonoff = $lang->forum_redirect; }
|
$folder = "offlink"; $altonoff = $lang->forum_redirect; }
|
// This forum is closed, so override the folder icon with the "offlock" icon.
| // This forum is closed, so override the folder icon with the "offclose" icon.
|
elseif($forum['open'] == 0 || $locked) {
|
elseif($forum['open'] == 0 || $locked) {
|
$folder = "offlock"; $altonoff = $lang->forum_locked;
| $folder = "offclose"; $altonoff = $lang->forum_closed;
|
} else {
| } else {
|
Zeile 538 | Zeile 549 |
---|
/** * Fetch the number of unapproved posts, formatted, from a forum *
|
/** * Fetch the number of unapproved posts, formatted, from a forum *
|
* @param array Array of information about the forum
| * @param array $forum Array of information about the forum
|
* @return array Array containing formatted string for posts and string for threads */ function get_forum_unapproved($forum)
| * @return array Array containing formatted string for posts and string for threads */ function get_forum_unapproved($forum)
|