line, AND changing the example address(es) information to a correct URL address. Also, pick your own title for the Admin List.$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
<?php
/***************************************************************************
* begin : Thu July 27, 2004
* copyright : (C) 2004 Shof515
* email : [email protected]
*
****************************************************************************/
define('IN_PHPBB', 1);
//
// First we do the setmodules stuff for the admin cp.
//
if (!empty($setmodules))
{
$filename = basename(__FILE__);
$module['Admin Links']['phpBB2_Home'] = append_sid("http://www.phpbb.com/");
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
return;
}
//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
//
// Output the authorisation details
//
include('./page_header_admin.'.$phpEx);
$template->pparse('body');
include('./page_footer_admin.'.$phpEx);
?>
Code: Select all
##############################################################
## MOD Title: Admin Links
## MOD Author: Ornette <> Ornette Wilson http://www.stressfactor.co.uk
## MOD Author: Shof515 <[email protected]> Shaun http://shof515.com
## MOD Description: Allows links to be added to the admin contol panel. Clicking onto the link will redirect the user to that page.
## MOD Version: 2.0.0
##
## Installation Level: Easy
## Installation Time: 2-3 Minutes
## Files To Edit: 1
## admin/admin_board.php
## Included Files:
## admin_adminlinks.php
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## This is a quick litte modification where admins can add links
## to the navigation panel in the ACP. To add links, edit
## admin_adminlinks.php manually and add to the list as such:
## $extlink['My site'] = "http://www.mysite.com/";
##
##############################################################
## MOD History:
##
## 2004-07-27 - Version 1.0.0
## - First verison made
## 2004-09-01- Version 1.0.3
## - Fixed a few things
## 2004-09-03- Version 1.0.4
## - Fixed a buged
## 2008-05-31 - Version 2.0.0
## - Major bug fixed, SIDs are no longer appended to external links
## - Added logic to prevent module admin_adminlinks.php being
## processed when this mod is deinstalled
## from EasyMOD History
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]----------------------------------------------
#
copy admin/admin_adminlinks.php to admin/admin_adminlinks.php
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
ksort($module);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$module = array_merge_recursive($module, $extlinks);
#
#-----[ FIND ]------------------------------------------
#
"U_ADMIN_MODULE" => append_sid($file))
#
#-----[ REPLACE ]------------------------------------------
#
"U_ADMIN_MODULE" => ($cat == $admin_links_cat_name) ? $file : append_sid($file))
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Code: Select all
<?php
/***************************************************************************
* MOD title: Admin Links
* filename: admin_adminlinks.php
* author: Ornette http://www.stressfactor.co.uk
* author: Shof515 http://shof515.com
* version: 2.0.0
* Updated 31st May, 2008
*
****************************************************************************/
define('IN_PHPBB', 1);
//
// First we do the setmodules stuff for the admin cp.
//
if (!empty($setmodules))
{
$filename = basename(__FILE__);
$admin_links_cat_name = 'Admin Links';
$extlink['my link1'] = "http://www.mylink1.com";
$extlink['my link2'] = "http://www.mylink2.com";
$extlink['my link3'] = "http://www.mylink3.com";
foreach ($extlink as $key => $value) {
$extlinks[$admin_links_cat_name][$key] = $value;
}
return;
}
//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
//
// Output the authorisation details
//
include('./page_header_admin.'.$phpEx);
$template->pparse('body');
include('./page_footer_admin.'.$phpEx);
?>