############################################################## ## Mod Title: Advanced Links_MOD ## Mod Version: 1.1.1 ## Author: 1.1.0 OOHOO < webdev@phpbb-tw.net > http://phpbb-tw.net/ ## 1.1.1 Stefan2k1 < sp@phpbb2.de > http://www.phpbb2.de/ ## ## Description: Display links (with logo) on the forum index page. ## ## ## Installation Level: (easy) ## Installation Time: 1-5 Minutes ## Files To Edit: ## index.php ## includes/constants.php ## language/your_language/lang_main.php ## language/your_language/lang_main.php ## templates/subSilver/index_body.tpl ## ## Included Files: ## links.php ## links.js.php ## link_register.php ## includes/links_constants.php ## admin/admin_links.php ## templates/your_template/links_body.tpl ## templates/your_template/links_js_body.tpl ## templates/your_template/admin/admin_links_body.tpl ## templates/your_template/admin/admin_links_edit_body.tpl ## images/links/web_logo88a.gif ## images/links/phpBB_88a.gif ## images/links/phpbb-tw_logo88a.gif ############################################################## ## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites ################################################################# ## ## Author Note: This MOD hasn't been finished. ## ############################################################## ## Version History: ## 1.0.X - 2002/03/22 - for phpBB RC serial, and was named Related_Links_MOD ## 1.1.0 - 2002/04/25 - Re-packed for phpBB 2.0.0, and renamed to Links_MOD ## 1.1.1 - 2003/01/19 - Added db_install.php and missing changes in constants.php ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ################################################################# # #-----[ ACTION: UPLOAD ]------------------------------------------ # links.php links.js.php link_register.php includes/links_constants.php admin/admin_links.php templates/your_template/links_body.tpl templates/your_template/links_js_body.tpl templates/your_template/admin/admin_links_body.tpl templates/your_template/admin/admin_links_edit_body.tpl images/links/web_logo88a.gif images/links/phpBB_88a.gif images/links/phpbb-tw_logo88a.gif # #-----[ ACTION: EXECUTE SQL QUERY ]------------------------------------------ # # # Table structure for table `phpbb_link_categories` # CREATE TABLE phpbb_link_categories ( cat_id mediumint(8) unsigned NOT NULL auto_increment, cat_title varchar(100) NOT NULL default '', cat_order mediumint(8) unsigned NOT NULL default '0', PRIMARY KEY (cat_id), KEY cat_order (cat_order) ) TYPE=MyISAM; # # Dumping data for table `phpbb_link_categories` # INSERT INTO phpbb_link_categories VALUES (1, 'Arts', 1); INSERT INTO phpbb_link_categories VALUES (2, 'Business', 2); INSERT INTO phpbb_link_categories VALUES (3, 'Children and Teens', 3); INSERT INTO phpbb_link_categories VALUES (4, 'Computers', 4); INSERT INTO phpbb_link_categories VALUES (5, 'Games', 5); INSERT INTO phpbb_link_categories VALUES (6, 'Health', 6); INSERT INTO phpbb_link_categories VALUES (7, 'Home', 7); INSERT INTO phpbb_link_categories VALUES (8, 'News', 8); (Note. The back-end of category manage wasn't done yet, so you have to manually insert or edit the category) # # Table structure for table `phpbb_links` # CREATE TABLE phpbb_links ( link_id mediumint(8) unsigned NOT NULL auto_increment, link_title varchar(100) NOT NULL default '', link_desc varchar(255) default NULL, link_category mediumint(8) unsigned NOT NULL default '0', link_url varchar(100) NOT NULL default '', link_logo_src varchar(120) default NULL, link_joined int(11) NOT NULL default '0', link_active tinyint(1) NOT NULL default '0', link_hits int(10) unsigned NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', user_ip varchar(8) NOT NULL default '', last_user_ip varchar(8) NOT NULL default '', PRIMARY KEY (link_id) ) TYPE=MyISAM; # # Dumping data for table `phpbb_links` # INSERT INTO phpbb_links VALUES (1, 'phpBB Official Website', 'Official phpBB Website', 4, 'http://www.phpbb.com/', 'images/links/phpBB_88a.gif', 1019910254, 1, 0, 2, '', ''); INSERT INTO phpbb_links VALUES (2, 'phpbb-tw.net', 'Unofficial phpBB Chinese Support Centre', 4, 'http://phpbb-tw.net', 'images/links/phpbb-tw_logo88a.gif', 1019910254, 1, 0, 2, '', ''); INSERT INTO phpbb_links VALUES (3, 'phpbb2.de', 'Your Source for phpBB2 Stuff', 4, 'http://www.phpbb2.de', 'images/links/phpbb2_de_logo.gif', 1019910254, 1, 0, 2, '', ''); # #-----[ ACTION: OPEN ]------------------------------------------ # index.php # #-----[ ACTION: FIND ]------------------------------------------ # include($phpbb_root_path . 'common.'.$phpEx); # #-----[ ACTION: AFTER, ADD ]------------------------------------------ # include($phpbb_root_path . "includes/links_constants.$phpEx"); // Links_MOD # #-----[ ACTION: FIND ]------------------------------------------ # 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], # #-----[ ACTION: AFTER, ADD ]------------------------------------------ # 'L_LINKS' => $lang['Site_links'], // Links_MOD 'U_LINKS' => append_sid("links.$phpEx"), // Links_MOD 'U_LINKS_JS' => "links.js.$phpEx", // Links_MOD 'U_SITE_LOGO' => SITE_LOGO_SRC, // Links_MOD 'SITE_LOGO_WIDTH' => SITE_LOGO_WIDTH, // Links_MOD 'SITE_LOGO_HEIGHT' => SITE_LOGO_HEIGHT, // Links_MOD # #-----[ ACTION: OPEN ]------------------------------------------ # templates/your_template/index_body.tpl # #-----[ ACTION: FIND ]------------------------------------------ #