OKAY: THIS IS NOT A MOD CODE
DO NOT EDIT YOUR FILES
So, I'm aiming for a list of all the forums with check boxes next to them (along with a Check All button, but that later) in a table row between the Subject feild and the upper row of BBCodes.
To do that, I guess I'll run an sql query something like:
Code: Select all
$sql = "SELECT forum_name, forum_id
FROM " . FORUMS_TABLE . "
ORDER BY forum_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Can't Grab Forum Names', '', __LINE__, __FILE__, $sql);
}
while (($forum_names[] = $db->sql_fetchrow($result)));
$total_forums = count($forum_names)-1;
Code: Select all
for($i = 0; $i < $total_cats; $i++) { // loop through cats
$template->assign_block_vars('catrow', array(
'FORUM_NAME' => $forum_names[$i]['forum_name'],
'FORUM_ID' => $forum_names[$i]['forum_id']
)
);
}
Okay, I've found this:
Code: Select all
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $msg_icon);
for($i=something;$i<=something;$i++)
{
submit_post($mode, $post_data, $return_message, $return_meta, $forums[$i], $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $msg_icon);
}
But the biggest help i need is where it accepts those values and passes them to the function, and how to store all the values into an array.
OKAY: THIS IS NOT A MOD CODE
DO NOT EDIT YOUR FILES