The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
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 |
#12
|
||||
|
||||
]I f I remove that } on line 1199 I'm getting error on anotehr line and so on...
|
#13
|
|||
|
|||
you can send me your index or tell me the hack that you have installed.
|
#14
|
|||
|
|||
I am having trouble with your hack!
ok I thin there is a problem with this step! Quote:
cause I get an error that reads Fatal error: Call to a member function on a non-object in /home/******/public_html/forum/member.php on line 992 and line 992 reads Quote:
whats wrong can you please fix this man! Thanks! |
#15
|
||||
|
||||
]yep, I'm getting same error... actually very nice hack... too bad it's not bugfree
|
#16
|
||||
|
||||
]
Quote:
|
#17
|
|||
|
|||
ops... my error
you must delete the red } of the script that you have posted. Quote:
make this change and tell me if it's all ok... |
#18
|
||||
|
||||
]mine looks like this now:
Code:
##### Avatar As Link2 ##### if ($avatar2!="") { // check valid image if ($imginfo=@getimagesize($avatar2)) { if ($imginfo[0]>$avatarmaxdimension or $imginfo2[1]>$avatarmaxdimension) { eval("standarderror(\"".gettemplate("error_avatarbaddimensions")."\");"); } if ($imginfo[2]!=1 and $imginfo[2]!=2) { eval("standarderror(\"".gettemplate("error_avatarnotimage")."\");"); } } else { if (!$allowimgsizefailure) { eval("standarderror(\"".gettemplate("error_avatarnotimage")."\");"); } } $DB_site->query("DELETE FROM customavatar WHERE userid=$bbuserinfo[userid]"); } $avatarlink=$DB_site->query_first("SELECT avatar2 FROM avatarlink WHERE userid=$bbuserinfo[userid]"); $avatar2=$avatarlink[avatar2]; if (!$avatarlink[avatar2] and $avatar2!="") { $DB_site->query("INSERT INTO avatarlink (userid, avatar2) VALUES ($bbuserinfo[userid],'$avatar2')"); }ELSE{ $DB_site->query("UPDATE avatarlink SET avatar2='".$avatar2."' WHERE userid='$bbuserinfo[userid]'"); } ##### Avatar As Link2 ##### Fatal error: Call to a member function on a non-object in /home/wooolf/WWW/forum/member.php on line 1048 line 1048: $avatarlink=$DB_site->query_first("SELECT avatar2 FROM avatarlink WHERE userid=$bbuserinfo[userid]"); I have checked database and everything is ok (tables and rows)... |
#19
|
||||
|
||||
]I'm still using old member.php but all other files (3) that u have said we should update with new codes are uploaded to the server... So I'm running with 3/4 of your hack... And I need last 25% to get it work fully...
|
#20
|
|||
|
|||
ok.. i receive email...
I test it and it'snt ok. But when delete from member.php the user rate hack... it is ok. Now I install user rate hack in my test board and check it... but tomorrow now for me is 2:04 AM good night hehe |
#21
|
||||
|
||||
]great man! Thanx a lot for helping!
if u need more files, let me know it Thanx again |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|