![]() |
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.
|
]I f I remove that } on line 1199 I'm getting error on anotehr line and so on... :(
|
you can send me your index or tell me the hack that you have installed.
|
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! |
]yep, I'm getting same error... actually very nice hack... too bad it's not bugfree :(
|
]
Quote:
|
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... |
]mine looks like this now:
Code:
##### 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)... :( |
]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... :(
|
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 |
]great man! Thanx a lot for helping! :)
if u need more files, let me know it :) Thanx again :) |
alright I did what you said and got this
Parse error: parse error in /home/ochroma/public_html/rpg/member.php on line 1433 Which is the closing of the php Line 1433: ?> I guess I will send you my member.php file? thanks for the support, hope we get it to work! |
wooolF[RM]
I send you the file... :) |
]great man! checking! :D
|
Could a similar hack be done with sig banners ?
People on my board love to have an sig images but I don't want them on my server ! any ideas ?? |
for sign...
they must use the tag [.img] [./img] in their signature |
Hey sheccia you gonna help me out here buddy??
|
Quote:
|
X xug
yes... the immage can be anywhere not on your server. X Psychdrone tel me your installed hack |
Hey what do you mean......I have installed a lot of hacks.. but it says there is an error within your code that you have me put
Can I please send you my file like the guy above I really like your hack, just want to make sure it works:) |
.... but if I don't know the hack that you have installed ... how can help you?
|
]Thanx Scheccia ! Everything works just like a dream! :D Thanx very much :D
|
I installed your hack Thats why I am posting in this thread:P
so can I send you my file? Could I get your email?? |
I installed your hack, and everything works great! But there is one thing that is not right - when I view another member's profile (using getinfo) my avatar shows up instead of the member's avatar, can you fix this? Thanks in advance. :)
|
yes... ok thanx...
I fix it... :) in member find Quote:
$userinfo[userid] |
OK, I changed that one thing there, uploaded, but it didn't fix that problem...
I got a different problem that I just found out about: if a user tries to their avatar in the user control panel, they get this message even if the file exists, even if it's a valid gif/jpeg: 'The uploaded file is not a valid GIF or JPG file. Please ensure that it is and try again.' I can add avatars through the admin w/o any problems, so what do you think could be causing it? |
I think that you have edited wrong the member file.
I register in your forum and I can't go to edit option. |
OK, fixed that, that works perfect now, What do I do about the other problem?
Users can't link to their avatar w/o getting that error... 'Image is not a valid gif or jpeg, please check and try agian' |
able it from admin in this way I can test
|
Avatars are enabled... you should be able to test it now, you don't need any posts to do it either.
|
Ok, you can now go into the admin and test the hack from there, test whatever you want to test, just let me know (please) what I need to change to make it work correctly for the users in the user control panel -> edit avatar screen. Thanks.
|
All times are GMT. The time now is 10:29 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:
|