
01-23-2003, 02:59 AM
|
|
|
Join Date: Sep 2002
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Firstly the avatar hack. Thanks to Firefly for writing and sharing this code. For reference, Fireflys original avatar hack can be found here: https://vborg.vbsupport.ru/showthrea...hreadid=32560. On with the hack...
Open index.php (NOTE: *not* admin/index.php) and find:
#############################
$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}
############################
and directly after it add this...
############################
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/avatars/noavatar.gif';
}
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0"></a>';
}
############################
|
and
Quote:
Again in index.php, find:
############################
// if user is know, then welcome
############################
and directly under it add this...
############################
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]'");
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
############################
|
|