https://www.icyphoenix.com/viewtopic.php?f=35&t=671 ----------------------------------- Vortex Mon 04 Dec, 2006 18:49 Difus: Problem With Chatbox ----------------------------------- I wanted to install chabox i found in contrib folder but I noticed a thing I don't understand... in the installation .txt I find: [quote]MOD Version: 1.1.9g XS ## for phpBB XS by difus ## Installation Level: easy ## Installation Time: 10 Minutes ## Files To Edit: 3 ## i[color=#1900ff]ndex.php ## templates/subSilver/index_body.tpl ## language/lang_english/lang_main.php[/color] [/quote] And then, in the instructions: [quote]#-----[ OPEN ]--------------------------------------------- # [color=#ff003f]forum.php[/color] #-----[ OPEN ]--------------------------------------------- # [color=#ff000c]language/lang_english/lang_main.php[/color] #-----[ COPY ]-------------------------------------------- # copy chatbox_front.php to chatbox_front.php copy chatbox_mod/*.* to chatbox_mod/[/quote] The files I have to modify are different... why? ----------------------------------- Zuker Mon 04 Dec, 2006 19:07 Re: Difus: Problem With Chatbox ----------------------------------- i've installed this on my xs and i've only made : [code]# #-----[ OPEN ]--------------------------------------------- # forum.php # #-----[ FIND ]--------------------------------------------- # $template->assign_vars(array( 'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), 'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), 'NEWEST_USER' => sprintf($lang['Newest_user'], '', $newest_user, ''), # #-----[ BEFORE, ADD ]-------------------------------------- # // ChatBox Mod require_once($phpbb_root_path . 'chatbox_front.php'); # #-----[ FIND ]--------------------------------------------- # 'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], # #-----[ AFTER, ADD ]-------------------------------------- # // ChatBox Mod 'TOTAL_CHATTERS_ONLINE' => sprintf($lang['How_Many_Chatters'], $howmanychat), 'CHATTERS_LIST' => sprintf($lang['Who_Are_Chatting' ], $chatters), 'L_CLICK_TO_JOIN_CHAT' => $lang['Click_to_join_chat'], 'S_JOIN_CHAT' => append_sid("chatbox_mod/chatbox.$phpEx"), 'CHATBOX_NAME' => $userdata['user_id'] . '_ChatBox', // To make easier to test on my PC 'L_LOGIN_TO_JOIN_CHAT' => $lang['Login_to_join_chat'], # #-----[ OPEN ]--------------------------------------------- # language/lang_english/lang_main.php # #-----[ FIND ]--------------------------------------------- # // // That's all Folks! # #-----[ BEFORE, ADD ]-------------------------------------- # // ChatBox Mod $lang['How_Many_Chatters'] = 'There are %d user(s) on chat now'; $lang['Who_Are_Chatting' ] = '%s'; $lang['Click_to_join_chat'] = 'Click to join chat'; $lang['ChatBox'] = 'ChatBox'; $lang['log_out_chat'] = 'You have successfully logged out from chat on '; $lang['Send'] = 'Send'; $lang['Login_to_join_chat'] = 'Login to join chat'; # #-----[ COPY ]-------------------------------------------- # copy chatbox_front.php to chatbox_front.php copy chatbox_mod/*.* to chatbox_mod/ # #-----[ SQL ]--------------------------------------------- # Run these folloing queries manually or run chatbox_db_install.php once # Afterthat please remove your chatbox_db_install.php immediately # CREATE TABLE phpbb_chatbox ( id int(11) NOT NULL auto_increment, name varchar(99) NOT NULL, msg varchar(255) NOT NULL, timestamp int(10) unsigned NOT NULL, PRIMARY KEY (id)); CREATE TABLE phpbb_chatbox_session ( username varchar(99) NOT NULL, lastactive int(10) DEFAULT '0' NOT NULL, laststatus varchar(8) NOT NULL, UNIQUE username (username)); # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM[/code] ----------------------------------- Vortex Mon 04 Dec, 2006 19:21 Re: Difus: Problem With Chatbox ----------------------------------- Hi Zucker, I did exactly that, but it didn't work... reading carefully I found that files to edit and instructions don't match :shock: Now I'm trying again, putting a block in the portal (I'd like a block in which to see users in chat) but it gives: [quote]Warning: require_once() [function.require-once]: Unable to access ./chatspot_front.php in /mounted-storage/home28a/sub001/sc20402-TGHZ/www/blocks/blocks_imp_chat.php on line 43 Warning: require_once(./chatspot_front.php) [function.require-once]: failed to open stream: No such file or directory in /mounted-storage/home28a/sub001/sc20402-TGHZ/www/blocks/blocks_imp_chat.php on line 43[/quote] Line 43 is this: [b]require_once( $phpbb_root_path . 'chatspot_front.' . $phpEx );[/b] ----------------------------------- Vortex Mon 04 Dec, 2006 19:53 Re: Difus: Problem With Chatbox ----------------------------------- Whoa... solved! That was easy... line 43 is [code]require_once( $phpbb_root_path . 'chatspot_front.' . $phpEx );[/code] And should be [code]require_once( $phpbb_root_path . 'chatbox_front.' . $phpEx );[/code] I don't know why they are different... now it seems to work ----------------------------------- Zuker Mon 04 Dec, 2006 21:45 Re: Difus: Problem With Chatbox ----------------------------------- i think tha it's because chatspot_front doesn't exits :mrgreen: ----------------------------------- difus Tue 05 Dec, 2006 18:56 Re: Difus: Problem With Chatbox ----------------------------------- Zuker [img]http://www.icyphoenix.com/images/smiles/0050.gif[/img]