############################################################## 
## MOD Title:          Links 
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rd) http://mods.db9.dk 
## MOD Description:    This mod will make a new links page,
##                     witch can be administrated from ACP 
## MOD Version:        0.9.6.
## MOD Compatibility:  2.0.x
## 
## Installation Level: Easy
## Installation Time:  3 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      5
##      admin/admin_db_utilities.php
##      includes/constants.php 
##      includes/page_header.php 
##      language/lang_english/lang_main.php
##      templates/subSilver/overall_header.tpl  
##
## Included Files:     7
##      links_db_update.php
##      root/links.php
##      root/admin/admin_links.php
##      root/language/lang_english/lang_links.php
##      root/templates/subSilver/links_body.tpl
##      root/templates/subSilver/admin/link_edit_body.tpl
##      root/templates/subSilver/admin/links_body.tpl
##
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## 
## 1. EasyMOD
## -----------
## This MOD is compatible and can be installed by EasyMOD
## of Nuttzy (but is not officially EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## However, on alpha releases of EM and meanwhile beta or 
## final release some actions are NOT performed.
## You'll have to do them manually !
##
## 1.1 SQL commands are not performed
## -----------
## This MOD need a database update.
## Then, in any case if you install this MOD manually or using
## an alpha release of EM, please copying the *_db_update.php
## in your phpBB root directory, run it with your navigator,
## and then delete it from the phpBB root directory.
##
## Please, do it NOW! Before editing phpBB files by EM or manually!!!
## Otherwise, you may have an error message during your next
## connection.
##
## 1.2 Translation are not managed
## -----------
## Moreover, EM can not already manage actions for any other
## language than English (but language intructions are proceed
## to all installed languages in order to prevent errors).
## So the translations provided with this MOD must be installed
## manually if you need them.
##
## 2. Official last version link
## -----------
## Meanwhile the phpBB group validation and as the MOD is not yet
## in the phpBB MOD database, check this official link for updates...
## http://mods.db9.dk/viewtopic.php?t=3002
## 
############################################################## 
## MOD History: 
## 
##   2004-03-19 - Version 0.9.6.
##	- added link to index, in top of page
##
##   2003-12-16 - Version 0.9.5
##      - phpBB template & EasyMOD compliance enhancement
##      - French, Italian & Spanish translations now provide
##        with the MOD
## 
##   2003-10-27 - Version 0.9.4
##      - updated the admin/admin_links.php, made it more fail safe
##
##   2003-10-27 - Version 0.9.3
##      - updated the admin/admin_links.php
##
##   2003-10-25 - Version 0.9.2
##      - added admin_db_utils.php to allow backup/restore
##	- changed PAGE_LINKS to -1033
##
##   2003-10-10 - Version 0.9.1
##      - corrected a find tag in page_header.php
##
##   2003-09-22 - Version 0.9.0
##      - initial BETA
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
# 
#-----[ COPY ]------------------------------------------------ 
# 
copy links_db_update.php to links_db_update.php
copy root/links.php to links.php
copy root/admin/admin_links.php to admin/admin_links.php
copy root/language/lang_english/lang_links.php to language/lang_english/lang_links.php
copy root/templates/subSilver/links_body.tpl to templates/subSilver/links_body.tpl
copy root/templates/subSilver/admin/link_edit_body.tpl to templates/subSilver/admin/link_edit_body.tpl
copy root/templates/subSilver/admin/links_body.tpl to templates/subSilver/admin/links_body.tpl

#
# This MOD need a database update.
# Then, as you must have now copied the links_db_update.php file
# in your phpBB root directory, run it with your navigator...
# http://www.yourWebSite.xxx/phpbbRootDir/links_db_update.php
#
# ...and then delete it from the phpBB root directory!!!
#
# Please, do it NOW! Before editing phpBB files by EM or manually!!!
# Otherwise, you may have an error message during your next
# connection.
#

# 
#-----[ OPEN ]------------------------------------------------ 
# 
admin/admin_db_utilities.php

# 
#-----[ FIND ]------------------------------------------------ 
#
$tables = array(

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

// Start add - Links MOD
$tables[] = 'links';
// End add - Links MOD

# 
#-----[ OPEN ]------------------------------------------------ 
# 
includes/constants.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
define('PAGE_GROUPCP', -11);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

// Start add - Links MOD
define('PAGE_LINKS', -1033);
// End add - Links MOD

# 
#-----[ FIND ]------------------------------------------------ 
# 
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

// Start add - Links MOD
define('LINKS_TABLE', $table_prefix.'links');
// End add - Links MOD

# 
#-----[ OPEN ]------------------------------------------------ 
# 
includes/page_header.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
'L_MEMBERLIST' => $lang['Memberlist'],

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

// Start add - Links MOD
'L_LINKS' => $lang['Links'],
// End add - Links MOD

# 
#-----[ FIND ]------------------------------------------------ 
# 
'U_MEMBERLIST' => append_sid('memberlist.'.$phpEx),

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

// Start add - Links MOD
'U_LINKS' => append_sid('links.'.$phpEx),
// End add - Links MOD

# 
#-----[ FIND ]------------------------------------------------ 
# 
# this step, may already have been done by other mods, if this is the case, then please skip it
#
'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
# this step, may already have been done by other mods, if this is the case, then please skip it
#

// Start add - Links MOD
'T_NAME' => $theme['template_name'],
// End add - Links MOD

# 
#-----[ OPEN ]------------------------------------------------ 
# 
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------------ 
# 
?>

# 
#-----[ BEFORE, ADD ]----------------------------------------- 
# 

// Start add - Links MOD
$lang['Links'] ='Links';
$lang['Links_title'] ='The best Links';
$lang['No_links'] = 'Sorry, no links';
// End add - Links MOD

# 
#-----[ OPEN ]------------------------------------------------ 
# 
templates/subSilver/overall_header.tpl

# 
#-----[ FIND ]------------------------------------------------ 
# 
{L_USERGROUPS}</a>&nbsp;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

<!-- Start add - Links MOD -->
<a href="{U_LINKS}" class="mainmenu"><img src="templates/{T_NAME}/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_LINKS}" hspace="3" />{L_LINKS}</a>&nbsp;
<!-- End add - Links MOD -->

# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
# EoM