Mchat -> sudoku

форум посвящен дальнейшим разработкам базового мода SUDOKU

Moderator: el_teniente

Mchat -> sudoku

Postby xpmen on Thu Dec 23, 2010 11:23 pm

ello el_teniente ,



can you tell me how to put the Mchat on sudoku page



in the file sudoku_body.html



I add

Code: Select all
<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->

<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and not S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->






nd in the file sudoku.php

after
Code: Select all
//Standard page header

page_header($user->lang['SUDOKU']);




I add



Code: Select all
// BEGIN mChat Mod

$mchat_installed = (!empty($config['mchat_on_index']) && !empty($config['mchat_enable'])) ? true : false;

if(!defined('MCHAT_INCLUDE') && $mchat_installed && $auth->acl_get('u_mchat_view') && $user->data['user_mchat_index'])

{

   define('MCHAT_INCLUDE', true);

   $mchat_include_index = true;

   include($phpbb_root_path . 'mchat.' . $phpEx);

}

// END mChat Mod




but its not working, I have a blank page

can you explain
Last edited by xpmen on Mon Jan 03, 2011 2:45 pm, edited 1 time in total.
User avatar
xpmen
Младший ковбой
Младший ковбой
 
Posts: 42
Joined: Tue Feb 17, 2009 10:30 pm
Location: belgium
Gender: Male
Country: Belgium

Re: Mcahr -> sudoku

Postby el_teniente on Thu Dec 23, 2010 11:46 pm

o, i can't because i don't know what is Mchat smile:::

die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Re: Mcahr -> sudoku

Postby xpmen on Fri Dec 24, 2010 8:25 am

ops excuse me un:::



chat is a shoutbox

Image



Here is the archive
Attachments
phpBB_mChat_1_3_4.zip
(505.67 KB) Downloaded 757 times
User avatar
xpmen
Младший ковбой
Младший ковбой
 
Posts: 42
Joined: Tue Feb 17, 2009 10:30 pm
Location: belgium
Gender: Male
Country: Belgium

Re: Mcahr -> sudoku

Postby el_teniente on Fri Dec 24, 2010 2:28 pm

his part in install.xml

Code: Select all


<!-- IF S_MCHAT_ENABLE and (S_MCHAT_ON_INDEX or U_MCHAT) -->

<script type="text/javascript" src="{ROOT_PATH}mchat/jquery-1.4.2.min.js"></script>

<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_cookie_mini.js"></script>

<link href="{T_THEME_PATH}/mchat_prosilver.css" rel="stylesheet" type="text/css" />

<!-- ENDIF -->



many JS functions included if chat enabled

Sudoku MOD has some JS functions included also

maybe a conflict between them un:::

do all Sudoku functions(such as helper toggle call/hide) work properly if chat included?
die hard---live easy
User avatar
el_teniente
Статс-админ
Статс-админ
 
Posts: 4283
Joined: Mon Nov 07, 2005 7:51 pm
Location: Белокаменная
Gender: Male
Country: Russian Federation

Re: Mcahr -> sudoku

Postby xpmen on Mon Jan 03, 2011 2:43 pm

1.thank you el_teniente,

I have the solution,

for others here's how

sudoku/sudoku.php



find

Code: Select all
// Start session

$user->session_begin();

$auth->acl($user->data);

$user->setup('mods/sudoku');




dd

Code: Select all
    // BEGIN mChat Mod

    $mchat_installed = (!empty($config['mchat_on_index']) && !empty($config['mchat_enable'])) ? true : false;

    if(!defined('MCHAT_INCLUDE') && $mchat_installed && $auth->acl_get('u_mchat_view') && $user->data['user_mchat_index'])

    {

       define('MCHAT_INCLUDE', true);

       $mchat_include_index = true;

       include($phpbb_root_path . 'mchat.' . $phpEx);

    }

    // END mChat Mod




n styles/prosilver/template/sudoku/sudoku_body.html (or you want to see the shoutbox)



add

Code: Select all
<!-- IF S_MCHAT_ENABLE -->

<!-- INCLUDE mchat_body.html -->

     <!-- ENDIF -->


smile:::
User avatar
xpmen
Младший ковбой
Младший ковбой
 
Posts: 42
Joined: Tue Feb 17, 2009 10:30 pm
Location: belgium
Gender: Male
Country: Belgium

Re: Mchat -> sudoku

Postby xpmen on Sat Jul 09, 2011 12:50 pm

un:::

User avatar
xpmen
Младший ковбой
Младший ковбой
 
Posts: 42
Joined: Tue Feb 17, 2009 10:30 pm
Location: belgium
Gender: Male
Country: Belgium


Return to Sudoku MOD

Who is online

Users browsing this forum: No registered users and 1 guest


Page generation time 0.07 sec (PHP: 71% - SQL: 29%) - DB queries 26 - Peak memory usage 3.53 MB
cron