############################################################## ## 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 ]------------------------------------------ #
# #-----[ ACTION: BEFORE, ADD ]------------------------------------------ #
{L_LINKS} {SITENAME}
{SITENAME}
# #-----[ ACTION: OPEN ]------------------------------------------ # language/your_language/lang_main.php # #-----[ ACTION: ADD ]------------------------------------------ # // Links_MOD $lang['Site_links'] = "Links"; $lang['Link_title'] = "Site Name"; $lang['Link_desc'] = "Site Description"; $lang['Link_url'] = "Site URL"; $lang['Link_logo_src'] = "Site Logo (88x31 pixels, size no more than 10K)"; $lang['Link_category'] = "Site Category"; $lang['link_hits'] = "Hits"; $lang['Link_us'] = "Link to "; $lang['Link_us_explain'] = "Please feel free to link to %s. Use the following HTML:"; $lang['Link_us_syntax'] = '%s'; $lang['Link_register'] = "Submit your site"; $lang['Link_register_rule'] = "You have to fill up the form below, and your site will be put into our database after validation."; $lang['Link_update_success'] = "Your information was submitted"; $lang['Link_update_fail'] = "Sorry!! You information was unable to submit, please go back and try again"; $lang['Link_incomplete'] = "Sorry!! You did not complete the form, please go back and try again"; $lang['Link_intval_warning'] = "Sorry!! You can't submit several sites in a minute, please try again later"; $lang['Click_return_links'] = "Click %sHere%s to return to Links Index";; $lang['Please_enter_your'] = "Please enter your "; # #-----[ ACTION: OPEN ]------------------------------------------ # includes/constants.php # #-----[ ACTION: FIND ]------------------------------------------ # define('VOTE_USERS_TABLE', $table_prefix.'vote_voters'); # #-----[ ACTION: AFTER, ADD ]------------------------------------------ # define('LINKS_TABLE', $table_prefix.'links'); // Links_MOD define('LINK_CATEGORIES_TABLE', $table_prefix.'link_categories'); // Links_MOD # #-----[ ACTION: OPEN ]------------------------------------------ # language/your_language/lang_admin.php # #-----[ ACTION: ADD ]------------------------------------------ # // Link_MOD $lang['Links'] = "Links Manage"; $lang['Links_explain'] = "From this control panel, you can preview all the status of links and edit or remove the selected link."; $lang['Add_link'] = "Add Link"; $lang['Add_link_explain'] = "The form below will allow you to add a link straightly."; $lang['Edit_link'] = "Edit Link"; $lang['Edit_link_explain'] = "The form below will allow you to edit a link's detail, and also you can select to "; $lang['Delete_link'] = "Delete Link"; $lang['Delete_link_explain'] = "The form below will allow you to remove a link, and also you can select to "; $lang['Link_update'] = "Update link detail"; $lang['Link_delete'] = "Delect this link"; $lang['Link_basic_setting'] = "Link Basic Detail"; $lang['Link_adv_setting'] = "Advanced Setting"; $lang['Link_active'] = "Active Status"; $lang['Link_admin_add_success'] = "The links was uccessfully added"; $lang['Link_admin_add_fail'] = "Uuable to add the new link, please try again later"; $lang['Link_admin_update_success'] = "The links was uccessfully updated"; $lang['Link_admin_update_fail'] = "Unable to update the link, please try again later"; $lang['Link_admin_delete_success'] = "The links was uccessfully removed"; $lang['Link_admin_delete_fail'] = "Unable to remove the link, please try again later"; $lang['Click_return_lastpage'] = "Click %sHere%s to return to the previous page"; $lang['Click_return_admin_links'] = "Click %sHere%s to return to Links Manage"; $lang['Preview'] = "Preview"; # #-----[ ACTION: OPEN ]------------------------------------------ # includes/links_constants.php # #-----[ ACTION: CHANGE SETTINGS ]------------------------------------------ # define('SITE_URL', "http://phpbb-tw.net/"); // Change to your site url define('SITE_LOGO_SRC', "http://phpbb-tw.net/phpbb/images/links/web_logo88a.gif"); // Change to your logo's url define('DISPLAY_INTERVAL', 6000); // logo display interval define('DISPLAY_LOGO_NUM', 8); // number of logos to display # #-----[ ACTION: SAVE & CLOSE FILE ]------------------------------------------ #