Hi ...
suche und lösche:
Code: Alles auswählen
//
//Nickpagebutton
//
$sql = "SELECT COUNT(uid) AS zaehle FROM ".NICKPAGE_TABLE." WHERE uid='".$poster_id."'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Querrie-Fehler', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if($row['zaehle'] == "1")
{
$template->assign_block_vars('postrow.Nickpagebutton', array(
'U_NICKPAGE' => append_sid('nickpage.'.$phpEx.'?user='.$poster),
));
}
suche:
Code: Alles auswählen
}
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
davor einfügen:
Code: Alles auswählen
//
//Nickpagebutton
//
$sql = "SELECT COUNT(uid) AS zaehle FROM ".NICKPAGE_TABLE." WHERE uid=".intval($postrow[$i]['user_id']);
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Querrie-Fehler', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if($row['zaehle'] == "1")
{
$template->assign_block_vars('postrow.Nickpagebutton', array(
'U_NICKPAGE' => append_sid('nickpage.'.$phpEx.'?user='.( $poster_id == ANONYMOUS ? $lang['Guest'] : $postrow[$i]['username'])),
));
}
Markus