It's trying to find this exact line
Code: Select all
, " . intval($HTTP_POST_VARS['forumstatus']) . "
and it's not finding it in your admin/admin_forums.php file.
So just look for the key part of that which is 'forumstatus'. Find that, check the bit before it about intval($HTTP etc looks right and copy YOUR code into the install file for the bit it's looking for.
The key with looking at code is to break down what you're looking at.
Here's the section it's after
Code: Select all
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
That looks complicated until you realise it's just similar chunks separated by commas.
Code: Select all
VALUES ('" . $next_id . "'
, '" . str_replace("\'"
, "''"
, $HTTP_POST_VARS['forumname']) . "'
, " . intval($HTTP_POST_VARS[POST_CAT_URL]) . "
, '" . str_replace("\'", "''"
, $HTTP_POST_VARS['forumdesc']) . "'
, $next_order
, " . intval($HTTP_POST_VARS['forumstatus']) . "
, " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
Your MOD is just looking for one of those chunks so it can add something after or before it.