Pagina 1 van 1

chatbox

Geplaatst: 31 mar 2006, 13:07
door calimero
chatbox


ik heb de chatbox geinstaleerd maar heb blauw beeld heb sql goed uitgevoerd :wink:

Geplaatst: 31 mar 2006, 14:39
door brandsrus
Welke chatbox? Er zijn er nogal wat voor phpbb

Geplaatst: 31 mar 2006, 15:26
door calimero
ik heb deze chatbox maar is er ook een andere die een apart scherm heeft inplaats van onder inbeeld

Code: Selecteer alles

##############################################################
## MOD Title: ChatBox
## MOD Author: Smartor < smartor_xp@hotmail.com > (Hoang Ngoc Tu) http://smartor.is-root.com
## MOD Description: This will add a LIVE chatbox on your phpBB2
##		Only registered users can chat. Admin can take
##		control chatroom by some commands(/KICK username, /CLEAR). Smilies enabled.
##		Only tested with phpBB 2.0.x/MySQL
## MOD Version: 1.1.9g
##
## Installation Level: easy
## Installation Time: 10 Minutes
## Files To Edit: 3
##	index.php
##	templates/subSilver/index_body.tpl
##	language/lang_english/lang_main.php
##
## Included Files: 10
##	chatbox_db_install.php	(only required for DB install)
##	chatbox_front.php
##	chatbox_mod/chatbox.css
##	chatbox_mod/chatbox.php
##	chatbox_mod/chatbox_config.php
##	chatbox_mod/chatbox_drop.php
##	chatbox_mod/chatbox_function.php
##	chatbox_mod/messenger_list.php
##	chatbox_mod/messenger_send.php
##	chatbox_mod/messenger_view.php
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## Author Notes:
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]---------------------------------------------
#
index.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';


#
#-----[ OPEN ]--------------------------------------------
#
templates/subSilver/index_body.tpl

#
#-----[ FIND ]--------------------------------------------
#
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>

#
#-----[ REPLACE WITH ]------------------------------------
#
<td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>

#
#-----[ FIND ]---------------------------------------------
#
  <tr>
	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>

#
#-----[ AFTER, ADD ]--------------------------------------
#
  <tr>
	<td class="row1" align="left"><span class="gensmall">{TOTAL_CHATTERS_ONLINE}&nbsp;&nbsp;&nbsp;
	<!-- BEGIN switch_user_logged_out -->
	[ {L_LOGIN_TO_JOIN_CHAT} ]
	<!-- END switch_user_logged_out -->
	<!-- BEGIN switch_user_logged_in -->
	[ <a href="javascript:void(0);" onClick="window.open('{S_JOIN_CHAT}','{CHATBOX_NAME}','scrollbars=no,width=540,height=450')">{L_CLICK_TO_JOIN_CHAT}</a> ]
	<!-- END switch_user_logged_in -->
	<br />{CHATTERS_LIST}
	</span>
	</td>
  </tr>

#
#-----[ 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

Geplaatst: 31 mar 2006, 17:25
door Bee
Je hebt wel een oude versie zeg. Maar die heeft toch een apart scherm, of niet?

Geplaatst: 31 mar 2006, 17:30
door Ivoman
Voor de allernieuwste versie (3de auteur) moet je hier zijn:
http://chatspot.sourceforge.net/forum/
phpbbChatspot v.2.0.0a7

Weldra komt phpbbChatspot v.3.0 uit. Dat wordt classe! :thumb:

Geplaatst: 31 mar 2006, 18:32
door calimero
Bee schreef:Je hebt wel een oude versie zeg. Maar die heeft toch een apart scherm, of niet?


weet niet ik zie alleen een blauw scherm onder in mijn forum


http://www.calimero.onzefret.nl/atletiek

Geplaatst: 31 mar 2006, 20:05
door Bee
Ow, dat. Dan heb je gewoon de templatewijziging niet goed gedaan in index_body.tpl, de rowspan moet nog 1 omhoog :wink:

Geplaatst: 01 apr 2006, 23:29
door calimero
Bee schreef:Ow, dat. Dan heb je gewoon de templatewijziging niet goed gedaan in index_body.tpl, de rowspan moet nog 1 omhoog :wink:
thnx bee

is het admin deel ook inhet nederlands te verkrijgen :?:

Geplaatst: 02 apr 2006, 09:38
door Paul
Zelf dat lang deel vertalen(Staat waarschijnlijk in lang_admin.php :))