View Full Version : Avatar Hack v1.0 update
Hi all
I'm going to wait until vB 1.1.3 is declared stable, and modify the Avatar Hack v1.0 to work with 1.1.3, before releasing it.
Should be pretty soon, I hope :)
Kath
I can't wait. Thanks Moonwolf.
Is it possible to get the script to read all icons in the directory and build them in the pull down menu?
I don't see why not. I'm only been playing around with PHP for about a week, but this is what I came up with:
$dir = "images/avatars";
$handle=opendir($dir);
while ($file = readdir($handle)) {
if ($file == ".." || $file == ".") {
}
else {
$file = ereg_replace( ".gif", "", $file);
$file = ereg_replace( ".jpg", "", $file);
$file = ereg_replace( "_", " ", $file);
print "<option value=\"$dir/$file\">$file</option>\n";
}
}
closedir($handle);
That should do it.
cool!!!.
Moonwolf:
include, include! ;)
This has proven to be a very popular hack, but I botched the thing somehow. I guess I'll have to reinstall the whole thing.
I had some problems editing users to give them custom titiles through the control panel ... maybe I didn't install it properly the first time. I also have PM hack 1.2 installed as well.
Not to sound pushy, I'm very grateful for what you've done already, but before I reinstall this hack could you give us a rough timeframe of when this might be ready? I'd hate to go through the whole process again and then have to do it the next day when you release 1.0.
Once again thanks for a great hack.
DE
http://whodatzone.com/bb
I am working on a Avatar hack where you make a directory under images/avatar like
-images
-avatar
-0
-20
-50
-100
The hack looks for the directories with #'s as the title and then allows the user to select from the icons under that directory if they have at least that many posts.
i.e. a user with 50 posts will see all the icons from the 0, 20, and 50 directories. I have done it this was to make it easy to manage 100's or 1000's of icons. All you do is move them to a directory corresponding to the # of posts you want a user to have before they can access this icons. It should be ready in a couple days, anyone interested in it? You can check my boards frequently to see what it looks like, just look at at thread. Right now everyone has the same icons as I have to write the code to allow a user to change icons. Any ideas on how to gracefully display 100's of icons to a user to pick from? Show say 20 on a page and then put a <next page> link?
Sorry about the delays, I had an emergency crop up that took my attention for the past few weeks or so.
I should have 0.95 out this weekend. I'll post when it's done.
Kath
You're donating your work ... and I'm very grateful for it. Thanks for the update. That hack has been very popular in my forum and everybody's having fun with it. Will this provide a javascript preview?
Hello Kath,
I am sorry to bug you but my UBB forums are bogging down my server. They are causing some seriously long load times. It is weird cause I have:
- Dual PIII 450's
- 728 MB of RAM
- Ultra SCSI hard drives
- OC-3 lines
But I take it the perl is killing me. I need to get vBulletin up and going but I can't take away custom user images from my users.
Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.