Instalare Ajax Chat In phpBB

Dupa cum cred foarte multi inca nu stiu cum se instaleaza corect modul AJAX CHAT in phpBB, asa ca m-am gandit sa va fac un tutorial, pas cu pas cum se instaleaza pe teme subsilver2. In primul rand urcati pe hostul vostru tot ce este in fulderul root, absolut totul, dupa care incepem asa:

Deschideti index.php:

Cautati:

$user->setup(‘viewforum’);

Adaugati dupa:

//-- mod : AJAX Chat ----------------------------------------------------
//-- add
include($phpbb_root_path . 'shout.' . $phpEx);
//-- fin mod : AJAX Chat ------------------------------------------------
  • Deschideti viewonline.php:
Cautati:
case 'index':
            $location = $user->lang['INDEX'];
            $location_url = append_sid("{$phpbb_root_path}index.$phpEx");
        break;
Adaugati dupa:
//-- mod : AJAX Chat ----------------------------------------------------
        //-- add
        case 'chat':
		    $location = $user->lang['VIEWING_CHAT'];
		    $location_url = append_sid("{$phpbb_root_path}chat.$phpEx");
	    break;
        //-- fin mod : AJAX Chat ------------------------------------------------

  • Deschideti includes/functions.php:
Cautati:
'U_ACP' => ($auth->acl_get('a_') && !empty($user->data['is_registered'])) ? append_sid("{$phpbb_root_path}adm/index.$phpEx", false, true, $user->session_id) : '')
Adaugati Inainte:
'U_MCP'		 => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '',
Cautati:
'U_RESTORE_PERMISSIONS'    => ($user->data['user_perm_from'] && $auth->acl_get('a_switchperm')) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=restore_perm') : '',
Adaugati dupa:
//-- mod : AJAX Chat ----------------------------------------------------
        //-- add
        'U_CHAT'				    => append_sid("{$phpbb_root_path}chat.$phpEx"),
        'S_SHOUT'                    => true,
        //-- fin mod : AJAX Chat ------------------------------------------------

  • Deschideti language/en/common.php:
Cautati:
'CHANGING_PROFILE'        => 'Changing profile settings',
Adaugati dupa:
//-- mod : AJAX Chat ----------------------------------------------------
    //-- add
    'CHAT'                    => 'Chat',
    'CHAT_EXPLAIN'            => 'Chat Center',
    //-- fin mod : AJAX Chat ------------------------------------------------
Cautati:
'VIEWED'                    => 'Viewed',
Adaugati dupa:
//-- mod : AJAX Chat ----------------------------------------------------
    //-- add
    'VIEWING_CHAT'		    => 'Viewing Shoutbox',
    //-- fin mod : AJAX Chat ------------------------------------------------

SubSilver2

  • Deschideti styles/subsilver2/template/overall_header.html:

Cautati:

<a href="{U_FAQ}"><img src="{T_THEME_PATH}/images/icon_mini_faq.gif" width="12" height="13" alt="*" /> {L_FAQ}</a>

Adaugati dupa:

&nbsp; &nbsp;<a href="{U_CHAT}"><img src="{T_THEME_PATH}/images/icon_chat.gif" width="12" height="13" alt="*" /> {L_CHAT}</a>

 

  • Deschideti styles/subsilver2/template/index_body.html:

Cautati:

<!-- INCLUDE forumlist_body.html -->

Adaugati dupa:

<br />
                <!-- INCLUDE chat_body.html -->

 

  • Deschideti styles/subsilver2/theme/stylesheet.css:

Cautati:

/* Layout
 ------------ */

Adaugati dupa:

@import url("chat.css");

Dupa ce ati terminat toti pasi de mai sus accesati in browser http://www.site.ro/forum/chat_install.php?mode=install un exemplu mai bun, ar fi, sa zicem ca eu imi creez forum, as accesa asa:
http://www.blogsimples.com/forum/chat_install.php?mode=install