Buddylist 1.1.1

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
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.
Antworten
parariedel
Mitglied
Beiträge: 41
Registriert: 30.07.2007 19:37

Buddylist 1.1.1

Beitrag von parariedel »

Hallo,

habe den Mod installiert.


Habe zwei Fragen.
Frage 1:
There are a few basic lines of code that you need to have the buddylist working. They are listed here.

For the template, you will have to search yourself where exactly you have/want to put the buddylist code. Note that you can also embed the code inside a table, alter the code and so on.
#
#-----[ OPEN ]--------------------------------------------
#
*.php

#
#-----[ FIND ]--------------------------------------------
#
//
// End session management
//

#
#-----[ BEFORE, ADD ]-------------------------------------
#
//
// Buddylist actions
//
$buddy_id = ( isset($HTTP_GET_VARS['b']) ) ? intval($HTTP_GET_VARS['b']) : 0;
$buddy_action = ( isset($HTTP_GET_VARS['buddy']) ) ? $HTTP_GET_VARS['buddy'] : '';
if( $buddy_id && $buddy_action != '' )
{
if( $buddy_action == 'add' )
{
add_buddy($userdata['user_id'], $buddy_id);
}
else if( $buddy_action == 'remove' )
{
remove_buddy($userdata['user_id'], $buddy_id);
}
}
//
// END: Buddylist actions
//

#
#-----[ FIND ]--------------------------------------------
#
$template->pparse('body');

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

?>

#
#-----[ BEFORE, ADD ]-------------------------------------
#
get_buddies($userdata);

#
#-----[ OPEN ]--------------------------------------------
#
# open the .tpl file that belongs to the PHP file you just edited
# make sure to edit this file for every template installed
#
templates/subSilver/*.tpl

#
#-----[ ADD ]---------------------------------------------
#
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>{BUDDYLIST}</td>
</tr>
</table>

#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
Auszug aus dem zweiten Quote:
#
#-----[ OPEN ]--------------------------------------------
#
*.php
Welche PHP Datei soll ich öffnen?

Frage 2:

Ich möchte das ich auf jeder seite unten sehe wer von meinen Buddys online bzw offline ist. Wie reallesiere ich das?

Danke an alle die mir weiterhelfen können.

Gruß

Markus
Sorren
Mitglied
Beiträge: 115
Registriert: 02.04.2006 12:51
Kontaktdaten:

Beitrag von Sorren »

zu 1. damit ist jede beliebige php datei gemeint, also du kannst die Buddyliste überall einfügen.

und zum 2. versuche die buddylist in die datei includes/page_tail.php einzubauen und ändere die overall_footer.tpl.
So solltest untem im Footer immer die Buddyliste sehen.
parariedel
Mitglied
Beiträge: 41
Registriert: 30.07.2007 19:37

Beitrag von parariedel »

Ok,

danke für deine Hilfe, hat geklappt :-)

Gruß

Markus
Antworten

Zurück zu „phpBB 2.0: Mod Support“