http://www.fanforum-deutschland.de/phpB ... s_post.php#----[ OPEN ]----------------------------------------------------
#
includes/functions_post.php
#
#----[ FIND ]----------------------------------------------------
#
$sign = ( $mode == 'delete' ) ? "- 1" : "+ 1";
#
#----[ REPLACE WITH ]--------------------------------------------
#
$sql = "SELECT * FROM " .
FORUMS_TABLE . "
WHERE forum_id = $forum_id";
$result = $db->sql_query($sql);
$forum_information = $db->sql_fetchrow($result);
$count_posts = $forum_information['count_posts'];
if ($mode == 'delete')
{
if ($count_posts)
{
$sign = "- 1";
}
else
{
$sign = "";
}
}
else
{
if ($count_posts)
{
$sign = "+ 1";
}
else
{
$sign = "";
}
}
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/forum_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_FORUM_STATUS}</td>
<td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_COUNT_POSTS}</td>
<td class="row2"><input type="radio" name="count_posts" value="1" {COUNT_POSTS_YES} />
{L_YES} <input type="radio" name="count_posts" value="0" {COUNT_POSTS_NO}
/> {L_NO}</td>
</tr>
#
#----[ OPEN ]----------------------------------------------------
#
admin/admin_forums.php
#
#----[ FIND ]----------------------------------------------------
#
SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . ", sort_order = " . intval($HTTP_POST_VARS['sort_order']) . "
#
#----[ IN-LINE AFTER ADD ]----------------------------------------
#
, count_posts = " . intval($HTTP_POST_VARS['count_posts']) . "
#
#----[ FIND ]----------------------------------------------------
#
$forumdesc = $row['forum_desc'];
$forumstatus = $row['forum_status'];
#
#----[ AFTER ADD ]-------------------------------------------------
#
$countposts = $row['count_posts'];
#
#----[ FIND ]------------------------------------------------------
#
$forumdesc = '';
$forumstatus = FORUM_UNLOCKED;
#
#----[ AFTER ADD ]-------------------------------------------------
#
$countposts = TRUE;
#
#----[ FIND ]------------------------------------------------------
#
'DESCRIPTION' => $forumdesc)
#
#----[ BEFORE, ADD ]-----------------------------------------------
#
'COUNT_POSTS_YES' => ($row['count_posts'] ? 'checked="checked"' : ''),
'COUNT_POSTS_NO' => (!$row['count_posts'] ? 'checked="checked"' : ''),
'L_COUNT_POSTS' => $lang['Post_count'],
'L_YES' => $lang['Yes'],
'L_NO' => $lang['No'],
#
#----[ OPEN ]----------------------------------------------------
#
language/lang_english/lang_admin.php
#
#----[ FIND ]----------------------------------------------------
#
?>
#
#----[ BEFORE, ADD ]---------------------------------------------
#
$lang['Post_count'] = 'Count Posts in this forum?';
#
#-----[ SAVE/CLOSE ALL FILES ]-----------------------------------
http://www.fanforum-deutschland.de/phpB ... t_body.txt
http://www.fanforum-deutschland.de/phpB ... forums.txt
lang_admin.php dürfte stimmen!Bei dem rummachen in der db gabs nen fehler aber bei phpBB+ war es schon dabei>tabelle dürfte existieren!