"1", "forum_postfix" => "[more...]", 'forum_poll' => '0', 'forum_popular' => '10', 'forum_track' => '0', 'forum_eprefix' => '[forum]', 'forum_enclose' => '1', 'forum_title' => 'Forums', 'forum_postspage' => '10', 'forum_hilightsticky' => '1' ); // List of table names ----------------------------------------------------------------------------------------------- $eplug_table_names = array( "forum", "forum_t" ); // List of sql requests to create tables ----------------------------------------------------------------------------- $eplug_tables = array( "CREATE TABLE ".MPREFIX."forum ( forum_id int(10) unsigned NOT NULL auto_increment, forum_name varchar(250) NOT NULL default '', forum_description text NOT NULL, forum_parent int(10) unsigned NOT NULL default '0', forum_sub int(10) unsigned NOT NULL default '0', forum_datestamp int(10) unsigned NOT NULL default '0', forum_moderators text NOT NULL, forum_threads int(10) unsigned NOT NULL default '0', forum_replies int(10) unsigned NOT NULL default '0', forum_lastpost_user varchar(200) NOT NULL default '', forum_lastpost_info varchar(40) NOT NULL default '', forum_class varchar(100) NOT NULL default '', forum_order int(10) unsigned NOT NULL default '0', forum_postclass tinyint(3) unsigned NOT NULL default '0', PRIMARY KEY (forum_id) ) TYPE=MyISAM AUTO_INCREMENT=1;", "CREATE TABLE ".MPREFIX."forum_t ( thread_id int(10) unsigned NOT NULL auto_increment, thread_name varchar(250) NOT NULL default '', thread_thread text NOT NULL, thread_forum_id int(10) unsigned NOT NULL default '0', thread_datestamp int(10) unsigned NOT NULL default '0', thread_parent int(10) unsigned NOT NULL default '0', thread_user varchar(250) NOT NULL default '', thread_views int(10) unsigned NOT NULL default '0', thread_active tinyint(3) unsigned NOT NULL default '0', thread_lastpost int(10) unsigned NOT NULL default '0', thread_s tinyint(1) unsigned NOT NULL default '0', thread_edit_datestamp int(10) unsigned NOT NULL default '0', thread_lastuser varchar(30) NOT NULL default '', thread_total_replies int(10) unsigned NOT NULL default '0', PRIMARY KEY (thread_id), KEY thread_parent (thread_parent), KEY thread_datestamp (thread_datestamp), KEY thread_forum_id (thread_forum_id) ) TYPE=MyISAM AUTO_INCREMENT=1;"); // Create a link in main menu (yes=TRUE, no=FALSE) ------------------------------------------------------------- $eplug_link = TRUE; $eplug_link_name = "Forum"; $eplug_link_url = e_PLUGIN.'forum/forum.php'; // Text to display after plugin successfully installed ------------------------------------------------------------------ $eplug_done = 'Your forum is now installed'; $eplug_upgrade_done = 'Forum successfully upgraded, now using version: '.$eplug_version; $upgrade_alter_tables = array( "ALTER TABLE ".MPREFIX."forum ADD forum_postclass TINYINT( 3 ) UNSIGNED DEFAULT '0' NOT NULL ;" ); if (!function_exists('forum_uninstall')) { function forum_uninstall() { global $sql; $sql -> db_Update("user", "user_forums='0'"); } } if (!function_exists('forum_install')) { function forum_install() { global $sql; $sql -> db_Update("user", "user_forums='0'"); } } ?>