Description: Allows your user's to select from a list of Avatar's set up by you. All Avatars are added or removed by you through the admin panel.
Working Under: UBB.Threads 6.2-6.3
Mod Status: Finished
Any pre-requisites: A licensed copy of UBBThreads 6.2 or 6.3
Author(s): Omegatron
Date: 06/22/03
Credits: Steve Stout (Aglavalin) for the original version in 6.0-6.1 , Scream for the page break feature.
Files Altered: editbasic.tmpl and admin/menu.php
New Files: avatars.php, useavatar.php, addavatar.php, removeavatar.php, doaddavatar.php, doremoveavatar.php
Database Altered: No
Info/Instructions:
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Simply install this and upload what avatar's you want and then create a topic on your board that you have installed this. This places a link inside editbasic when they edit their profile to the avatar page. If you really want to delete all avatar's this should work.
Zip has been updated to break Avatar's into pages of 36 images for user's with extensive large avatar directories. All credit to Scream for this one. Asked for idea's on this one and he was gratious to just write it out.
I ran into an old problem where my avatar is displaying as 13 x 11..... The real graphic is much larger than that.
I tried going into my profile and then submitting again. Didn't fix it. But, it seems like it's fine for everyone else. I tested a couple older users out, and then registered a new account.
The avatar is set to 80x80 in this hack if it is larger. Your avatar sounds like it has hard coded numbers that will not change in the database. This has nothing to do with this hack. You can manually set your picture height and width with the following commands and see if that helps
UPDATE w3t_Users WHERE U_Username ='YOURNAME' SET U_PicHeight = 'yourpicheight'
UPDATE w3t_Users WHERE U_Username ='YOURNAME' SET U_PicWidth = 'yourpicwidth'
Sounds like your specific avatar has a few glitches
So, I'm getting this error when running the first thing
"Unable to do_query: UPDATE w3t_Users WHERE U_Username ='Allusivekudos' SET U_PicHeight = '60' You have an error in your SQL syntax near 'WHERE U_Username ='Allusivekudos' SET U_PicHeight = '60' ' at line 2 row(s) affected by your query. "
Yeah well I need another couple cups. I drink it all day long. My Problem was I was trying to answer his post before running out the door to take my daughter to Soccer Camp.
Someone needs to hunt down a peach graphic then dammit!
Yeah, well thanks to all of you guys. This community absolultely rocks. Seriously, I'm just amazed at how well it works and the spirit in which things get done around here.
We pretty much help each other and work togther pretty well. Each of us have our various skills and we pretty much help where we can and sometimes overlap. I usually get a kick out of the posts where each of us will answer a question on an issue and post a response and there are two answers of the same thing when each did not realized the other was posting a response. I get a chuckle out of that. Thats for the kudos.
I really don't like graemlins, but this one is so practical... =]
I was thinking, why not have the New post/reply/preview pages list the names of other people replying to the same thing? I don't like having to do unnecessary things, and I'm not about to check the Who's online every time I write a post. But if I'm starting to write an answer and see that Josh started writing a reply 3 minutes ago (well, that's usually the case =P) I'll just have another sip of coffee instead and wait for his reply. =]
So, now I have an obnoxious question... Any chance we can get alt text for the avatars. One of my users spent some time putting together a set of avatars - famous people, and wants their name to be shown when people hover over the avatar, at least in the avatar gallery. Any possibility?
The way this script works is to read the avatars folder for all the files and then display them accordingly. What you can do is use the file name as the ALT text stripping the extension. I cannot see any other way of doing this unless the filenames and descriptions are stored in a table in the database like the graemlins do.
I just tried the mod and it works really well except the image name is missing when I view my http://www.neoitems.net/neohelp/editbasic.php?Cat= page All I see there is the path to the avatar directory (which does have all the right permissions). I am using UBB.threads™ 6.2.1.
Help?
Edit: I figured it out Just added:
// ------------- // Get the input $MyAvatar = get_input("MyAvatar","get");
This one is soooooooo great, though I've found a little buglet. If a user wishes to not have an avatar, I'm unsure how they can change it off. Is there a way? Or is this a bug?
Is this avatar setup included in 6.4 ? If so, probably should have a cleaner way of working things...
Also, one thing I just did that's pretty nifty is to wrap the avatar displayed on the my home with a link to the avatar.php page. Pretty simple, especially for newbies just joining to quickly get an avatar selected.
Peter sometimes in Threads we miss the obvious. All the Avatar script does is throw a picture into the person's picture field. While Josh's selection works the simpler more direct approach would be to edit your basic profile and clear the picture line and update your profile.
I wasn't complaining really! I just thought this may be in 6.4.... And, I've just seen a lot of broken avatars lately and am not sure how that's happening... Then I noticed this and thought I should say something...
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.