Zeile 36 | Zeile 36 |
---|
continue; }
|
continue; }
|
$plugins->run_hooks("build_forumbits_forum");
| $plugins->run_hooks_by_ref("build_forumbits_forum", $forum);
|
// Build the link to this forum $forum_url = get_forum_link($forum['fid']);
| // Build the link to this forum $forum_url = get_forum_link($forum['fid']);
|
Zeile 113 | Zeile 113 |
---|
{ unset($unapproved); }
|
{ unset($unapproved); }
|
| // Sanitize name and description of forum. $forum['name'] = preg_replace("#&([^\#])(?![a-z1-4]{1,10};)#i", "&$1", $forum['name']); $forum['description'] = preg_replace("#&([^\#])(?![a-z1-4]{1,10};)#i", "&$1", $forum['description']);
|
// If this is a forum and we've got subforums of it, load the subforums list template if($depth == 2 && $sub_forums) {
| // If this is a forum and we've got subforums of it, load the subforums list template if($depth == 2 && $sub_forums) {
|
Zeile 167 | Zeile 172 |
---|
// No posts have been made in this forum - show never text if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == '') && $hideinfo != true) {
|
// No posts have been made in this forum - show never text if(($lastpost_data['lastpost'] == 0 || $lastpost_data['lastposter'] == '') && $hideinfo != true) {
|
$lastpost = "<span style=\"text-align: center;\">".$lang->lastpost_never."</span>";
| $lastpost = "<div style=\"text-align: center;\">{$lang->lastpost_never}</div>";
|
}
|
}
|
elseif($hideinfo != 1)
| elseif($hideinfo != true)
|
{ // Format lastpost date and time $lastpost_date = my_date($mybb->settings['dateformat'], $lastpost_data['lastpost']);
| { // Format lastpost date and time $lastpost_date = my_date($mybb->settings['dateformat'], $lastpost_data['lastpost']);
|
Zeile 194 | Zeile 199 |
---|
// If this forum is a link or is password protected and the user isn't authenticated, set lastpost and counters to "-" if($forum['linkto'] != '' || $hideinfo == true) {
|
// If this forum is a link or is password protected and the user isn't authenticated, set lastpost and counters to "-" if($forum['linkto'] != '' || $hideinfo == true) {
|
$lastpost = "<span style=\"text-align: center;\">-</span>";
| $lastpost = "<div style=\"text-align: center;\">-</div>";
|
$posts = "-"; $threads = "-"; }
| $posts = "-"; $threads = "-"; }
|
Zeile 219 | Zeile 224 |
---|
// Fetch each moderator from the cache and format it, appending it to the list foreach($moderatorcache[$mfid] as $moderator) {
|
// Fetch each moderator from the cache and format it, appending it to the list foreach($moderatorcache[$mfid] as $moderator) {
|
$moderators .= "{$comma}<a href=\"member.php?action=profile&uid={$moderator['uid']}\">{$moderator['username']}</a>";
| $moderators .= "{$comma}<a href=\"member.php?action=profile&uid={$moderator['uid']}\">".htmlspecialchars_uni($moderator['username'])."</a>";
|
$comma = ", "; } }
| $comma = ", "; } }
|