Page 1 of 1

Solved: Request: Sudoku Mod

PostPosted: Sun Jun 11, 2006 3:32 am
Author: aoowais
Hi, is it possible to port this mod over to integramod? I think most of the members in my forum would like to play some sudoku too.

[url=http]Link here[/url]

Re: Request: Sudoku Mod

PostPosted: Sun Jun 11, 2006 11:21 pm
Author: obiku
To port this mod isn't so difficult, but in this MOD there is only an upgrade for the SQL, but that only upgrades the version. The tables of this MOD are yet not created. So first you have to find out what the tables look like.

Re: Request: Sudoku Mod

PostPosted: Mon Jun 12, 2006 2:01 am
Author: aoowais
Here is the link for 1.04

[url=http]Sudoku[/url]

Upgrade to 1.06 use this code, save as sudoku_update_106.php and run it.

Code: Select all
<?php /***************************************************************************  *                               db_update.php  *                            -------------------  *  *   copyright            ]http://sourceforge.net/projects/dbgenerator[/url]  *   Website              : [url=http://freakingbooty.no-ip.com/]http://freakingbooty.no-ip.com/[/url] & [url=http://www.rapiddr3am.net]http://www.rapiddr3am.net[/url]  *  ***************************************************************************/  /***************************************************************************  *  *   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_INDEX); init_userprefs($userdata); // // End session management //    if( !$userdata['session_logged_in'] ) {    $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';    header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));    exit; }  if( $userdata['user_level'] != ADMIN ) {    message_die(GENERAL_MESSAGE, 'You are not authorised to access this page'); }    $page_title = 'Updating the database'; include($phpbb_root_path . 'includes/page_header.'.$phpEx);  echo '<table>'; echo '<tr><th>Updating the database</th></tr><tr><td><span><ul>';    $sql = array();  $sql[] = "UPDATE `" . $table_prefix . "config` SET `config_value` = '1.0.6' WHERE `config_name` = 'sudoku_version' LIMIT 1";  for( $i = 0; $i <count>sql_query ($sql[$i]) )    {       $error = $db->sql_error();         echo '<li>' . $sql[$i] . '<br> +++ <font><b>Error:</b></font> ' . $error['message'] . '</li><br>';    }    else    {       echo '<li>' . $sql[$i] . '<br> +++ <font><b>Successful</b></font></li><br>';    } }    echo '</ul></span></td></tr><tr><td> </td></tr>';  echo '<tr><th>Installation Complete</th></tr><tr><td><span>Please be sure to delete this file now.<br>If you require any further assistance, please visit the <a>phpBBHacks.com Support Forums</a>.</span></td></tr>'; echo '<tr><td><span><a>Go back to your index page</a>.</span></td></table>';  include($phpbb_root_path . 'includes/page_tail.'.$phpEx);  ?>  


I think then you can use the file I provided above to get to 1.07.

Re: Request: Sudoku Mod

PostPosted: Mon Jun 12, 2006 7:21 am
Author: obiku
Where did you get that file, are there any updated files in the upgrade from 1.0.4 to 1.0.6. If so, I want them. So I can make an new install with the latest files for you.

The db_update.php file you gave here is only to update the version info in the database. <img>

Re: Request: Sudoku Mod

PostPosted: Mon Jun 12, 2006 12:20 pm
Author: obiku
You can download version 1.0.7 here

[url=http]Familie-Smit.nl ==> [url=http://www.familie-smit.nl/forums/dload.php?action=file&file_id=8]http://www.familie-smit.nl/forums/dload ... &file_id=8[/url][/url]

PostPosted: Mon Jun 12, 2006 6:00 pm
Author: aoowais
Thanks. But I don't see anything appear on my admin panel. I'd also like to edit the options for this game on my admin panel, eg, the cash that the user can earn after playing the game.

Re: Request: Sudoku Mod

PostPosted: Mon Jun 12, 2006 6:16 pm
Author: Teelk
Copy anything from the admin directory from the mod into the admin/modules directory, that should give you your ACP panels.

PostPosted: Mon Jun 12, 2006 7:23 pm
Author: aoowais
Yes, Teelk, I thought about that, but there isn't an admin directory for the sudoku mod.

Re: Request: Sudoku Mod

PostPosted: Mon Jun 12, 2006 9:50 pm
Author: obiku
No thats correct. And for now there is no need for an extra admin panel for Sudoku. The only thing you have to do is.

Goto ACP->General managment->qbar

Create in one of your menu's an option for Sudoku, so you can play.

Re: Request: Sudoku Mod

PostPosted: Tue Jun 13, 2006 11:21 am
Author: obiku
I forgot a peace of code change
Code: Select all
##-----[ OPEN ]------------------------------------------#profilcp/def/def_userfuncs_viewonline.php##-----[ FIND ]------------------------------------------#             case PAGE_FAQ];                 $location_url = "faq.$phpEx";                 break; ##-----[ AFTER, ADD ]------------------------------------------#                         // sudoku mod                         case PAGE_SUDOKU:                             $location = $lang['Sudoku'];                             $location_url = "sudoku.$phpEx";                             break;                         // end sudoku mod  

To make it appear in viewonline