phpbbfungames.php
[php]<?php
<?php
/***************************************************************************
* memberlist.php
* -------------------
* begin : Friday, May 11, 2001
* copyright : (C) 2001 The phpBB Group
* email :
support@phpbb.com
*
* $Id: memberlist.php,v 1.36.2.10 2004/07/11 16:46:15 acydburn Exp $
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_PROFILE);
init_userprefs($userdata);
//
// End session management
//
$page_title = $lang['FUNGAMES']; // You'll have to set this in a $lang file somewhere
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
////////////////////////
readfile('
http://www.freegaming.de/webmasterconte ... es.php','r');
////////////////////////
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
?>[/php]
說明檔 phpBBfungamesMod.txt
[php]<?php
##############################################################
## MOD Title: Fungames
## MOD Author: BrianFerris <
nastytunez@gmx.de > (Brian Ferris)
http://www.freegaming.de
## MOD Description: External Hosted FunContent for more topicality and low Traffic
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: 4 Minutes
## Files To Edit: page_header.php, lang_main.php, overall_header.tpl
## Included Files: (phpbbfungames.php)
##############################################################
## 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:
## Test at
http://phpbb.freegaming.de
##############################################################
## MOD History:
##
## 2004-07-21 - Version 1.0.0
## - coded
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy phpbbfungames.php to phpbbfungames.php
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_FUNGAMES'=> $lang['FUNGAMES'],
#
#-----[ FIND ]------------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'U_FUNGAMES' => append_sid('phpbbfungames.'.$phpEx),
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['FUNGAMES'] = 'Fun Games!';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<a href="{U_FUNGAMES}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_FUNGAMES}" hspace="3" />{L_FUNGAMES}</a>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
?>[/php]
其中icon_mini_groups.gif這個icon你可以自已做一個小小的,或用現成的
這個外掛我看了看,乾脆把'
http://www.freegaming.de/webmastercontent/fungames.php'
提出來讓會員玩,就沒有裝了
這個裝完會在最上面的連結出現一個叫fungame的