![]() |
Mini-Avatars Hack Released
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 =) |
May I see some screenshots?
|
here is 1
|
another.
|
the last.
|
Nice idea. what about user side editing?
(I can see the store hack integration now.. tisk) |
eh... see it at blizzforums.com :) im too lazy (actually dont have time) to upload the pic... but its intergrated into the usercp.
|
so where do you put this code
Quote:
As well it seems it is not working for me. I have safe mode for php. I uploaded an avatar, but it doesn't show anything.. |
Nice, I like this idea quite a bit actually ;)
*clicks install* |
mewgood, we have safe mode and it works fine... the stuff is stored in the database, that's how we get around safe mode.
|
edit whatever templates you want and put that code in front of the username :)
i.e., if you want it in who's online, just edit the loggedinuser template in forumhome templates and put <img src="icon.php?userid=$uservariable[userid]" height="16" width="16"> in front of $user[username]. |
..
when I trying to upload an avatar, it doesn't change in the index.php.. it is the same with the defult image.. Help please. |
finally you release it :) soon i'll install to my forum
|
Also no update after uploading an image. Default stays visible.
|
You have to refresh the page.
|
I did refresh.....
nth change... |
looks like it will make the boards look cluttered. I'll pass. Nice idea though. :)
|
Hm. I dunno then. Try going to /icon.php?userid=xxxx and see if its there.. or check phpMyAdmin to see if an entry is created with your userid.... It should work, works for me.
|
If i call icon.php?userid=xxx I see icons :D maybe we have the wrong icon.php?
|
sorry, was in /admin. under /Forum/icon.php I see my mini, but it also does not show up... only the default one
|
Quote:
|
Do you have phpMyAdmin or direct access to the database?
Check to make sure you actually have an entry.. maybe there's a bug but I didn't think so. |
Two questions:
Can you implement a check where it insures the user does not upload an avatar larger than 16 by 16 pixels? Personally I don't want to add the width and height attributes to the image tag, incase somebody uses a larger or smaller icon. This should be possible, if you view the avatar-source code in member.php. Second, is there any possible way to check if the gif image contains transparency? Probably not, but I'd like all my members to make the backgrounds of their icons transparent, or else the icon looks very tacky. |
Well I figured my first request out pretty easily, you can forget the second since I know it's not possible.
--------------------------------------- For those wanting to check the icon size insuring it's not larger than 16x16 pixels, use this very easy to install add-on: In member.php, find: PHP Code:
PHP Code:
|
yes I have phpmyadmin
what do I check? |
Ok when I go to phpmyadmin after i click the edit button it turns an error..
first ss |
here is the error
|
It's funny, but I was thinking on doing something like this myself a few weeks ago, but yours looks much better than anything I could have developed, so good job to you :)
|
I have the same error in phpmyadmin. Looks lige a CR behind 89a
|
Quote:
|
Harry, dont' try and select something from the usericons when using data='whatever', it won't work unless you use the LIKE % command which I don't even think can be done on binary columns (it might be able to be, I forget.. too lazy to check).
|
Oh crap.. mewgood, install a later version of phpMyAdmin.. could be your problem...
|
<a href="http://www.wcgalaxy.com/vbb/icon.php?userid=1" target="_blank">http://www.wcgalaxy.com/vbb/icon.php?userid=1</a>
Shows up fine for me.. looks like its installed fine. |
Yes, my mini is also showing up correct if I use ..icon.php?userid=1 but if I change the forumhome_loggedinuser template from
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser to <img src="icon.php?userid=$uservariable[userid]" height="16" width="16"><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$userid">$username</a>$invisibleuser only the default one shows up :( |
well that's because $uservariable isn't set to anything.
I should have specified... $uservariable = whatever variable contains the user info.. it differs from page to page, and you can use the <IMG> stuff anywhere. |
so
I need to install a later version of phpmyadmin what version is yours?| |
I have 2.3.0-RC2. No you don't have to..
go to your who's online template and change icon.php?userid=$uservariable to userid=$userid. That should fix your problem. You gotta make sure that your actually passing it a userid value ya know? Make sure and double check that with any other templtase its put in. |
cool
it works now:D |
Yup :P Told ya that was all :=)
|
BTW, mewgood, you should really alter the default image it doesn't look right with your vbulletin =\. I didn't make it transparent because it didn't need to be for my board.
|
All times are GMT. The time now is 04:49 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:
|