Due to high demand. I have decided to release the pulldown avatar hack.
NOTE! Since I didn't know how to make the avatars be pulled from a directory and automatically added to the drop down list, that feature wasn't added and avatar editing is done manually. If you know how to add the feature, do tell
UPDATE If you use the COPPA act for child's privacy. You might want to edit public_register_page_kid.pl the same way you edited the other public_register_page.pl file.
report errors and bugs in the instructions to me if you find any.
you mean the forums?? if you do, the forums got hacked, so i am installing Version 6, so yeah, i dont know why hacked the forums, but it was totally messed up.. and how did you know about ffseries??
If it helps. I found the following code in the old avatar v3. I don't know what to do with it, but maybe some of j00 will know how to implement this into ubb6.
and in ubb_edit_profile.pl i changed the picture field to this - however, when you go to edit your profile, the listbox is blank, but should be filled with avatars. Can someone plz help me perfect this?
If you don't know understand Perl code don't try to just "dump" that code in; it won't work. It's intended to be a guideline for code hackers to work with.
Can you change the code so that when you actualy go into Edit my Profile the avator scroll down box is positioned at the avatar you are curently using and not the top. Becasue if someone who wants to change.... say their password edits their profile and then saves their new profile the avatar gets reset to 'none'!
Now I know no one here knows me, nor do I have any knowledge in Perl or CGI. But I messed around with the Avatar Add On by MasterMind and Philip, released by Modder. And I did something and tested it well enough that it works.
Quote
quote:
Just do this step and it will work. Although you will need to upload the avatar somewhere else and then just enter the full path to it in the YOUR PICTURE field in your profile.
Just try it, and if you dun trust me, make a backup file. Though I doubt you will ever touch it again.
I hope this will help everyone who has been working on avatars out on trying to create a better way to store avatars on your server.
[ March 07, 2001: Message edited by: Killean Diamond ]
Actually that kind of hack was already developed by MasterMind. I think people are actually looking for a "list-type" mod so that it'll prevent "undecent" pictures from showing up and such.
Just another error that I am experiencing. When you want to change your avatar to something different the old avatar link remains. For example if my current avatar was /ubb/avatar/01.jpg and I wanted to change it to 02.jpg then the actual link that would be produced would be: /ubb/avatars/01.jpg/ubb/avatars/02.jpg which obviously turns up as a dead link! Anyone know how I can resolve this? I am using 6 beta 8.4
* CP variable based editing (use CP to specific avatar directory, URL, etc.) * CP based wordlets * avatar list generation developed in an external CGI file; allows easy updates of code this way * correctly selects past avatars * includes the custom avatar feature
Still to be worked on:
* cp based avatar maintanence (upload, delete, rename) * any other ideas???
Notes: All control panel features are subject to me being able to obtain permission from Infopop to distribute my cpanel tempalte for Avatar.
Next to the avatar wordlet, have some link "view all avatars". if clicked, it opens a new partial window, and using foreach statements, it could let someone view all the avatars on a single (or many) pages. Maybe it could be CP definable (so the admin could set how many avs could be viewed on one page). (helpful if you have many [500+] avs)
I remember this on a older version i think.
Keep up the great work, this looks like a super hack!! expect high user ratings!!
I have just installed your hack on my UNIX UBB and it works fine.. just 2 questions though: 1) Should there be nothing in the Avatars section in the Control Panel? 2) Could you add something that when you select your edit profile when the page loads up the avatar drop down box automaticaly sets the focus on your current avatar instead of None?
Othere than that its great.... good job!
Edit : One more question I could not find the code :
I installed the hack, works good except for the control panel, which gives me an ISE 500 now. Removed the code in cp.cgi and works fine. Any suggestions?
The reason it gives a 500 ISE is because cpanel functions don't work yet ... they require the cpanel module which will be distributed soon because Infopop has approved!
With Navaho's announcement on the Chit Chat forum, I can now distribute my Control Panel templates!
Now I present v0.0002 of the Avatar Hack. What's new?
* Control Panel Management of Avatars - Upload/Rename/Delete features incorporated * Updated documentation * Fixed the bug in documentation mentioned by Seifer (thx a lot man)
NOTE: Users who are upgrading from v0.0001 should read the install text to see which new files to upload and what new hacks to put in (extremely few)
Now what are you doing? You should be installing it and giving me bug reports!!!!!
i cant seem to get it working.. everytime i go to the avatar settings and i put in the path to my avatar and custom avatar folder and then i put in my avatar url and my custom avatar url and i press update avatar settins it gives me this
Error: Your avatar directory does not exist. [There may be other errors, as well.]
» Use your browser's back button to return.
this is my avatar path /dwclass/server2048.virtualave.net/avatar
this is my custom avatarpath /dwclass/server2048.virtualave.net/avatar/custom
hey it worked but on the topic page it just shows a broken link .. and i selected an image..so when i check my profile it set it back to none umm let me try again...
few moments later:
hey well i checked again and it is set to the avatar i want.. but when i go to view a topic it still shows a broken link!
Man .... 6 hours I'm gone and I already have 3 beta testers!
For users who don't find the code in cp_common.pl, the reason why is because you HAVE NOT upgraded to the latest beta; please upgrade to beta 8.4.
Users who have an error of "Hack Detected." Please provide the FULL error message. Give me the full error message and I can probably pinpoint the problem for you.
Chaos and I did some testing on his server and it seems that:
Custom Avatar and Avatar directory must be CHMOD 755 at the very least. If you want to use the managment options available in the Control Panel, these directories have to be CHMOD 777. If you want to be able to operate on the graphics too, each graphic must be CHMOD 777.
I've tried your avatar hack, and I installed it correctly. But, me and everyone registered on my forum can not see where to edit their avatar. We can't even see it on the registration forum. Can you tell me if I did something wrong, and how I could fix it. (I reinstalled it twice and it still didn't work)
qasic, great hack, it works great, but i cant see the fields in the avatar sections of the hack. Everything works, custom avatars, etc.. but i want to edit it in the control panel. Im using the latest version of you hack.
aaaaaaaaahhhhhhhhhh everytime i try to enter my manage avatars page it gives me this prob
Content-type: text/html Software error: Undefined subroutine &main::AvatarManage called at cp.cgi line 347. For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error.
Oh don't get me wrong the hack is friggin great man, easy to install and a nice cp layout to boot.
I just want a final "offical" working version. Then any not needed add ons should be named as such.
For example the all avatars feature, I think part of the fun of having your own avatar is finding a good one. When you have 300+ of them the harder you look the betters ones your likely to find. If you add the all avatar feature only the most popular 20 or so will ever get used.
I rather like these little addon thingies. With the upgrade instructions, its easy.
Another idea would be some sort of upload your own hack. CP definable, it would let people upload there own avatar. You could set it so the avatar is resized auto to the avatar size setting you set in the cp. If this feature is activated, then the avatar pulldown would be replaced with the avatar upload field. And all goto a separate dir like uploadavatar.
Hehe heh if you do this than all the other avatar competition would be eliminated.
I never said it was hard to upgrade it's just a pain the the ass upgrading every 2 or 3 days just because the hacker wanted to add in some little unimportant feature.
Right now the avatar hack is perfect I think, letting users add anything to your server is just a security risk, even if you are able to make it secure users might upload images you don't want on your forums like porn images or a big fat hairy **** do you really want to have to be moderating that stuff out?
Not to mention the fact that the images might be huge like 30k+ if the person wants it to be. I already have 300+ avatars thats more than enough I think....
Does anyone want to swap avatars btw? I have around 100 custom ones I made myself from dvd screenshots...movies like T2, The Matrix, Transfomers, Star Trek(s) ect...
CG, thank you for your opinions but I will disagree with them. It's your choice as to whether you want to use my hack or not. If you don't, fine but don't whine here. This thread is for bug support and feature suggestions, that's it
Balbanes, I don't think I'll be implementing that upload thing - just because 1) it's a security risk and 2) I want to make this a pull down hack. If someone would like to revise my code to do what you suggested, I'll be more than happy to consider it adding it into the main code though!
As of v0.0003, ONLY ADMINISTRATORS CAN UPLOAD AVATARS. Your normal user cannot (every avatar mangement function is authenticated if you exame my code.) Also, the avatar program right now automatically blocks any files greater than a certain size.
rename it to listavatars.cgi, upload to ubbcgi directory, chmod 755 and add link to any template you like it to appear. it has not been tested, and all the options are inside the variables of the script. you can modify, release again, say u did it, whatever.
CopyCat, that's SWEET! Can I modify that for the official release package? Full credits to you of course - I'll have to modify it so it's Control Panel compatible, etc. but I'll like to use your code as a base!
also for the custom avatars, what happens if the user changes his public name, won't he also loose his avatar ? Shouldn't we use user numbers for custom avatars ?
just my 2 cents
also an other doc error, you ask people to make a dir named 'avatar' then in the paths of the config files the dir is 'avatars' not much but it might get people confused and they might not understand why it doesn't work.
my other utility for the v5 avatar hack, the upload custom avatar, should be working fine with v6 too. its just a matter of changing the require ubb config file and a couple of ubb config variables used through the code. the hack can be found here
i would suggest you to use usernumbers for the custom avatar files, because weird user names can mess image file names, making some impossible to download. you can drop me an e-mail if you have any question about the code, as i think its very simple to understand (and its all commented through the routines). maybe the image file size module, that can be found at cpan.org, can be uploaded to the ubbs module folder for use with the code, but i didnt research to see if that can really be done. good luck .
Thank you for your custom avatar upload module. However, I will not be using it because at this time, I'll only be allowing admins to upload custom avatars.
Custom avatars at this time use login names but this will probably need to changed for the reason CopyCat mentioned.
Finally, I've created a work-around solution for the Netscape problem but unfortunately, I'm unable to provide a "good" solution to the problem If anyone who is good at HTML could help out, that'll be greatly appreciated!
Basically the layers are causing Netscape to stop input of all form elements coming after the layers. I've tried everything from changing the layer's sizes to width to putting them in tables without any real effect
give the admins the option of splitting the avatar page into many pages. If the admin checks no, the the option does not appear in the edit profile/registration pages.
For this reason, if someone has 100+ avatars, it'll take forever to load
My site once had almost 800 avatars and it took my staff member with DSL 11 min to load.
I experienced this problem with NS myself. What I have seen is that you can't use layers along with forms. The layering gets all whacked. I have to find a workaround for what you are describing myself.
The only workaround I can see is removing the layers and going straight to using tables only. That's the only way I have seen nutscrape ever work.
Also, if you use embedded styles (ie you will find yet another NS bug. NS cannot render embedded tags at all. You may have to approach it by changing the code to include Javascript that checks the browser and implements a different style altogether.
An example:
Code
code:
I suck at JS myself but I am sure you can all get the purpose of the code.
Did that help or was it just worthless rambling to all of you?
I defintely understand what you're saying and that's the exact problem I'm experiencing. However, I'm afraid I can't separate it into tables because that'll ruin the structure of the current implentation. Currently, by hack TURNS OFF the image prevew if you're using the Netscape browser but I'll like to find a better solution than this.
I know the style of hack worked for UBB 5; I just can't get it working of UBB 6 MasterMind, do you have any ideas? You coded the UBB 5 version; perhaps you can help.
Is this hack still beta or is it finished? Will you move it to the finished section once it is? I'm new to this forum so don't know how it works.
The only reason I'm not installing this one is because i don't want to manually edit the file... I want it like my old hack where I just added new avatars to a directory and that was that!
This is probably the final version for this hack. Further upgrades will probably be for bug fixes and such (espicially the Netscape bug).
This hack has been a great accomplishment for me. It was the first hack to totally have an independent control panel module and be wordletized based as well!
Well, what are you waiting for? Download it and hack it into your UBB!
Users who are usin mod_perl &/or PerlEx please report any errors here immediately.
I name the custom image after my MEMBER NUMBER (00000001.jpg) and upload to my avatar/custom (chmod 777 - checked) dir but when I do a test post nithing is displayed in under my name as if there were no avatar. So I go in my profile and select any avatar and post another message. Well, then I get the avatar I just selected. Help meh ol' buddy... any suggestions?
BTW - I see the custom image in Avatar Management and everything is working fine with regards to rename/upload/delete.
still have a problem whenever I upload a new pic to the custom directory (e.g. 18.jpg)
member no. 18 cannot choose cUSTOM in the box. and if I modify the picture link in the cp myself, they can use the pic, however, whenever they update the profile, the pic will turn to 2.jpg (which is the earliest pic)
Chuck, I don't understand. What did you contribute? I've lost track of time ...
I'll add those wordlets into v0.0005 when I get the chance.
Furthermore, files named xxxxxxxx.gif or xxxxxxxx.jpg SHOULD work. My bet is that the custom Avatar is ABOVE the none but I'll double check this on my test system.
OK, here's a problem I am having. after entering the correct path in the avatar path and custom avatar path fields and click update, It changes the path to the following the next time I go in....
The paths I am entering are: C:Inetpubwwwrootubbavatars and C:Inetpubwwwrootubbavatarscust_avatars
Also in the manage avatars cp, It shows this all the time.
Is there a problem with the coding or do I have permissions set wrong? Also, like Canis Lupus says above, What would be the best folder to place the avatar and custom avatar folders in? CGI or non CGI? Thank you...
Oh yeah, it seems to be standard to put avatars under the NonCGI directory and the custom avatar directory under your avatar directory but the script will work if you put them somewhere else as long as you set the settings correctly.
Okay, finished installing it, and it seems to be working great! Dunno bout the Netscape bug tho, since I am yet to install Netscape on this computer, but in IE it looks flawless
Okay, the hacks works pretty good, but I see some sort of bug.
When those people I specified a custom avatar for tries to choose "CUSTOM" they get my admin avatar displayed instead, not theirs.
It usually fixes itself after I cleared the cache, but it still showed the wrong avatar when they first posted a message after changing it. I had to reply to the thread for it to change back.
Anyone else encounter this bug, or is it just me? TIA
I have the same problem and I know know how to fix it.
Ask your users to update their profile twice (the 2nd time should choose CUSTOM)
This is because the script called the member's data file line 23, which means [Profile last editted by whom]
Therefore, if u editted their profiles, they will use your pic instead of theirs. By asking them to update their own profiles twice, it will be solved.
Could somebody please translate this for me? 1. Voici tous les peintures disponsible dans notre UBB. Vous pouvez choisir seulement UNE peinture pour vous-même. 2. Cliquez pour vour tous les avatars disponsible. ----------------- thank you...
This is the hack my visitors have been anxiously waiting for.
The hack is doing something strange though. I renamed a custom hack to the user number and when I go into that user's profile it recognizes there is a custom avatar available. But when I select custom in the control panel, it returns a broken image.
All other avatars are showing up fine; it's just the custom avatars that are showing up as broken images.
But again, when I rename that file to that user number and then save it in the same custom directory with that number, it recognizes that a custom avatar exists, but when I click on it, it returns a broken graphic.
Try this ... upload an image of 1111.gif into your avatar (not custom) directory. Is this displayed on the normal avatar list (and does the picture show up (i.e., preview?)?
I actually figured out the problem this morning. It was a UNIX board set-up issue. I needed to upload the custom avatars in a separate sub-directory inside the html directory.
twinspin, I'm glad it's working for you know! (and nothing wrong w/ the script)
Caldazar, if you're hosted on Windows NT, and don't have admin access to the server, you have to phone Tech support to get those directory changes. CHMOD is only for UNIX.
Finally everyone else, hi everyone,
Recently I've been getting more and more support requests for this hack with sufficient information. Just to clarify, I'll require the following information to fully diagose your problem and (hopefully) provide a solution.
1. Version of your UBB 2. URL to your UBB 3. A _thorough_ description of the problem 4. What steps have you taken to resolve the problem? 5. If there was an error message what is it? 6. What platform are you running UBB on? Something like Windows is not sufficient. You'll need something like Apache 1.3.19 on Windows 2K Advanced Server SP1. 7. Have you double checked and tripled checked your permissions? 8. Were the scripts uploaded correctly and into the right directories? 9. If the problem is reproduceable, give me a thorough STEP-BY-STEP of how the problem may be reproduced. A problem such as "My Custom Avatars don't work." doesn't really help me diagose the problem without accompanying information. For example, do the custom avatars only work for a certain group of people? or people with a certain registration number?
I can't stress the importance of reading through the documentation. This is what it is for. DO NOT BYPASS THIS STEP.
The only problem I have, at the moment, is upon registration.
Prior to choosing an avatar and in some cases after, the cell spacing height warped. Each word of the avatar area is on a separate line. This didn't happen with v3, but is happening with v5. I've reapplied the coding twice with the same results.
I'm betting it has to do w/ layer size. Let me do some beta testing at home at your screen resolution. If you can also e-mail me a copy of the source code behind that thing that would be great too. ([email protected])
Hello qasic. I installed this hack and it is truely an excellent feature..good work.
There is one problem i am having, it is my fault obviously but i cannot fin the problem.
Everything else works fine, apart from when i go to my control panel and select "avatar settings" from teh primary setting, or "manage avatars" from maintenance, i get nothing. The actual control panel shows with everyting on it, and the copyright info contained in the hack, but nothing inbetween the navigation and the copyright info...
You never read the FAQ part of the documentation. It mentions a solution for this EXACT problem - you did now upload your templates correctly. Re-upload your avatar templates and all should be well.
I have tried to install this hack over 5 times and this version has been the easiest but still i don't have enough skill to pull it off completely.
1. v6 2. http://www.venom-matrix.com/cgi-bin/ultimatebb.cgi 3. I have a few problems. One, the control panel won't work anymore it just shows 500 errors. Two, in the profile area I can't choose an avatar it just has none and a line. 4. On the first one i tried CHMODing the hell out of cp.cgi and it was no use. On the seccond, i have no clue 5. 500 6. UNIX
sorry that is all i really know. I really want this hack and i have tried so many times can somebody help me please.
Since there's been some recent changes in the coding of UBB 6.01 as far as with '' instead of "", should I replace the various codes in this hack in the cp.cgi from, for example:
if (($ubb eq "vars_avatar") && ($status eq "Administrator")) {
to:
if (($ubb eq 'vars_avatar') && ($status eq 'Administrator')) {
etc. etc.? Just curious.
It appears to work fine in 6.01 without the changes, I was just wondering if it was something that SHOULD be changed...
the double quotes " " are used to replace variables for their values inside a string. the simple quotes ' ' on the other hand, sees everything as a string.
for that fact, i believe using simple quotes when you dont need to use variables in a string makes the code processing faster. (i think)
I installed this hack. Works great so far!!!! Thanks a lot.
But my users are starting to bug me to upload customs avatars for them Can you make some modifications, so users can do it for themself? I don't like to be buged much
qasic, thanks for this perfectly doc'd hack! First try worked perfectly (with the exception that I forgot my custom folder) Did catch a typo which makes it 99.9% perfect
I WILL NOT give an option which allows user to upload custom avatars .. it's WAY too much of a security risk (plus the fact I'll get tons more support requests - see latter why.)
Known Issues in Avatar Hack:
Issue: Preview Avatar in Netscape Doesn't Work Status: Spent another two yours working on this. Unfortuantely, I don't think there will be a fix for this. The error seems to come from the fact that the
made these changes as I installed as I read about them in the earlier threads posted via mr. Alien, CopyCat and yourself so sounds like you are still batting 1000 over here!
Works great on this end. I do have a minor question, Is there a site that has a zip file or somewhat of a site that we can download the customs avatars?
If you look your code you have it setup for your customs avatars. Do you think you can post a link on this topic also to download the customs avatars gifs.
It would make it alot easy for user to set it up correctly then alter the code and mess it up more.