Activity MOD
Geplaatst: 05 nov 2005, 15:03
Ik heb de Activity MOD geinstalleerd, zalige MOD overigens.
maar ik heb 1 probleempje en 1 vraagje.
De link naar mijn forum is http://www.hetsportforum.tk
Categories Hierarchy i.c.m. Ptifo template.
het probleempje is deze 2 icoontjes


Eentje lijkt mij meer dan genoeg
Ook zie ik geen tekst achter het icoontje, dat lijkt me ook niet de bedoeling.
De install.txt:
Ten slotte nog mijn vraag:
Ik heb nu 3 categorieen, ik wil als 4e categorie een categorie: Games, die dan doorverwijst naar activity.php
Dus dat ik onder de 3e categorie dit krijg als 4e categorie:

Het klinkt misschien een beetje raar hoe ik het uitleg, maa rik hoop dat jullie begrijpen wat ik bedoel
maar ik heb 1 probleempje en 1 vraagje.
De link naar mijn forum is http://www.hetsportforum.tk
Categories Hierarchy i.c.m. Ptifo template.
het probleempje is deze 2 icoontjes
Eentje lijkt mij meer dan genoeg

Ook zie ik geen tekst achter het icoontje, dat lijkt me ook niet de bedoeling.
De install.txt:
Code: Selecteer alles
##############################################################
## MOD Title: Arcade / Activities MOD
## MOD Author: Napoleon <napoleon@inetangel.com> (Chris Moore) www.iNetAngel.com
## MOD Author, Secondary: defender-uk < defenders_realm@yahoo.com > (Andy Smith) http://www.free-game.co.uk
## MOD Description: Online Activities Manager / Plug in games and other activities for your users.
## MOD Version: 2.0.6
##
## Based on the Original by Napoleon Activity Mod by (Chris Moore) - Consent Given for Re-Distribution.
##
## Installation Level: (Easy)
## Installation Time: 10 Minutes
## Files To Edit: viewonline.php
## constants.php
## /admin/index.php
## /includes/page_header.php
## /templates/subSilver/overall_header.tpl
## /language/lang_english/lang_main.php
##
## Included Files: activity.php
## game.php
## newscore.php
## mod_install.php
## mod_upgrade.php
## /admin/admin_arcade.php
## /games/donkeykong/donkeykong.swf
## /games/donkeykong/donkeyknog.gif
## /images/arrow_down.gif
## /images/arrow_up.gif
## /images/icon_delete.gif
## /images/trophy.gif
## /includes/functions_arcade.php
## /language/lang_english/lang_arcade.php
## /templates/subSilver/arcade_body.tpl
## /templates/subSilver/arcade_cats.tpl
## /templates/subSilver/arcade_game_body.tpl
## /templates/subSilver/arcade_games_edit_body.tpl
## /templates/subSilver/arcade_mod_body.tpl
## /templates/subSilver/arcade_scores.tpl
## /templates/subSilver/arcade_saved_body.tpl
## /templates/subSilver/arcade_stats.tpl
## /templates/subSilver/arcade_stats_body.tpl
## /templates/subSilver/arcade_tour_body.tpl
## /templates/subSilver/admin/arcade_cats_body.tpl
## /templates/subSilver/admin/arcade_cats_edit_body.tpl
## /templates/subSilver/admin/arcade_config_body.tpl
## /templates/subSilver/admin/arcade_games_body.tpl
## /templates/subSilver/admin/arcade_import_body.tpl
## /templates/subSilver/admin/arcade_moderators_body.tpl
## /templates/subSilver/admin/arcade_tournament_body.tpl
## /templates/subSilver/images/game_info.gif
## /templates/subSilver/images/games.gif
## /templates/subSilver/images/icon_mini_activity.gif
## /templates/subSilver/images/moderate.gif
##
## Required for Rewards:
## /includes/rewards_api.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: This mod was made for version 2.0.6+ of phpBB.
## If you are upgrading from v2.0.0 then follow the steps found in "Upgrading".
##
## Installation
##
## 1) Upload all files to their respective locations in you main phpbb directory.
## 2) Edit all the files below.
## 3) Run mod_install.php from your web broswer to make the table changes.
## 4) Delete mod_install.php, mod_uninstall.php, and mod_upgrade.php.
##
##
## Credits
## - Napoleon :: Original Version.
## - Endoxus :: subSilver Icon / Game button template.
## - Q-zar :: French Translation.
## - mondi :: General support.
## - Scott Porter :: gamelib Author.
## - Whoo :: Games and Cheat Fix
##
##############################################################
## MOD History:
##
## 2003-06-25 - Version 1.0.0
## - First release.
##
## 2003-12-?? - Version 2.0.0
## - Cheat Fix.
## - Division by Zero bug fixed.
## - Added an installer / uninstaller / upgrader.
## - Removed Allowance System support.
## - Merged ina_score.php with newscore.php [ina_score.php now useless]
## - Optimized admin_activity.php [activity_config_body2.tpl now useless]
## - Optimized Game handling [added game.php, remove /games/gamename/gamename.php]
## No longer have to edit game.php when adding a new game.
## - Inserted new Move routines to move games up/down on game list.
## - Added Repair button to fix game index.
## - Added Pagination support.
## - Added List limit to Highscores.
## - Added Highscore Reverse List option.
## - Added return link in activity_scores.tpl
## - Added Info button & routines.
## - New ACP.
## - Optimized Points System support.
## - Added Rewards API for Rewards routines. [Cash / Allowance]
##
## 2004/10/06 - Version 2.0.1
## - Added Allow Guest Access.
## - Added Take Game Offline.
## - Added Default Image if No Game Image is Available.
## - Added All Time HighScores
##
## 2004/17/07 - Version 2.0.4
## - Made Fully EasyMod complient
## - Merged add and edit game [add_game.tpl now useless]
## - Added Activities Offline Function
## - Added Cheat Mode off function.
## - Fixed all template errors.
## - Added Guest Text.
## - Added Default game number (so that data can be pulled from another game)
## - Added Java and Director game support.
## - Changed scores tables to use user_id
## - Added Better cheat mode.
## - Fixed Zeros being entered in to the game window sizes.
## - Added Extra fields to ACP Games menu so you can see more at a glance.
## - Added Reset All Time High Scores data.
##
## 2004/19/08 - Version 2.0.6
## - Added option to turn off AT Highscores
## - Added option for default icon size
## - Added user Stats
## - Added pagination to ACP edit option.
## - Added Catagories
## - Added Search Function in Catagories Window
## - Added advanced navigation bar.
## - Added Support for RealMedia, Quicktime Media, Windows Media and Images.
## - Added Extra Sort Mod options
## - Added Extra cheat Mode support
## - Added Automatic Score Save type.
## - Added Automatic FLASH and IMAGE size on ADD
## - Added Option to Use Auto Size on Loading pages.
## - Added Icon Support from included functions.
## - Updated all the templates to default names.
## - Fixed Pagination
## - Fixed Points Bonus
## - Fixed Arcade Hash (bandwidth issue)
## - Changes score tables to support decimal places.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy activity.php to activity.php
copy game.php to game.php
copy newscore.php to newscore.php
copy mod_install.php to mod_install.php
copy admin/admin_arcade.php to admin/admin_arcade.php
copy games/donkeykong/donkeykong.gif to games/donkeykong/donkeykong.gif
copy games/donkeykong/donkeykong.swf to games/donkeykong/donkeykong.swf
copy images/arrow_down.gif to images/arrow_down.gif
copy images/arrow_up.gif to images/arrow_up.gif
copy images/icon_delete.gif to images/icon_delete.gif
copy images/trophy.gif to images/trophy.gif
copy includes/rewards_api.php to includes/rewards_api.php
copy includes/functions_arcade.php to includes/functions_arcade.php
copy language/lang_english/lang_arcade.php to language/lang_english/lang_arcade.php
copy templates/subSilver/arcade_body.tpl to templates/subSilver/arcade_body.tpl
copy templates/subSilver/arcade_cats.tpl to templates/subSilver/arcade_cats.tpl
copy templates/subSilver/arcade_game_body.tpl to templates/subSilver/arcade_game_body.tpl
copy templates/subSilver/arcade_mod_body.tpl to templates/subSilver/arcade_mod_body.tpl
copy templates/subSilver/arcade_scores.tpl to templates/subSilver/arcade_scores.tpl
copy templates/subSilver/arcade_saved_body.tpl to templates/subSilver/arcade_saved_body.tpl
copy templates/subSilver/arcade_stats.tpl to templates/subSilver/arcade_stats.tpl
copy templates/subSilver/arcade_stats_body.tpl to templates/subSilver/arcade_stats_body.tpl
copy templates/subSilver/arcade_tour_body.tpl to templates/subSilver/arcade_tour_body.tpl
copy templates/subSilver/admin/arcade_cats_body.tpl to templates/subSilver/admin/arcade_cats_body.tpl
copy templates/subSilver/admin/arcade_cats_edit_body.tpl to templates/subSilver/admin/arcade_cats_edit_body.tpl
copy templates/subSilver/admin/arcade_config_body.tpl to templates/subSilver/admin/arcade_config_body.tpl
copy templates/subSilver/admin/arcade_games_body.tpl to templates/subSilver/admin/arcade_games_body.tpl
copy templates/subSilver/admin/arcade_games_edit_body.tpl to templates/subSilver/arcade_games_edit_body.tpl
copy templates/subSilver/admin/arcade_import_body.tpl to templates/subSilver/admin/arcade_import_body.tpl
copy templates/subSilver/admin/arcade_moderators_body.tpl to templates/subSilver/admin/arcade_moderators_body.tpl
copy templates/subSilver/admin/arcade_tournament_body.tpl to templates/subSilver/admin/arcade_tournament_body.tpl
copy templates/subSilver/images/game_info.gif to templates/subSilver/images/game_info.gif
copy templates/subSilver/images/games.gif to templates/subSilver/images/games.gif
copy templates/subSilver/images/icon_mini_activity.gif to templates/subSilver/images/icon_mini_activity.gif
copy templates/subSilver/images/moderate.gif to templates/subSilver/images/moderate.gif
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_ACTIVITY:
$location = $lang['Activity'];
$location_url = "activity.$phpEx";
break;
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('PAGE_GROUPCP', -11);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Arcade - Activity MOD
define('PAGE_ACTIVITY', -12);
define('PAGE_PLAYING_GAMES', -13);
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Start of Arcade Table Data
define('iNA', $table_prefix.'ina_data');
define('iNA_GAMES', $table_prefix.'ina_games');
define('iNA_SCORES', $table_prefix.'ina_scores');
define('iNA_AT_SCORES', $table_prefix.'ina_at_scores');
define('iNA_SESSIONS', $table_prefix.'ina_sessions');
define('iNA_CAT', $table_prefix.'ina_cat');
define('iNA_TOUR', $table_prefix.'ina_tour');
define('iNA_TOUR_PLAY', $table_prefix.'ina_tour_play');
define('iNA_BANNED', $table_prefix.'ina_banned');
define('iNA_FAV', $table_prefix.'ina_fav');
// End of Arcade Table Data
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Arcade MOD
'U_ACTIVITY' => append_sid('activity.'.$phpEx),
'L_ACTIVITY' => $lang['Activity'],
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
case PAGE_ACTIVITY:
$location = $lang['Activity'];
$location_url = "activity.$phpEx";
break;
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
</head>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<SCRIPT LANGUAGE="Javascript">
var win = null;
function Gk_PopTart(mypage,myname,w,h,scroll)
{
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no';
win = window.open(mypage,myname,settings);
}
</SCRIPT>
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
<a href="{U_ACTIVITY}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_activity.gif" width="12" height="13" border="0" alt="{L_ACTIVITY}" hspace="3" />{L_ACTIVITY}</a> </span>
</td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Activity MOD
$lang['Activity'] = "Games";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE `phpbb_ina_data` ( version VARCHAR(255) DEFAULT NULL );
CREATE TABLE `phpbb_ina_games` (
`game_id` mediumint(9) NOT NULL auto_increment,
`cat_id` mediumint(8) default NULL,
`game_name` varchar(25) default NULL,
`game_path` varchar(255) default NULL,
`image_path` varchar(255) default NULL,
`game_desc` varchar(255) default NULL,
`game_charge` int(11) unsigned default '0',
`game_reward` int(11) unsigned NOT NULL default '0',
`game_bonus` smallint(5) unsigned default '0',
`at_game_bonus` smallint(5) default '0',
`game_use_gl` tinyint(3) unsigned default '0',
`game_flash` tinyint(1) unsigned NOT NULL default '0',
`game_show_score` tinyint(1) NOT NULL default '1',
`game_avail` tinyint(1) unsigned default '1',
`allow_guest` tinyint(1) unsigned default '0',
`win_width` smallint(6) NOT NULL default '0',
`win_height` smallint(6) NOT NULL default '0',
`highscore_limit` int(11) default NULL,
`at_highscore_limit` int(10) default '0',
`reverse_list` tinyint(1) NOT NULL default '0',
`played` int(10) unsigned NOT NULL default '0',
`instructions` text,
`score_type` smallint(1) default NULL,
PRIMARY KEY (`game_id`));
CREATE TABLE `phpbb_ina_scores` (
`game_name` varchar(255) default NULL,
`player_id` mediumint(8) default NULL,
`player_ip` varchar(16) default NULL,
`score` decimal(12,4) default NULL,
`date` int(11) default NULL );
CREATE TABLE `phpbb_ina_at_scores` (
`game_name` varchar(255) default NULL,
`player_id` mediumint(8) default NULL,
`player_ip` varchar(16) default NULL,
`score` decimal(12,4) default NULL,
`date` int(11) default NULL );
CREATE TABLE `phpbb_ina_sessions` (
`arcade_hash` varchar(33) default NULL,
`user_id` mediumint(8) NOT NULL default '0',
`start_time` int(11) NOT NULL default '0',
`session_ip` varchar(8) NOT NULL default '',
`page` int(1) NOT NULL default '0',
`game_name` varchar(25) default NULL,
`user_ip` varchar(16) default '0',
`ip_name` varchar(255) default NULL);
CREATE TABLE `phpbb_ina_banned` (
`username` varchar(25) default NULL,
`user_id` mediumint(8) default NULL,
`player_ip` varchar(16) default NULL,
`game` varchar(25) default NULL,
`score` mediumint(8) default NULL,
`date` varchar(16) default NULL);
CREATE TABLE `phpbb_ina_cat` (
`cat_id` mediumint(8) NOT NULL auto_increment,
`mod_id` mediumint(8) default NULL,
`cat_name` varchar(100) default NULL,
`cat_desc` text,
`icon` varchar(255) default NULL,
`special_play` smallint(5) NOT NULL default '0',
`last_game` varchar(25) default NULL,
`last_player` mediumint(8) default NULL,
`last_time` int(11) default NULL,
PRIMARY KEY (`cat_id`) );
CREATE TABLE `phpbb_ina_fav` (
`user_id` mediumint(8) NOT NULL default '0',
`game_id` mediumint(9) NOT NULL default '0');
CREATE TABLE `phpbb_ina_tour` (
`tour_id` mediumint(5) NOT NULL auto_increment,
`tour_name` varchar(25) default NULL,
`tour_desc` text,
PRIMARY KEY (`tour_id`) );
INSERT INTO `phpbb_ina_data` VALUES ('v2.0.6');
INSERT INTO `phpbb_ina_games` (`game_id`, `game_name`, `game_path`, `image_path`, `game_desc`, `game_charge`, `game_reward`, `game_bonus`, `game_use_gl`, `game_flash`, `game_show_score`, `win_width`, `win_height`, `highscore_limit`, `reverse_list`, `played`, `instructions`, `game_avail`, `allow_guest`, `cat_id`) VALUES (1, 'donkeykong', 'games/donkeykong/', '', 'The Classic - Donkey Kong', 0, 0, 0, 0, 1, 1, 448, 600, 0, 0, 0, 'CLICK where it says \'Press Space Bar To Start\' to start the game :(', 1, 1, NULL);
INSERT INTO `phpbb_config` VALUES ('default_reward_dbfield','');
INSERT INTO `phpbb_config` VALUES ('default_cash','');
INSERT INTO `phpbb_config` VALUES ('use_rewards_mod','0');
INSERT INTO `phpbb_config` VALUES ('use_cash_system','0');
INSERT INTO `phpbb_config` VALUES ('report_cheater','0');
INSERT INTO `phpbb_config` VALUES ('warn_cheater','0');
INSERT INTO `phpbb_config` VALUES ('use_point_system','0');
INSERT INTO `phpbb_config` VALUES ('use_gamelib','0');
INSERT INTO `phpbb_config` VALUES ('games_path','games/');
INSERT INTO `phpbb_config` VALUES ('gamelib_path','');
INSERT INTO `phpbb_config` VALUES ('use_gk_shop','0');
INSERT INTO `phpbb_config` VALUES ('use_allowance_system','0');
INSERT INTO `phpbb_config` VALUES ('games_per_page','25');
INSERT INTO `phpbb_config` VALUES ('games_default_img','templates/subSilver/images/games.gif');
INSERT INTO `phpbb_config` VALUES ('games_default_txt','More games available to Registered Members - No Fee - No Catch.<br />');
INSERT INTO `phpbb_config` VALUES ('games_default_id','0');
INSERT INTO `phpbb_config` VALUES ('games_offline','0');
INSERT INTO `phpbb_config` VALUES ('games_cheat_mode','1');
INSERT INTO `phpbb_config` VALUES ('games_guest_highscore', '1');
INSERT INTO `phpbb_config` VALUES ('games_auto_size', '1');
INSERT INTO `phpbb_config` VALUES ('games_at_highscore', '1');
INSERT INTO `phpbb_config` VALUES ('games_show_stats', '1');
INSERT INTO `phpbb_config` VALUES ('games_image_width', '50');
INSERT INTO `phpbb_config` VALUES ('games_image_height', '50');
INSERT INTO `phpbb_config` VALUES ('games_per_admin_page', '25');
# EoM
Ten slotte nog mijn vraag:
Ik heb nu 3 categorieen, ik wil als 4e categorie een categorie: Games, die dan doorverwijst naar activity.php
Dus dat ik onder de 3e categorie dit krijg als 4e categorie:
Het klinkt misschien een beetje raar hoe ik het uitleg, maa rik hoop dat jullie begrijpen wat ik bedoel
