Solved: Request: Sudoku Mod

Mods etc.

Moderator: Integra Moderator

Solved: Request: Sudoku Mod

PostAuthor: aoowais » Sun Jun 11, 2006 3:32 am

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]
Last edited by aoowais on Sat Jun 17, 2006 7:35 am, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 2:22 am
Cash on hand: 0.00

Re: Request: Sudoku Mod

PostAuthor: obiku » Sun Jun 11, 2006 11:21 pm

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.
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Request: Sudoku Mod

PostAuthor: aoowais » Mon Jun 12, 2006 2:01 am

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.
Last edited by aoowais on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 2:22 am
Cash on hand: 0.00

Re: Request: Sudoku Mod

PostAuthor: obiku » Mon Jun 12, 2006 7:21 am

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>
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Request: Sudoku Mod

PostAuthor: obiku » Mon Jun 12, 2006 12:20 pm

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]
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

PostAuthor: aoowais » Mon Jun 12, 2006 6:00 pm

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.
Last edited by aoowais on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 2:22 am
Cash on hand: 0.00

Re: Request: Sudoku Mod

PostAuthor: Teelk » Mon Jun 12, 2006 6:16 pm

Copy anything from the admin directory from the mod into the admin/modules directory, that should give you your ACP panels.
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: aoowais » Mon Jun 12, 2006 7:23 pm

Yes, Teelk, I thought about that, but there isn't an admin directory for the sudoku mod.
Last edited by aoowais on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 2:22 am
Cash on hand: 0.00

Re: Request: Sudoku Mod

PostAuthor: obiku » Mon Jun 12, 2006 9:50 pm

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.
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: Request: Sudoku Mod

PostAuthor: obiku » Tue Jun 13, 2006 11:21 am

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
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8


Return to IntegraMOD Modifications

Who is online

Registered users: Google [Bot], Helter, Vendethiel