|
Page 1 of 1
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 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 ndex.php
## templates/subSilver/index_body.tpl
## language/lang_english/lang_main.php
And then, in the instructions:
Quote: #-----[ OPEN ]---------------------------------------------
#
forum.php
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_main.php
#-----[ COPY ]--------------------------------------------
#
copy chatbox_front.php to chatbox_front.php
copy chatbox_mod/*.* to chatbox_mod/
The files I have to modify are different... why?
|
#1 Mon 04 Dec, 2006 18:49 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Difus: Problem With Chatbox
i've installed this on my xs and i've only made :
- #
- #-----[ 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'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),
-
- #
- #-----[ 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 <B>%d</B> user(s) on chat now';
- $lang['Who_Are_Chatting' ] = '<B>%s</B>';
- $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
____________ ? Zuker - EDDB - LPM - Sharefields
|
#2 Mon 04 Dec, 2006 19:07 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 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
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
Line 43 is this: require_once( $phpbb_root_path . 'chatspot_front.' . $phpEx );
|
#3 Mon 04 Dec, 2006 19:21 |
|
Vortex 
Joined: October 2006
Posts: 412
Location:  Prato, Italy
|
 Re: Difus: Problem With Chatbox
Whoa... solved! That was easy...
line 43 is - require_once( $phpbb_root_path . 'chatspot_front.' . $phpEx );
And should be
- require_once( $phpbb_root_path . 'chatbox_front.' . $phpEx );
I don't know why they are different... now it seems to work
|
#4 Mon 04 Dec, 2006 19:53 |
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Difus: Problem With Chatbox
i think tha it's because chatspot_front doesn't exits
____________ ? Zuker - EDDB - LPM - Sharefields
|
#5 Mon 04 Dec, 2006 21:45 |
|
difus 
Joined: August 2006
Posts: 763
Location:
|
 Re: Difus: Problem With Chatbox
Zuker
|
#6 Tue 05 Dec, 2006 18:56 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|