Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Dynamic Avatar Mod
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamic Avatar Mod

 Post Reply Post Reply
Author
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic Avatar Mod
    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):
 
 
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):
 
 


Edited by gölge - 23 April 2006 at 11:56pm
Back to Top
sunrise View Drop Down
Newbie
Newbie
Avatar

Joined: 25 March 2006
Location: Turkey
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote sunrise Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2006 at 9:10pm
Thanks gölge for all your mods an HELPS
Back to Top
BrownGhost View Drop Down
Groupie
Groupie


Joined: 26 November 2002
Status: Offline
Points: 193
Post Options Post Options   Thanks (0) Thanks(0)   Quote BrownGhost Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2006 at 6:31pm
file is already in server, just click that link for direct download:
 
Back to Top
BrownGhost View Drop Down
Groupie
Groupie


Joined: 26 November 2002
Status: Offline
Points: 193
Post Options Post Options   Thanks (0) Thanks(0)   Quote BrownGhost Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
viet47772 View Drop Down
Newbie
Newbie
Avatar

Joined: 04 June 2006
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote viet47772 Quote  Post ReplyReply Direct Link To This Post 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
%>
Back to Top
jsaren View Drop Down
Groupie
Groupie
Avatar

Joined: 15 April 2006
Location: China
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote jsaren Quote  Post ReplyReply Direct Link To This Post Posted: 02 July 2006 at 4:25am
viet47772  is great  mod creater !
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.