Author |
Topic  |
|
tch
Starting Member
15 Posts |
Posted - 02 July 2001 : 19:32:50
|
Well, after being kicked off my BSD box, i've been forced to switch platforms to win2k for a forum. I've seen a lot of great things in this board so far, but it looks like the avatar issue is still a bit shaky. I've installed avatar v2 and the process of adding avatars is a daunting process. Let me share how this is done in YaBB a popular perl board. The board config specifies an avatar directory where all avatar images are kept. A user can choose an avatar out of a listbox with a preview on the right hand side. This list is generated by doing a directory list of the avatar directory and storing that into an array! voila, done. I've seen one other avatar addition that requires rw access, but that's no good. Has the above idea been tried, or just overlooked? If not, i'll give it a go. Being a new vbscript user it may take me a day or so, but I have nothing better to do at work. Any comments on why this will/won't work?
|
|
tch
Starting Member
15 Posts |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 02 July 2001 : 19:45:37
|
It's been done, but it requires that the FileSystemObject be available on your host. Some hosts disable it completely, or disable parts of it. That's why it wasn't included in the release of the Avatar MOD.
you can see it on this site: http://kinser.121host.net/oldbeta/
It doesn't have the Avatar Preview, but it does have the popup avatar list.
This is what I did first before I switched to the way it is now. |
 |
|
tch
Starting Member
15 Posts |
Posted - 02 July 2001 : 19:49:44
|
I wonder could the same goal be accomplished with some tricky database work? For example link a column in the database to a directory list, or is this not possible?
|
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 02 July 2001 : 19:53:34
|
Have you looked at this? http://forum.snitz.com/forum/link.asp?TOPIC_ID=7498
Also, if you have access to the FileSystemObject on your site, I can add the code in use at the site I posted a link to above to the inc_avatar.asp file. That way you won't need to enter links to Avatars in the Database, but instead it will just list the Avatars you have in the specified directory. |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 04 July 2001 : 20:35:32
|
quote:
ah ha, after looking around and seing how this might be done. (Some good starting code for returning a file from a directory here:http://www.brainscanstudios.com/dev_projects/displaycode.asp?displaycode=displaypics/displaypics.aspI see you would have to use a filesystem object, which apparently some hosts do not like. Am I correct in my assumption?
Edited by - tch on 02 July 2001 19:46:21
hey this was a good link, got it running too though I had problems at first because their documentation at this site sucks...
Dayve |
 |
|
tch
Starting Member
15 Posts |
Posted - 05 July 2001 : 09:09:21
|
I bet you learned it a little more completely w/o docs though, huh? Can't argue with nice GNU asp though.
|
 |
|
|
Topic  |
|