ALTER TABLE $table_members ADD `readrules` set('yes','no') NOT NULL default 'no';
DROP TABLE IF EXISTS `$table_faq`;
CREATE TABLE `$table_faq` (
  `type` varchar(15) NOT NULL default '',
  `fid` smallint(6) NOT NULL auto_increment,
  `name` text NOT NULL,
  `status` varchar(15) NOT NULL default '',
  `displayorder` smallint(6) NOT NULL default '0',
  `description` text,
  `allowhtml` char(3) NOT NULL default 'no',
  `allowsmilies` char(3) NOT NULL default 'yes',
  `allowbbcode` char(3) NOT NULL default 'yes',
  `fup` smallint(6) NOT NULL default '0',
  `allowimgcode` char(3) NOT NULL default 'yes',
  `code` varchar(20) NOT NULL default '',
  `view` int(1) NOT NULL default '0',
  PRIMARY KEY  (`fid`),
  KEY `fup` (`fup`),
  KEY `type` (`type`),
  KEY `status` (`status`)
) TYPE=MyISAM COMMENT='FunForum''s FAQ Management System' AUTO_INCREMENT=26 ;
INSERT INTO `$table_faq` VALUES ('group', 1, 'User Maintenance', 'on', 0, '', '', '', '', 0, '', 'usermaint', 0);
INSERT INTO `$table_faq` VALUES ('item', 2, 'Is registration required?', 'on', 0, 'That depends on the board settings because administrators can change the settings so that you have to be registered to view posts. You also usually have to be registered to reply and start new posts but this does depend on the board settings. To register <a href=\\"member.php?action=coppa\\">click here</a>.\r\n\r\nIt is advised that you register so you can receive e-mails from the administrator.', 'yes', 'yes', 'yes', 1, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 3, 'Does this forum use cookies?', 'on', 1, 'Yes. XMB uses cookies to store your login information, last visit, and threads that you have visited. We do this to make it easier for you so you can see which posts contain new replies and so you do not have to enter your username and password when posting or other certain things.\r\n\r\nIf you logout, your cookies will be cleared. To logout <a href=\\"misc.php?action=logout\\">click here</a>.', 'off', 'yes', 'yes', 1, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 4, 'How do I add a signature?', 'on', 2, 'To add a signature to your posts you have to log into your profile and insert into the signature text box the signature you wish to use.\r\n\r\nBB Code and HTML maybe turned off or on. This can effect what you can insert into your signature.', 'no', 'yes', 'yes', 1, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 5, 'How do I get my own picture (avatar) under my name?', 'on', 3, 'Again in your <a href=\\"memcp.php\\">profile</a> there is a place for an \\\'Avatar\\\' and avatar is the image under your name. Check with your Admin about the size of your avatar, it\\\'s usually considered common courtesy to use one under 150 pixels wide.', 'off', 'yes', 'yes', 1, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 6, 'How can lost passwords be recovered?', 'on', 4, 'If you have forgotten your password, do not worry. Head over to the <a href=\\"misc.php?action=lostpw\\">lost password section</a> and fill in the form and your password will be e-mailed to you.', 'off', 'yes', 'yes', 1, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 7, 'What is U2U?', 'on', 5, 'U2U means User to User. It is a simple messaging client that you can use to send messages to fellow members on this board. You can check your U2U inbox by clicking on the U2U link in the header or going to your <a href=\\"memcp.php\\">profile</a>.\r\n\r\nThe board administrator might have disabled this function for certain users.\r\n\r\n<b>NOTE:</b> Please be aware that Super Administrators are able to view your u2u inbox. This is for forum security and not meant to be an invasion of your privacy. As with the internet in general, please use caution when sending sensitive information through the u2u system.', 'off', 'yes', 'yes', 1, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('group', 8, 'Using the Board', 'on', 1, '', '', '', '', 0, '', 'using', 0);
INSERT INTO `$table_faq` VALUES ('item', 9, 'Where do I log in?', 'on', 0, 'There is a button that says \\\'Login\\\' in the menu at the top, clicking this button will take you to the login page, where you can login. Here you simply input your username, and your password, click the login button, and that\\\'s it!', 'no', 'yes', 'yes', 8, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 10, 'Where do I log out?', 'on', 1, 'You can logout by clicking Logout at the top of the page. When you logout the cookies that store your username and password will be removed and you will become a Guest or Anonymous user.', 'no', 'yes', 'yes', 8, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 11, 'How do I search the board?', 'on', 2, 'By clicking on the \\\'Search\\\' button in the menu. Then inputting what you wish to search for, you can restrict where you search with the drop down lists.', 'no', 'yes', 'yes', 8, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 12, 'How do I U2U a member?', 'on', 3, 'First click on the U2U button in the menu, another smaller window will pop-up, from there you can access the \\\'Send a U2U\\\' screen, by clicking on it at the top. Place the users name in the \\\'To\\\' field, and then insert a subject and a message and click \\\'Send\\\'. ', 'no', 'yes', 'yes', 8, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 13, 'Where can I view all the members?', 'on', 4, 'You can view all the members by clicking on the <a href=\\"misc.php?action=list\\">Members List</a> button in the menu.', 'off', 'yes', 'yes', 8, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('group', 14, 'Posting and Reading messages', 'on', 2, '', '', '', '', 0, '', 'messages', 0);
INSERT INTO `$table_faq` VALUES ('item', 15, 'How do I post a new message?', 'on', 0, 'When inside of a forum, clicking on \\\'Post new Topic\\\' or the image that represents that, will allow you to post. You need to fill in your information, a topic and a message, then click on the \\\'Post New Topic\\\' button.', 'no', 'yes', 'yes', 14, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 16, 'Can I reply to a message?', 'on', 1, 'Yes, this is done the same as posting a new one, except that you must be in a Topic, and you need to click \\\'Post Reply\\\' instead of \\\'Post new Topic\\\'.', 'no', 'yes', 'yes', 14, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 17, 'Is it possible to delete a message?', 'on', 2, 'Yes, click the \\\'Edit\\\' button on one of your own topics, and then select the \\\'! Delete this message !\\\' check box, and click \\\'Edit Post\\\'. You can not delete a post if it is the first post in the thread.', 'no', 'yes', 'yes', 14, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 18, 'How do I edit one of my posts?', 'on', 3, 'You can edit a post by clicking on the \\\'Edit Post\\\' button underneath your message. You can only edit your own posts and sometimes this feature is disabled.', 'no', 'yes', 'yes', 14, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 19, 'Can I insert an attachment?', 'on', 4, 'Yes you can insert an attachment with any of your posts. The file size of the attachment must be under 1 Megabyte for it to be accepted. You can attach a file on the New Post and Post Reply pages with the upload field.', 'no', 'yes', 'yes', 14, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 20, 'What are smilies? ', 'on', 5, 'Smilies are the little faces to the right of the input for message. They display graphical faces instead of simply a :).\r\nHere is a list of current supported smilies: ', 'off', 'yes', 'yes', 14, 'yes', '', 1);
INSERT INTO `$table_faq` VALUES ('item', 21, 'How can I create and vote in polls?', 'on', 6, 'You can create a poll by visiting the forum you want to post the poll in and click on Start Poll. The screen following after you click the button is just like a normal new thread page but has an extra box for Poll Answers. You should enter one answer per line.\r\n\r\nYou can vote on polls in threads by visiting the thread with the poll in it and selecting the option you want to vote for, then clicking the submit button. You can only vote on a poll once, so once you vote, you cant change your mind.\r\n\r\nThe Administrator could have disabled this option for each forum.', 'no', 'yes', 'yes', 14, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('group', 22, 'Misc Questions', 'on', 3, '', '', '', '', 0, '', 'misc', 0);
INSERT INTO `$table_faq` VALUES ('item', 23, 'What is BB code?', 'on', 0, 'You can use BB Code, a simplified version of HTML, in your posts to create certain effects.\r\n\r\n[b]Text here[/b]   (Bold Text)\r\n\r\n[i]Text here[/i]   (Italicized Text)\r\n\r\n[u]Text here[/u]   (Underlined Text)\r\n\r\n[url]http://www.php.net[/url]   (Link)\r\n\r\n[url=http://www.php.net]Home Page of PHP[/url]   (Link)\r\n\r\n[email] mail@xmbforum.com[/email]   (E-Mail Link)\r\n\r\n[email=mail@xmbforum.com]E-mail Me![/email]   (E-Mail Link)\r\n\r\n[quote]Text here[/quote]   (Quoted Text)\r\n\r\n[code]Text here[/code]   (Text With Preserved Formatting)\r\n\r\n[img]http://www.php.net/gifs/php_logo.gif[/img]   (Image)\r\n\r\n[img=50x50]http://www.php.net/gifs/php_logo.gif[/img]   (Resized Image)\r\n\r\n[flash=200x100]http://www.macromedia.com/flash.swf[/flash]   (Flash Movie)\r\n\r\n[color=red]This color is red[/color]   (Colored Text)\r\n\r\n[size=3]This font size is 3[/size]   (Sized Text)\r\n\r\n[font=Tahoma]This font is Tahoma[/font]   (Different Font Than Default)\r\n\r\n[align=center]This is centered[/align]   (Aligned Text)\r\n\r\n[list]\r\n[*]List Item #1\r\n[*]List Item #2\r\n[*]List Item #2\r\n[/list]   (List)', 'off', 'off', 'off', 22, 'off', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 24, 'Can I become a moderator?', 'on', 1, 'Most of the time the answer is no, but ask your Admin.', 'no', 'yes', 'yes', 22, 'yes', '', 0);
INSERT INTO `$table_faq` VALUES ('item', 25, 'What are User Ranks?', 'on', 2, 'Based on the number of posts you have, you are assigned to a rank. Each rank has its own status and its own amount of stars. Below are the user rank settings for this board:', 'off', 'yes', 'yes', 22, 'yes', '', 2);
INSERT INTO `$table_faq` VALUES ('rulesset', 26, 'The board administrator has requested that all users must agree again to the terms before they can continue using the services on this board.\r\nPlease read the following terms and if you agree to them, hit the \\"I agree\\" button found at the bottom of the terms.', '', 0, '', 'on', 'on', 'on', 0, 'on', '', 0);