Sprobuj tego:
Zainstaluj najpierw cms.
Nastepnie zacznij instalowac plusminus.
Gdy dojdziesz do:
[phpbb]#
#--[ FIND ]--
# full text: $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
#
INSERT INTO " . FORUMS_TABLE
#
#--[ IN-LINE FIND ]--
#
forum_status
#
#--[ IN-LINE AFTER, ADD ]--
#
, enable_pluspoints, enable_minuspoints
#
#--[ FIND ]--
# full text: VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $_POST['forumname']) . "', " . intval($_POST[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $_POST['forumdesc']) . "', $next_order, " . intval($_POST['forumstatus']) . ", " . intval($_POST['prune_enable']) . $value_sql . ")";
#
VALUES ('" . $next_id
#
#--[ IN-LINE FIND ]--
#
intval($_POST['forumstatus']) . ", "
#
#--[ IN-LINE AFTER, ADD ]--
#
. intval($_POST['enable_plus']) . ", " . intval($_POST['enable_minus']) . ", "
[/phpbb]
wykonaj zamiast tego:
[phpbb]#
#--[ FIND ]--
#
$sql = "INSERT INTO " . FORUMS_TABLE . "
SET $sqlUpdate
forum_id = '" . $next_id . "',
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']) . ",
#
#--[ AFTER, ADD ]--
#
enable_pluspoints = '" . intval($_POST['enable_plus']) . ",
enable_minuspoints = '" . intval($_POST['enable_minus']) . ",
[/phpbb]
Dalej leci tak samo.
Autor postu otrzymał pochwałę
"The Madness is out there!"