Original Author: Richard Kinser, adapted by Hamlin for 3.4. Tested On: 3.4.01
Background: It’s basically a complete rip off of the avatar mod 2 made by Richard Kinser. I did not add really add anything new, no upload support etc just fiddled with the old mod so it worked for 3.4.
As it is the avatar mod 2 re-done it should find all your old avatars if you have any.
I've also modified the avatar mod 2 to work with 3.4.01, a fairly simple exercise.
Has anyone adapted it to allow members to specify there own avatar URL's?
My members are increasingly fed up with the limited options they have as members, it seems that most of the functionality is only available to Admins. I can appreciate the security and content aspects, however options would be nice.
I installed it on my test forum, and start doing sometest.
My first test was: I put the wrong link to the Image, and went to my Profile and selectec that Avatar. As the URL to the image is wrong, it worked fine, showing a image error. Then I went back to admin page and corrected the avatar Image URL, but the Image still shows as wrong on a topic. I deleted the avatar and it still there. Looking at SQL Member table, you are using the Image URL on members table. Isn't it better to store the ID of the avatar??? Because If someone changes where the avatar images are, every body will have to select again the avatar.
I will change it so that if you edit the avatar the members table will be updated, I know thats not the same as storing the ID but it keeps it simple .
That to me seems the simple way of doing it, then you don't have to change anything other than the admin_edit_avatar.asp page. It wont however help if you move your avatars to a new folder for example.
EDIT - I will see if I can get it to work using avatar id's instead as well tho.
I originally had it set up so the admin could specify a avatar folder, in the same way you specify the images folder in the main feature configuration. Then you only have to specify the image name, and if the folder changes you can just change it in one place. That would have stopped this problem....I cant remember why I changed it back
I've now modified the avatar 2, to allow members to select `Custom' from the avatar list, if they do this they can then type in a custom url for the avatars.
This works well, if anyone wants to see it or would like the code which is fully compatible with 3.4.01 let me know...forum is at http://www.clanregister.com/forum
I said to use the Avatar ID, because it's smaller ehaueha and if you change the avatar it will not be necessary to update the members table. You just update the avatar's table.