[BETA] Activity / Arcade Mod 2.1.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
h23jy0q3ynq
Registered User
Posts: 123
Joined: Sun Jul 23, 2006 8:19 pm

Post by h23jy0q3ynq »

Check to see if you have done this part of the install

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 

includes/constants.php 


# 
#-----[ FIND ]------------------------------------------ 
# 

?> 

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

// Arcade Mod
include_once($phpbb_root_path . 'includes/constants_arcade.' . $phpEx);
// End Arcade Mod
The Bride
Registered User
Posts: 63
Joined: Mon Apr 24, 2006 2:25 pm
Location: Ireland

Post by The Bride »

Thanks h23. I've added that little bit in but now I'm getting this:
Incorrect Installation, Version Missmatch v2.0.0 should be v2.1.1 Use the ACP DB Update routine


You see, it's the Activity Mod that I've installed, so I'm not sure if I should be inputting the installation.

What's the ACP DB Update? I am majorly confused. Lots of people seem to have games running fine on their forums but I'm still trying to install them. They seem to be installing fine. It's just clicking on that games button is where it's all going wrong. :(
User avatar
h23jy0q3ynq
Registered User
Posts: 123
Joined: Sun Jul 23, 2006 8:19 pm

Post by h23jy0q3ynq »

The Bride wrote: You see, it's the Activity Mod that I've installed, so I'm not sure if I should be inputting the installation.

What's the ACP DB Update? I am majorly confused. Lots of people seem to have games running fine on their forums but I'm still trying to install them. They seem to be installing fine. It's just clicking on that games button is where it's all going wrong. :(

What version are you trying to install?
The Bride
Registered User
Posts: 63
Joined: Mon Apr 24, 2006 2:25 pm
Location: Ireland

Post by The Bride »

I think it's 1.1.0.
User avatar
h23jy0q3ynq
Registered User
Posts: 123
Joined: Sun Jul 23, 2006 8:19 pm

Post by h23jy0q3ynq »

The Bride wrote: I think it's 1.1.0.

You might want to download the newest version then...

Version 2.1.2: http://phpbb-arcade.com/download.php?id=421
User avatar
RATT
Registered User
Posts: 734
Joined: Fri Aug 19, 2005 6:27 am

Post by RATT »

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">&nbsp;<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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp;</span></td> 
               </tr> 

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

               <tr> 
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp; 
                     <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>&nbsp; &nbsp;</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>&nbsp;&nbsp; 
    <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>&nbsp;&nbsp; 
   <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>&nbsp;&nbsp; 
    <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>&nbsp;&nbsp; 
   <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">&nbsp;<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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<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>&nbsp;</span></td> 
               </tr> 

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

               <tr> 
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp; 
                     <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>&nbsp; &nbsp;</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.
User avatar
RATT
Registered User
Posts: 734
Joined: Fri Aug 19, 2005 6:27 am

Re: Points/arcade

Post by RATT »

fmw wrote: I've looked avarywhere for this mod and can't find it, i know it must exist as i've used it on another forum!

Basically i have the cash/points mod installed and also the arcade mod, i want them incorperated so that members will be charged their pints to play games and also win points for high scores..

If anyone could help it would be much appreciated..

My forum is www.inside-ebay.netPoints/arcade


In order to use points with the arcade mod you need to have the points system mod installed.
User avatar
RATT
Registered User
Posts: 734
Joined: Fri Aug 19, 2005 6:27 am

Post by RATT »

miurdock wrote: So where from could i get some games to download? :)


You can find games for this mod at defenders website

Code: Select all

http://www.phpbb-arcade.com
or

Code: Select all

http://www.FreeOnlineGames.com
The Bride
Registered User
Posts: 63
Joined: Mon Apr 24, 2006 2:25 pm
Location: Ireland

Post by The Bride »

Thanks h23 for that link. Thanks Ratt for the info. I have eventually gotten this to work. :)

Except that :?

After playing a game, if I click on "rate", "comment", none of those links will work.
User avatar
h23jy0q3ynq
Registered User
Posts: 123
Joined: Sun Jul 23, 2006 8:19 pm

Post by h23jy0q3ynq »

The Bride wrote: Thanks h23 for that link. Thanks Ratt for the info. I have eventually gotten this to work. :)

Except that :?

After playing a game, if I click on "rate", "comment", none of those links will work.

Check out the templates/*/arcade_save_body.tpl

It should looks something like this, unless you have some sort of mod thing.

Code: Select all

<table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0">
	<tr>
		<th class="thHead" height="25"><b>{GAME_NAME}</b></th>
	</tr>
	<tr> 
		<td class="row1"><table width="100%" cellspacing="0" cellpadding="1" border="0">
			<tr> 
				<td>&nbsp;</td>
			</tr>
			<tr> 
				<td align="center"><span class="gen">{SAVED}<br />{HIGHSCORESAVED}<br />{CLOSE}&nbsp;<a href="{GAME_ID}">{PLAY_AGAIN}</a>{RATE_ID}{COMMENT_ID}&nbsp;<a href="javascript:self.close();opener.location='{FAV_ID}'"><img src="images/favorite.gif" alt=" - [{ADD_TO_FAV}]" title="{FAV_TITLE}" border="0" /></a></span></td>
			</tr>
         <tr> 
 			<tr> 
				<td>&nbsp;</td>
			</tr>
		</table></td>
	</tr>
</table>

<br clear="all" />
User avatar
miurdock
Registered User
Posts: 79
Joined: Sat Sep 24, 2005 9:30 am
Contact:

Post by miurdock »

hello,

So how could i create a tournament on arcade mod?

Image

maybe smth wrong?
wizzzzzzzz
Registered User
Posts: 23
Joined: Mon Jan 30, 2006 1:35 pm

Post by wizzzzzzzz »

miurdock wrote: hello,

So how could i create a tournament on arcade mod?

Image

maybe smth wrong?


You can not yet create a tournament.... maby in the next version :wink:
Whats up!
User avatar
miurdock
Registered User
Posts: 79
Joined: Sat Sep 24, 2005 9:30 am
Contact:

Post by miurdock »

So maybe I could update this version?
User avatar
miurdock
Registered User
Posts: 79
Joined: Sat Sep 24, 2005 9:30 am
Contact:

Post by miurdock »

So maybe I could update this version?

sorry for dublicate
wizzzzzzzz
Registered User
Posts: 23
Joined: Mon Jan 30, 2006 1:35 pm

Post by wizzzzzzzz »

miurdock wrote: So maybe I could update this version?

sorry for dublicate


Yeh when the other version is ready.. :wink:
Whats up!
Post Reply

Return to “[2.0.x] MODs in Development”