To get this mod to work properly without any errors take the private message code out since for some reason it will mess the user login and registration pages up, i dont know why since i see no errors in the coding for private messages but it will. Make sure you copy
ALL files where they go in the copy method!
Original mod
Code: Select all
#
#-----[ 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 ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Arcade Mod
include_once($phpbb_root_path . 'includes/constants_arcade.' . $phpEx);
// End Arcade Mod
#
#-----[ 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=yes';
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 ]------------------------------------------
#
$lang['Notify_on_privmsg'] = 'Notify on new Private Message';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Block_Arcade_pm'] = 'Block PM\'s from the Arcade';
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Activity MOD
$lang['Activity'] = "Games";
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
$notifypm = ( isset( $HTTP_POST_VARS['notifypm']) ) ? ( ( $HTTP_POST_VARS['notifypm'] ) ? TRUE : 0 ) : TRUE;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$games_block_pm = ( isset($HTTP_POST_VARS['games_block_pm']) ) ? ( ($HTTP_POST_VARS['games_block_pm']) ? TRUE : 0 ) : TRUE;
#
#-----[ FIND ]------------------------------------------
#
, user_notify_pm = $notifypm,
#
#-----[ AFTER, ADD ]------------------------------------------
#
games_block_pm = $games_block_pm,
#
#-----[ FIND ]------------------------------------------
#
$notifypm = $this_userdata['user_notify_pm'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$games_block_pm = $this_userdata['games_block_pm'];
#
#-----[ FIND ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="notifypm" value="' . $notifypm . '" />';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="games_block_pm" value="' . $games_block_pm . '" />';
#
#-----[ FIND ]------------------------------------------
#
'NOTIFY_PM_NO' => (!$notifypm) ? 'checked="checked"' : '',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'BLOCK_PM_YES' => ( $games_block_pm ) ? 'checked="checked"' : '',
'BLOCK_PM_NO' => ( !$games_block_pm ) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------
#
'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BLOCK_ARCADE_PM' => $lang['Block_Arcade_pm'],
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_avatar.php
#
#-----[ FIND ]------------------------------------------
#
, &$viewemail, &$notifypm,
#
#-----[ AFTER, ADD ]------------------------------------------
#
&$games_block_pm,
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$notifypm = ( isset($HTTP_POST_VARS['notifypm']) ) ? ( ($HTTP_POST_VARS['notifypm']) ? TRUE : 0 ) : TRUE;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$games_block_pm = ( isset($HTTP_POST_VARS['games_block_pm']) ) ? ( ($HTTP_POST_VARS['games_block_pm']) ? TRUE : 0 ) : TRUE;
#
#-----[ FIND ]------------------------------------------
#
, user_notify_pm = $notifypm,
#
#-----[ AFTER, ADD ]------------------------------------------
#
games_block_pm = $games_block_pm,
#
#-----[ FIND ]------------------------------------------
#
user_notify, user_notify_pm,
#
#-----[ AFTER, ADD ]------------------------------------------
#
games_block_pm,
#
#-----[ FIND ]------------------------------------------
#
$notifyreply, $notifypm,
#
#-----[ AFTER, ADD ]------------------------------------------
#
$games_block_pm,
#
#-----[ FIND ]------------------------------------------
#
$notifypm = $userdata['user_notify_pm'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$games_block_pm = $userdata['games_block_pm'];
#
#-----[ FIND ]------------------------------------------
#
$viewemail, $notifypm,
#
#-----[ AFTER, ADD ]------------------------------------------
#
$games_block_pm,
#
#-----[ FIND ]------------------------------------------
#
'NOTIFY_PM_NO' => ( !$notifypm ) ? 'checked="checked"' : '',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'BLOCK_PM_YES' => ( $games_block_pm ) ? 'checked="checked"' : '',
'BLOCK_PM_NO' => ( !$games_block_pm ) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------
#
'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BLOCK_ARCADE_PM' => $lang['Block_Arcade_pm'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}:</span></td>
<td class="row2">
<input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_BLOCK_ARCADE_PM}:</span></td>
<td class="row2">
<input type="radio" name="games_block_pm" value="1" {BLOCK_PM_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="games_block_pm" value="0" {BLOCK_PM_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}:</span></td>
<td class="row2">
<input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_BLOCK_ARCADE_PM}:</span></td>
<td class="row2">
<input type="radio" name="games_block_pm" value="1" {BLOCK_PM_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="games_block_pm" value="0" {BLOCK_PM_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
Modified without the private messages
Code: Select all
#
#-----[ 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 ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Arcade Mod
include_once($phpbb_root_path . 'includes/constants_arcade.' . $phpEx);
// End Arcade Mod
#
#-----[ 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=yes';
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 ]------------------------------------------
#
Then go to your admin panel anc click on >>INSTALL<<
under the Arcade category. It works flawlessly and make sure you are using the newest version which is MOD Version: 2.1.2.
Defender offers support for this mod at
His forum for
FREE
To get this to work with easymod, Take the copy move method coding out of the install.txt file and copy the files where they go yourself and then upload the install text to a folder named arcade in the mods directory in your forum using the modified version i posted. It
will install with easymod. You may have to substitute the coding for the overall header with coding that matches
your template if your installing on a template other than subSilver.