Iron-Monkey wrote: How come when I click on the icon to get that pop-up game window, I don't get a message that says "I have so-and-so" points (I am using the point system) because I have about 130 points before I install this mod and I also don't get the message that says it costs so-and-so to play?
I did set it in the admin panel to have 10 points to play...etc.....
Napoleon wrote:Cyber_Chaos wrote:at my site when i go into the game it just shows some sidebars. Then i click on them and choose properties and it says: www.debat.fastweb.dk/phpbb2/games/tetris/bar-bh.gif... But my phpbb2 is direct at www.debat.fastweb.dk
I tried to register at your site to see whats going on but got an error : Could not insert data into user table. 8O But it sounds like I forgot to tell you to change all the phpbb2 directory names in the tetris.js file and tetris_body.tpl file.
Napoleon wrote: Open up viewtopic.php and find :And change it to look like :Code: Select all
$user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid'];
This should check for a sig charge and will be in the next update. Crap I missed alot.Code: Select all
if ( $board_config['use_allowance_system'] ) { if ($postrow[$i]['user_money'] >= $board_config['sig_charge']) { $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid']; } else $user_sig = ''; } else { $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid']; }
![]()
![]()
ilpil wrote:Napoleon wrote: --8<-- *SNIP* --8<--
When I change to this, all the signatures disappear. Even if I set Sig cost to 0 (zero). They show up with the original code though. But I don't know if it that code does it's job (charging users who use signatures) Even those who have 1000+ plinkos/tokens can't show their signatures.
ilpil wrote: Edit2: And by the way, I think you have to add "http://" to the Copyright-links. Cuz now they're not working.
ilpil wrote: Edit3: It seems that I can't play the game if I have 1000 Tokens or more. Even how big the fee for playing is. If the user has under 1000 Tokens, it works, now it just says the "Get more Tokens"-message.
Code: Select all
// Generate page
$template->assign_vars(array('USERNAME' => $userdata['username'],
'USERID' => $userdata['user_id'],
'MONEY' => $userdata['user_money'],
'N_MONEY' => $board_config['money_name'],
'TETRIS_CO' => $tetris_co,
'TETRIS_BS' => $tetris_bs,
'S_TETRIS_ACTION' => append_sid('activity.'.$phpEx.'?mode=new_tetris_hs'))
);
Code: Select all
// Generate page
if( $board_config['use_allowance_system'] )
{
$template->assign_vars(array('USERNAME' => $userdata['username'],
'USERID' => $userdata['user_id'],
'MONEY' => $userdata['user_money'],
'N_MONEY' => $board_config['money_name'],
'TETRIS_CO' => $tetris_co,
'TETRIS_BS' => $tetris_bs,
'S_TETRIS_ACTION' => append_sid('activity.'.$phpEx.'?mode=new_tetris_hs'))
);
}
else if ( $board_config['use_point_system'] )
{
$template->assign_vars(array('USERNAME' => $userdata['username'],
'USERID' => $userdata['user_id'],
'MONEY' => $userdata['user_points'],
'N_MONEY' => $board_config['points_name'],
'TETRIS_CO' => $tetris_co,
'TETRIS_BS' => $tetris_bs,
'S_TETRIS_ACTION' => append_sid('activity.'.$phpEx.'?mode=new_tetris_hs'))
);
}
Code: Select all
function init(id,user,money,nmoney,cost,hsb)
{
game_started = 0;
user_id = id;
user_name = user;
user_money = money;
money_name = nmoney;
Code: Select all
function init(id,user,money,nmoney,cost,hsb)
{
game_started = 0;
user_id = id;
user_name = user;
user_money = parseInt(money);
money_name = nmoney;
Code: Select all
if (( $board_config['use_allowance_system'] ) || ( $board_config['use_point_system'] ))
{
$ts_money = ($ts_money + $tetris_bs);
}
else $ts_money = 0;
}
Code: Select all
else if ($ts_score > 0) // Insert user if the score is empty.
{
if (($tetris_tn2 == '-:-') || ($ts_score > $tetris_ts2))
{
if ($ts_score > $tetris_ts2)
{
// Bump the scores
$tetris_ts10 = $tetris_ts9; $tetris_tn10 = $tetris_tn9;
$tetris_ts9 = $tetris_ts8; $tetris_tn9 = $tetris_tn8;
$tetris_ts8 = $tetris_ts7; $tetris_tn8 = $tetris_tn7;
$tetris_ts7 = $tetris_ts6; $tetris_tn7 = $tetris_tn6;
$tetris_ts6 = $tetris_ts5; $tetris_tn6 = $tetris_tn5;
$tetris_ts5 = $tetris_ts4; $tetris_tn5 = $tetris_tn4;
$tetris_ts4 = $tetris_ts3; $tetris_tn4 = $tetris_tn3;
$tetris_ts3 = $tetris_ts2; $tetris_tn3 = $tetris_tn2;
}
$tetris_ts2 = $ts_score;
$tetris_tn2 = $ts_name;
}
else if (($tetris_tn3 == '-:-') || ($ts_score > $tetris_ts3))
{
if ($ts_score > $tetris_ts3)
{
// Bump the scores
$tetris_ts10 = $tetris_ts9; $tetris_tn10 = $tetris_tn9;
$tetris_ts9 = $tetris_ts8; $tetris_tn9 = $tetris_tn8;
$tetris_ts8 = $tetris_ts7; $tetris_tn8 = $tetris_tn7;
$tetris_ts7 = $tetris_ts6; $tetris_tn7 = $tetris_tn6;
$tetris_ts6 = $tetris_ts5; $tetris_tn6 = $tetris_tn5;
$tetris_ts5 = $tetris_ts4; $tetris_tn5 = $tetris_tn4;
$tetris_ts4 = $tetris_ts3; $tetris_tn4 = $tetris_tn3;
}
$tetris_ts3 = $ts_score;
$tetris_tn3 = $ts_name;
}
else if (($tetris_tn4 == '-:-') || ($ts_score > $tetris_ts4))
{
if ($ts_score > $tetris_ts4)
{
// Bump the scores
$tetris_ts10 = $tetris_ts9; $tetris_tn10 = $tetris_tn9;
$tetris_ts9 = $tetris_ts8; $tetris_tn9 = $tetris_tn8;
$tetris_ts8 = $tetris_ts7; $tetris_tn8 = $tetris_tn7;
$tetris_ts7 = $tetris_ts6; $tetris_tn7 = $tetris_tn6;
$tetris_ts6 = $tetris_ts5; $tetris_tn6 = $tetris_tn5;
$tetris_ts5 = $tetris_ts4; $tetris_tn5 = $tetris_tn4;
}
$tetris_ts4 = $ts_score;
$tetris_tn4 = $ts_name;
}
else if (($tetris_tn5 == '-:-') || ($ts_score > $tetris_ts5))
{
if ($ts_score > $tetris_ts5)
{
// Bump the scores
$tetris_ts10 = $tetris_ts9; $tetris_tn10 = $tetris_tn9;
$tetris_ts9 = $tetris_ts8; $tetris_tn9 = $tetris_tn8;
$tetris_ts8 = $tetris_ts7; $tetris_tn8 = $tetris_tn7;
$tetris_ts7 = $tetris_ts6; $tetris_tn7 = $tetris_tn6;
$tetris_ts6 = $tetris_ts5; $tetris_tn6 = $tetris_tn5;
}
$tetris_ts5 = $ts_score;
$tetris_tn5 = $ts_name;
}
else if (($tetris_tn6 == '-:-') || ($ts_score > $tetris_ts6))
{
if ($ts_score > $tetris_ts6)
{
// Bump the scores
$tetris_ts10 = $tetris_ts9; $tetris_tn10 = $tetris_tn9;
$tetris_ts9 = $tetris_ts8; $tetris_tn9 = $tetris_tn8;
$tetris_ts8 = $tetris_ts7; $tetris_tn8 = $tetris_tn7;
$tetris_ts7 = $tetris_ts6; $tetris_tn7 = $tetris_tn6;
}
$tetris_ts6 = $ts_score;
$tetris_tn6 = $ts_name;
}
else if (($tetris_tn7 == '-:-') || ($ts_score > $tetris_ts7))
{
if ($ts_score > $tetris_ts7)
{
// Bump the scores
$tetris_ts10 = $tetris_ts9; $tetris_tn10 = $tetris_tn9;
$tetris_ts9 = $tetris_ts8; $tetris_tn9 = $tetris_tn8;
$tetris_ts8 = $tetris_ts7; $tetris_tn8 = $tetris_tn7;
}
$tetris_ts7 = $ts_score;
$tetris_tn7 = $ts_name;
}
else if (($tetris_tn8 == '-:-') || ($ts_score > $tetris_ts8))
{
if ($ts_score > $tetris_ts8)
{
// Bump the scores
$tetris_ts10 = $tetris_ts9; $tetris_tn10 = $tetris_tn9;
$tetris_ts9 = $tetris_ts8; $tetris_tn9 = $tetris_tn8;
}
$tetris_ts8 = $ts_score;
$tetris_tn8 = $ts_name;
}
else if (($tetris_tn9 == '-:-') || ($ts_score > $tetris_ts9))
{
if ($ts_score > $tetris_ts9)
{
// Bump the scores
$tetris_ts10 = $tetris_ts9; $tetris_tn10 = $tetris_tn9;
}
$tetris_ts9 = $ts_score;
$tetris_tn9 = $ts_name;
}
else if (($tetris_tn10 == '-:-') || ($ts_score > $tetris_ts10))
{
$tetris_ts10 = $ts_score;
$tetris_tn10 = $ts_name;
}
$sql = "UPDATE " . GK . "
SET tetris_ts1 = '$tetris_ts1', tetris_tn1 = '$tetris_tn1', tetris_ts2 = '$tetris_ts2', tetris_tn2 = '$tetris_tn2', tetris_ts3 = '$tetris_ts3', tetris_tn3 = '$tetris_tn3', tetris_ts4 = '$tetris_ts4', tetris_tn4 = '$tetris_tn4', tetris_ts5 = '$tetris_ts5', tetris_tn5 = '$tetris_tn5', tetris_ts6 = '$tetris_ts6', tetris_tn6 = '$tetris_tn6', tetris_ts7 = '$tetris_ts7', tetris_tn7 = '$tetris_tn7', tetris_ts8 = '$tetris_ts8', tetris_tn8 = '$tetris_tn8', tetris_ts9 = '$tetris_ts9', tetris_tn9 = '$tetris_tn9', tetris_ts10 = '$tetris_ts10', tetris_tn10 = '$tetris_tn10' ";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not update Gk data', '', __LINE__, __FILE__, $sql);
}
}