Seite 1 von 1

Buddylist 1.1.1

Verfasst: 14.08.2007 21:20
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

Verfasst: 14.08.2007 22:04
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.

Verfasst: 16.08.2007 21:31
von parariedel
Ok,

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

Gruß

Markus