The Arcive of vBulletin Modifications Site. |
|
Avatar As Link2 Details »»
|
|||||||||||||||||||||||||
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>'; } ############################ Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Screen shoot
in admin --> option |
|
#3
|
|||
|
|||
|
screen shoot in admin--> edit user
|
|
#4
|
|||
|
|||
|
screen shoot
in user cp --> modify avatar |
|
#5
|
||||
|
||||
|
I'll do it! thanks
|
|
#6
|
||||
|
||||
|
]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]'");
eval("standardredirect(\"".gettemplate("redirect_updatethanks")."\",\"usercp.php?s=$session[sessionhash]\");");
}
// ############################### start get info ###############################
if ($action=="getinfo") {
$templatesused = "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,getinfo_customfields,getinfo";
include("./global.php");
I think u forgot { or } somewhere...
|
|
#7
|
|||
|
|||
|
Does the script allow people to post giant avatars? Or can a dimension restriction be imposed?
|
|
#8
|
||||
|
||||
|
U restrict your dimenions under ADMIN CP
|
|
#9
|
|||
|
|||
|
what kind of installation you make?
control the edited file |
|
#10
|
||||
|
||||
|
have controlled twice + made compared two files with one programm to make sure I have edited file right.
|
![]() |
|
|