Print Page | Close Window

Dynamic Avatar Mod

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19507
Printed Date: 28 March 2026 at 2:20pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Dynamic Avatar Mod
Posted By: gölge
Subject: Dynamic Avatar Mod
Date Posted: 23 April 2006 at 7:37pm
dynamic avatar mod for version 8
the mod automatically lists the avatars that you adding later...
 
replace select_avatar.asp to your own:
 
object FSO version (most servers support this component, except mine Smile):
 
http://www.hemenpaylas.com/download/550403/select_avatar.zip.html - http://www.hemenpaylas.com/download/550403/select_avatar.zip.html
 
note: i cant tried it cos my server doesnt support fso but it must be work if i didnt make any mistake...
 
 
persits upload version (my server support this component):
 
http://www.hemenpaylas.com/download/550274/select_avatar.zip.html - http://www.hemenpaylas.com/download/550274/select_avatar.zip.html
 



Replies:
Posted By: sunrise
Date Posted: 25 April 2006 at 9:10pm
Thanks gölge for all your mods an HELPS


Posted By: BrownGhost
Date Posted: 24 June 2006 at 5:53pm
file not on server for avatar persits upload version
i use thet also. please put it online again so we can download it :)


-------------
Thanks
BrownGhost

http://www.pitbull.dk" rel="nofollow - http://www.pitbull.dk


Posted By: gölge
Date Posted: 24 June 2006 at 6:31pm
file is already in server, just click that link for direct download:
 
http://fdc-32.download.hemenpaylas.com/32ACBF9180/550274/select_avatar.zip - http://fdc-32.download.hemenpaylas.com/32ACBF9180/550274/select_avatar.zip


Posted By: BrownGhost
Date Posted: 24 June 2006 at 9:09pm
well i dont understand "#&&#¤/(/%(#// that language LOL
so i cant download it. but i have found my old forum, and take a Dynamic Avatar Mod i udes there, thet works great, also for V8 :)

see my post here:
http://forums.webwiz.net/forum_posts.asp?TID=20414






-------------
Thanks
BrownGhost

http://www.pitbull.dk" rel="nofollow - http://www.pitbull.dk


Posted By: viet47772
Date Posted: 01 July 2006 at 5:02am
This code follow you to select avatar in any sub-folders in your avatar folders.
<%
Function RemoveAvatarStrings(strInput)
    strInput = Replace(strInput, ".jpg", "")
    strInput = Replace(strInput, ".jpeg", "")
    strInput = Replace(strInput, ".gif", "")
    strInput = Replace(strInput, ".png", "")
    strInput = Replace(strInput, "_", " ")

    RemoveAvatarStrings = strInput
End Function

Response.Write(vbCrLf & "<optgroup label=' - General Avatars - ' />")

Dim fso

Set fso = Server.CreateObject("Scripting.FileSystemObject")

Dim rootFolder
Set rootFolder = fso.GetFolder(Server.MapPath("avatars"))

Dim files
Dim file
Set files = rootFolder.Files

For Each file in files
    If Instr(file.Type, "JPEG") <> 0 OR Instr(file.Type, "JPG") <> 0 OR Instr(file.Type, "GIF") <> 0 OR Instr(file.Type, "PNG") <> 0 Then
        Response.Write "<option value=""avatars/" & file.Name & """>" & RemoveAvatarStrings(file.Name) & "</option>"
    End If
Next

Set files = Nothing

Dim subFolders
Dim folder
Set subFolders = rootFolder.SubFolders

For Each folder in subFolders
    Response.Write(vbCrLf & "<optgroup label=' - " & folder.Name & " - ' />")

    Set files = folder.Files

    For Each file in files
        If Instr(file.Type, "JPEG") <> 0 OR Instr(file.Type, "JPG") <> 0 OR Instr(file.Type, "GIF") <> 0 OR Instr(file.Type, "PNG") <> 0 Then
            Response.Write "<option value=""avatars/" & folder.Name & "/" & file.Name & """>" & RemoveAvatarStrings(file.Name) & "</option>"
        End If
    Next

    Set files = Nothing
Next

Set subFolders = Nothing
Set rootFolder = Nothing
Set fso = Nothing
%>


Posted By: jsaren
Date Posted: 02 July 2006 at 4:25am
http://forums.webwiz.net/member_profile.asp?PF=24030&FID=19 - viet47772   is great  mod creater !



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net