![]() |
Avatar As Link2
This hack display avatar through link... and not stored avatar in your database or server.
This hack is completely various from the first version , now it is integrated with the function avatar of vbulletin. To integrate with welcome pannel in index.php instead ############################ 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>'; } ############################ put ############################ if ($bbuserinfo[userid]!=0) { $avatarurl=getavatarurl($bbuserinfo[userid]); if ($avatarurl=='') { $avatarlink=$DB_site->query_first("SELECT avatar2 FROM avatarlink WHERE userid=$bbuserinfo[userid]"); $avatar2=$avatarlink[avatar2]; if ($avatar2=='') { $avatarurl='images/noavatar.gif'; }else{ $avatarurl=$avatar2; } } $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/guestavatar.gif" border="0"></a>'; } ############################ |
Screen shoot
in admin --> option |
screen shoot in admin--> edit user
|
screen shoot
in user cp --> modify avatar |
I'll do it! thanks
|
]Fatal error: Call to a member function on a non-object in /home/wooolf/WWW/forum/member.php on line 1048
on line 1048: I could see }ELSE{ I have changed it to } else { next step: Parse error: parse error in /home/wooolf/WWW/forum/member.php on line 1199 on line 1199: } nothing more... Code:
$DB_site->query("UPDATE user SET avatarid='".addslashes($avatarid)."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); I think u forgot { or } somewhere... :( |
Does the script allow people to post giant avatars? Or can a dimension restriction be imposed?
|
U restrict your dimenions under ADMIN CP
|
what kind of installation you make?
control the edited file |
have controlled twice + made compared two files with one programm to make sure I have edited file right.
|
All times are GMT. The time now is 04:22 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|