Version: 1.00, by Mystikal
Developer Last Online: May 2003
Version: 2.2.x
Rating:
Released: 10-12-2002
Last Update: Never
Installs: 23
Is in Beta Stage
No support by the author.
I've re-released this hack with a completely re-written database independent version Enjoy.
The mini-avatars system will enable users to have their own 16x16 image in front of their username in threads, and in the who's online portion of the website. The hack creates 1 table and alters a few files, with 2 new files created.
I'm working on the the new modifications to the admin panel, but this will get you up and running so far =)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
my userid is 1 so anyone with a 1 at the start of they userid has my miniavatar. Also a member uploaded a miniavatar userid 27 and it jst shows the default avatar, just my database doesnt like the querys ERROR: Unclosed quote @ 94
STR: '
SQL: DELETE FROM `usericons` WHERE `userid` = '1' AND `filename` = 'indifference.gif' AND `data` = 'GIF89a2 LIMIT 1
Error
SQL-query :
DELETE FROM `usericons` WHERE `userid` = '1' AND `filename` = 'indifference.gif' AND `data` = 'GIF89a2 LIMIT 1
MySQL said:
You have an error in your SQL syntax near ''GIF89a2 LIMIT 1' at line 1
Wow, I must have completely missed something with this hack as I can't make it work at all on 2.2.9. The install instructions left me very unclear on what to do in some instances.
So...care to help me figure out how to make this work? :nervous:
I went through the miniavatar_install.txt several times and double checked everything.
First: I don't see any edit miniavatar link in my user control panel; nor do I understand in these install instructions where that's supposed to happen. Is that part of the member.php stuff? If so, can you be more specific as to where to add this to member.php? I tried adding at the end (just before the closing php tag) and in the middle, but it made no difference.
Second: I tried entering my control panal, edition options, and then in my address bar I changed the action to miniavatar. This pulled a miniavatar upload page. I created a 16x16 flat image in photoshop that is 1kb in size. When I attempt to upload it it say the following: "the mini-avatar you attempted to upload is too large. Please limit sizes to 2 KB. The image you tried to upload was 0 KB"
Third:
Quote:
forumhome_loggedinuser
add forumhome_loggedinuser at the very beginnign, which by default should be in front of the persons name.
All I can say after reading that is, Huh? I assume I'm editing the forumhome_loggedinuser template: what does "add forumhome_loggedinuser" translate to code wise? Did you mean to say add the <img src="icon.php?userid=$post[userid]" width="16" height="16"> into the forumhome_loggedinuser template some where?
Fourth: I see people talking about SQL errors. Did I miss some step where something was updated in SQL? I don't see any instructions to alter SQL in any way.
Fifth: The default_mini_avatar.gif is not being used. It's not replacing the ../icon.php... code with the actual image source. You can see this on my forumhome at http://www.sonsofvalor.com/community
I've installed many, many hacks from vb.org and this one looks awesome; but I'm just stumped. I can't code in PhP (thus I can't read your code to figure out what is happening) but I've been able to handle every other hack I've come across. Obviously others have made it work so my brain must just be turned off today or something.
Obviously you don't have to help so anything would be greatly appreciated.