MOD ShoutBOX

Du suchst einen bestimmten Mod, weißt aber nicht genau wo bzw. ob er überhaupt existiert? Wenn dir dieser Artikel nicht weiterhilft, kannst du hier den von dir gewünschten/gesuchten Mod beschreiben ...
Falls ein Mod-Autor eine der Anfragen hier aufnimmt um einen neuen Mod zu entwicklen, geht's in phpBB 2.0: Mods in Entwicklung weiter.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
strange-t

Beitrag von strange-t »

neuerNewbie hat geschrieben:
PapaMooN hat geschrieben:und wie stell ich da die uhrzeit und des datum richtig ein ??? i
bei mir ist das in 12 std mag aber wie im forum 24 std zeitangabe
Das würd ich auch gern mal wissen. Für eure Hilfe wäre ich Dankbar :wink:
Hey, das ist eigentlich ganz einfach.
Öffnet eure Sprach-Datei also zum Beispiel ROOT/language/lang_german/lang_main.php

dort sucht ihr dann nach

Code: Alles auswählen

$lang['Shoutbox_date'] = ' d m Y h:i:s';
an der Stelle wo das d m Y h:i:s steht, könnt ihr euer gewünschtest Format dann eintragen. Um nur auf 24 Stunden umzustellen macht aus dem kleinen "h" ein großes "H".

Die komplette Zeile sollte dann so aussehen:

Code: Alles auswählen

$lang['Shoutbox_date'] = ' d m Y H:i:s';
:)

Wenn ihr noch weitere Sachen ausser die 24 Stunden-Anzeige ändern wollt, könnt ihr hier nachsehen wozu die Buchstaben alle stehen...
(Tabelle 1 auf der folgenden Seite)

http://www.php.net/date


Hoffe ich konnte helfen! :)
ASabine
Mitglied
Beiträge: 37
Registriert: 04.02.2006 11:15
Wohnort: Linz
Kontaktdaten:

Beitrag von ASabine »

Hab da eine Frage...

Hab mir jetzt alles durchgelesen... hab die Shoutbox eingebaut.. funktioniert soweit alles..

nun wollte ich die Shoutbox ins Portal einbinden.. hab es soweit geschafft...

nur hab ich da jetzt im Portal ein leeres Kasterl, wo nichts drin steht.. ich nehme an, der Grund dafür ist, dass ich die Änderung von index.php nicht im portal.php durchgeführt hab, weil ich schlicht und ergreifend keine ahnung hab, wo in Gottes namen ich den code einfügen soll.

Meine portal.php Datei

Code: Alles auswählen

<?php
/***************************************************************************
 *                                portal.php
 *                            -------------------
 *   begin                : Tuesday, August 13, 2002
 *   copyright            : (C) 2002 Smartor
 *   email                : smartor_xp@hotmail.com
 *
 *   $Id: portal.php,v 2.1.7 2003/01/30, 17:05:58 Smartor Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   Some code in this file I borrowed from the original index.php, Welcome
 *   Avatar MOD and others...
 *
 ***************************************************************************/

//
// Set configuration for ezPortal
//

// Welcome Text: note that we are in PHP file, so use \' instead of ' and use \\ instead of \ (HTML enabled)
$CFG['welcome_text'] = '';

// Number of news on portal
$CFG['number_of_news'] = '1';

// Length of news
$CFG['news_length'] = '200';

// News Forum ID: separate by comma for multi-forums, eg. '1,2,5'
$CFG['news_forum'] = '';

// Poll Forum ID: separate by comma for multi-forums, eg. '3,8,14'
$CFG['poll_forum'] = '';

//
// END configuration
// --------------------------------------------------------

define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'fetchposts.'.$phpEx);
include($config->url('includes/class_stats'));


//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//

//
// If you don't use these stats on your index you may want to consider
// removing them
//
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$total_topics = get_db_stat('topiccount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];

if( $total_posts == 0 )
{
	$l_total_post_s = $lang['Posted_articles_zero_total'];
}
else if( $total_posts == 1 )
{
	$l_total_post_s = $lang['Posted_article_total'];
}
else
{
	$l_total_post_s = $lang['Posted_articles_total'];
}

if( $total_users == 0 )
{
	$l_total_user_s = $lang['Registered_users_zero_total'];
}
else if( $total_users == 1 )
{
	$l_total_user_s = $lang['Registered_user_total'];
}
else
{
	$l_total_user_s = $lang['Registered_users_total'];
}

if( $userdata['session_logged_in'] )
{
	$sql = "SELECT COUNT(post_id) as total
			FROM " . POSTS_TABLE . "
			WHERE post_time >= " . $userdata['user_lastvisit'];
	$result = $db->sql_query($sql);
	if( $result )
	{
		$row = $db->sql_fetchrow($result);
		$lang['Search_new'] = $lang['Search_new'] . "&nbsp;(" . $row['total'] . ")";
	}
}

//
// Start output of page
//
define('SHOW_ONLINE', true);
$page_title = $lang['Home'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->set_filenames(array(
	'body' => 'portal_body.tpl')
);

//
// Avatar On Index MOD
//
$avatar_img = '';
if ( $userdata['user_avatar_type'] && $userdata['user_allowavatar'] )
{
	switch( $userdata['user_avatar_type'] )
	{
		case USER_AVATAR_UPLOAD:
			$avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $userdata['user_avatar'] . '" alt="" border="0" />' : '';
			break;
		case USER_AVATAR_REMOTE:
			$avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $userdata['user_avatar'] . '" alt="" border="0" />' : '';
			break;
		case USER_AVATAR_GALLERY:
			$avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $userdata['user_avatar'] . '" alt="" border="0" />' : '';
			break;
	}
}
// Check For Anonymous User
if ($userdata['user_id'] != '-1')
{
	$name_link = '<a href="' . append_sid("profile.$phpEx?mode=editprofile&" . $userdata['user_id']) . '">' . $userdata['username'] . '</a>';
}
else
{
	$name_link = $lang['Guest'];
}
//
// END: Avatar On Index MOD
//


$template->assign_vars(array(
	'WELCOME_TEXT' => $CFG['welcome_text'],
	'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
	'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
	'TOTAL_TOPICS' => sprintf($lang['total_topics'], $total_topics),
	'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),
	'L_FORUM' => $lang['Forum'],
	'L_BOARD_NAVIGATION' => $lang['Board_navigation'],
	'L_STATISTICS' => $lang['Statistics'],	
	'L_ANNOUNCEMENT' => $lang['Post_Announcement'],
	'L_POSTED' => $lang['Posted'],
	'L_COMMENTS' => $lang['Comments'],
	'L_VIEW_COMMENTS' => $lang['View_comments'],
	'L_POST_COMMENT' => $lang['Post_your_comment'],
	'L_SEND_PASSWORD' => $lang['Forgotten_password'],
	'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),
	'L_REGISTER_NEW_ACCOUNT' => sprintf($lang['Register_new_account'], '<a href="' . append_sid("profile.$phpEx?mode=register") . '">', '</a>'),
	'L_REMEMBER_ME' => $lang['Remember_me'],
	'L_VIEW_COMPLETE_LIST' => $lang['View_complete_list'],
	'L_POLL' => $lang['Poll'],
	'L_VOTE_BUTTON' => $lang['Vote'],


	// Welcome Avatar
	'L_NAME_WELCOME' => $lang['Welcome'],
	'U_NAME_LINK' => $name_link,
	'AVATAR_IMG' => $avatar_img)
);

//
// Fetch Posts from Announcements Forum
//
if(!isset($HTTP_GET_VARS['article']))
{
	$template->assign_block_vars('welcome_text', array());

	$fetchposts = phpbb_fetch_posts($CFG['news_forum'], $CFG['number_of_news'], $CFG['news_length']);

	for ($i = 0; $i < count($fetchposts); $i++)
	{
		if( $fetchposts[$i]['striped'] == 1 )
		{
			$open_bracket = '[ ';
			$close_bracket = ' ]';
			$read_full = $lang['Read_Full'];
		}
		else
		{
			$open_bracket = '';
			$close_bracket = '';
			$read_full = '';
		}

		$template->assign_block_vars('fetchpost_row', array(
			'TITLE' => $fetchposts[$i]['topic_title'],
			'POSTER' => $fetchposts[$i]['username'],
			'TIME' => $fetchposts[$i]['topic_time'],
			'TEXT' => $fetchposts[$i]['post_text'],
			'REPLIES' => $fetchposts[$i]['topic_replies'],
			'U_VIEW_COMMENTS' => append_sid('viewtopic.' . $phpEx . '?t=' . $fetchposts[$i]['topic_id']),
			'U_POST_COMMENT' => append_sid('posting.' . $phpEx . '?mode=reply&t=' . $fetchposts[$i]['topic_id']),
			'U_READ_FULL' => append_sid('portal.' . $phpEx . '?article=' . $i),
			'L_READ_FULL' => $read_full,
			'OPEN' => $open_bracket,
			'CLOSE' => $close_bracket)
		);
	}
}
else
{
	$fetchposts = phpbb_fetch_posts($CFG['news_forum'], $CFG['number_of_news'], 0);

	$i = intval($HTTP_GET_VARS['article']);

	$template->assign_block_vars('fetchpost_row', array(
		'TITLE' => $fetchposts[$i]['topic_title'],
		'POSTER' => $fetchposts[$i]['username'],
		'TIME' => $fetchposts[$i]['topic_time'],
		'TEXT' => $fetchposts[$i]['post_text'],
		'REPLIES' => $fetchposts[$i]['topic_replies'],
		'U_VIEW_COMMENTS' => append_sid('viewtopic.' . $phpEx . '?t=' . $fetchposts[$i]['topic_id']),
		'U_POST_COMMENT' => append_sid('posting.' . $phpEx . '?mode=reply&t=' . $fetchposts[$i]['topic_id'])
		)
	);
}
//
// END: Fetch Announcements
//

//
// Fetch Poll
//
$fetchpoll = phpbb_fetch_poll($CFG['poll_forum']);

if (!empty($fetchpoll))
{
	$template->assign_vars(array(		
		'S_POLL_QUESTION' => $fetchpoll['vote_text'],
		'S_POLL_ACTION' => append_sid('posting.'.$phpEx.'?'.POST_TOPIC_URL.'='.$fetchpoll['topic_id']),
		'S_TOPIC_ID' => $fetchpoll['topic_id'],
		'L_SUBMIT_VOTE' => $lang['Submit_vote'],
		'L_LOGIN_TO_VOTE' => $lang['Login_to_vote']		
		)
	);

	for ($i = 0; $i < count($fetchpoll['options']); $i++)
	{
		$template->assign_block_vars('poll_option_row', array(
			'OPTION_ID' => $fetchpoll['options'][$i]['vote_option_id'],
			'OPTION_TEXT' => $fetchpoll['options'][$i]['vote_option_text'],
			'VOTE_RESULT' => $fetchpoll['options'][$i]['vote_result'],
			)
		);
	}	
}
else
{
	$template->assign_vars(array(		
		'S_POLL_QUESTION' => $lang['No_poll'],
		'DISABLED' => 'disabled="disabled"'
		)
	);
}
// stats 
$stats = new stats(); 
$stats->display(0);


//
// Generate the page
//
$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
Kann mir jemand sagen an welcher Stelle ich den code einfügen muss? Hab schon ein paar Dinge probiert, da kommt aber leider nur ne Fehlermeldung :(



ICH HABS!!! :)

Der Code musste nach

Code: Alles auswählen

	'L_REGISTER_NEW_ACCOUNT' => sprintf($lang['Register_new_account'], '<a href="' . append_sid("profile.$phpEx?mode=register") . '">', '</a>'),
	'L_REMEMBER_ME' => $lang['Remember_me'],
	'L_VIEW_COMPLETE_LIST' => $lang['View_complete_list'],
	'L_POLL' => $lang['Poll'],
	'L_VOTE_BUTTON' => $lang['Vote'],
einfügt werden ;)
Liebe Grüsse
Sabine
Tierheim Steyr | Wild Cats
Meriana
Mitglied
Beiträge: 6
Registriert: 08.04.2006 03:17

Beitrag von Meriana »

ah genau der richtige Thread:

kann ich die shoutbox auch parallel laufen lassen? also im Forum und auf dem Protal (Intro + Portal Mod, wobei intro über die .htacsess deaktiviert ist)
ASabine
Mitglied
Beiträge: 37
Registriert: 04.02.2006 11:15
Wohnort: Linz
Kontaktdaten:

Beitrag von ASabine »

@meriana

jap kannst du ;)
Liebe Grüsse
Sabine
Tierheim Steyr | Wild Cats
Benutzeravatar
blackrat
Mitglied
Beiträge: 12
Registriert: 28.03.2006 09:51
Wohnort: Wien
Kontaktdaten:

Länge der Shouts begrenzen

Beitrag von blackrat »

Hallo alle, ich versuche auch grad die Shoutbox in den Index einzubauen.

Folgende Fragen hätt ich
1. Hat schon jemand versucht die Länge der Shouts zu begrenzen (bei mir gehn ja in der Max-Version selbst seitenweise Shouts)

2. In der normalen einzeiligen Eingabe: Kann man da irgendwie einen Zeilenumbruch machen, so dass auch mehrzeilige Eingaben möglich sind.

3. Die Lösung für Gäste gefällt mir gar nicht: Warum nur die BBcodes ausblenden und nicht gleich die ganze Eingabezeile.

Wäre für Tipps sehr dankbar,
Benutzeravatar
z0rN
Mitglied
Beiträge: 29
Registriert: 16.05.2006 20:22

Beitrag von z0rN »

Hallo, hab auch ein Problem mit meiner Shoutbox, das linke menue im ACP ist bei mir auch nicht mehr vorhanden

Code: Alles auswählen

Parse error: parse error, unexpected ';', expecting ')' in /srv/www/htdocs/web23/html/admin/admin_db_utilities.php on line 697
Verlinkung in txt :

http://pumped.de/Christian/admin_db_utilities.txt
http://pumped.de/Christian/admin_board.txt
http://pumped.de/Christian/admin_users.txt

Hoffe mir kann jemand helfen ;)
rosand
Mitglied
Beiträge: 113
Registriert: 29.11.2004 18:39

Shoutbox Probleme

Beitrag von rosand »

Hallo ,

zwar funktioniert die Box, aber ich habe direkt in der Box keine Smilies ?

Sehe im ACP auch keinerlei Möglichkeit etwas zu verstellen?

Nutze Version .20 mit
UploadPic
Junior Admin
Attach Mod
Ip Tracking
dslmonster
Mitglied
Beiträge: 315
Registriert: 22.03.2006 16:56
Wohnort: Arnsberg
Kontaktdaten:

Beitrag von dslmonster »

welche shoutbox genau benutze denn?

(zufaul bin alle beiträge durch zuschauen ...)
Die Suche <-- das ist der beste Freund eines Forum-Admins
rosand
Mitglied
Beiträge: 113
Registriert: 29.11.2004 18:39

Beitrag von rosand »

Hallo
das ist die shoutbox_1,1.5em
dslmonster
Mitglied
Beiträge: 315
Registriert: 22.03.2006 16:56
Wohnort: Arnsberg
Kontaktdaten:

Beitrag von dslmonster »

also diese hier:

##############################################################
## MOD Title: Fully integrated shoutbox
## MOD Author: Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk
## MOD Description: A fully phpBB2 enabled shoutbox witch support:
## database abstration layer, timezones, languages
## templates, smilies, BBcode and censored words


Wenn ja.
dann is irgendwo etwas verkehrt. habe damals in einer datei etwas geändert dann klappte es mit den *smilie* Button wenn ich nun nur wüßte welche.

habe mir damals auch hilfe bei niels auf der HP geholt, nur die is ja zu
:roll:
Die Suche <-- das ist der beste Freund eines Forum-Admins
Antworten

Zurück zu „phpBB 2.0: Mod Suche/Anfragen“