Wie kann ich diesen code...

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
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.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
mirk

Wie kann ich diesen code...

Beitrag von mirk »

...in meine portal.php vom ezportal einbauen???

Code: Alles auswählen

<?php
// This script is an example of display, in another page of your website,
// the list or number of users connected to the chat

// Lines below must be at the top of your file and completed according
// to your settings

// relative path from this page to your chat directory
$ChatPath = "chat/";

// HTML link to launch the chat (used by constants below)
$ChatLaunch = "<A HREF=\"phpMyChat.php3\" TARGET=\"_self\">chatting</A>";

$ShowPrivate = "0";     // 1 to display users even if they are in a private room,
						// 0 else

$DisplayUsers = "1";    // 0 to display only the number of connected users
                        // 1 to display a list of users

define("NB_USERS_IN","users are ".$ChatLaunch." at this time.");	// used if $DisplayUsers = 0
define("USERS_LOGIN","User ".$ChatLaunch." at this time:");			// used if $DisplayUsers = 1
define("NO_USER","Nobody is ".$ChatLaunch." at this time.");

require("./${ChatPath}/lib/connected_users.lib.php3");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>

<HEAD>
<TITLE>Integration of chat activity into your own web page</TITLE>
</HEAD>

<BODY>
<TABLE BORDER=3 CELLPADDING=5>
<TR>
	<TD>
		<?php
		display_connected($ShowPrivate,$DisplayUsers,($DisplayUsers ? USERS_LOGIN : NB_USERS_IN),NO_USER);
		?>
	</TD>
</TR>
</TABLE>
</BODY>

</HTML>
THX
Gast

Beitrag von Gast »

habe jetzt foldendes gemacht:

diesen code(die obere hälfte das vorherigen) in portal.php eingebaut:

Code: Alles auswählen

// relative path from this page to your chat directory 
$ChatPath = "chat/"; 

// HTML link to launch the chat (used by constants below) 
$ChatLaunch = "<A HREF=\"phpMyChat.php3\" TARGET=\"_self\">chatting</A>"; 

$ShowPrivate = "0"; // 1 to display users even if they are in a private room, 
// 0 else 

$DisplayUsers = "1"; // 0 to display only the number of connected users 
// 1 to display a list of users 

define("NB_USERS_IN","users are ".$ChatLaunch." at this time."); // used if $DisplayUsers = 0 
define("USERS_LOGIN","User ".$ChatLaunch." at this time:"); // used if $DisplayUsers = 1 
define("NO_USER","Nobody is ".$ChatLaunch." at this time."); 

require("./${ChatPath}/lib/connected_users.lib.php3"); 
und diesen in portal_body.tpl:

Code: Alles auswählen

<TABLE BORDER=3 CELLPADDING=5> 
<TR> 
<TD> 
<?php 
display_connected($ShowPrivate,$DisplayUsers,($DisplayUsers ? USERS_LOGIN : NB_USERS_IN),NO_USER); 
?> 
</TD> 
</TR> 
</TABLE> 
aber ez liegt das problem daran, glaube ich, das im portal_body.tpl sich auch php code befindet:


Code: Alles auswählen

<?php 
display_connected($ShowPrivate,$DisplayUsers,($DisplayUsers ? USERS_LOGIN : NB_USERS_IN),NO_USER); 
?> 

weiss jemand was ich machen kann damit das lauft????
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“