Print Page | Close Window

Avatar Selector

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Suggestions
Forum Description: Do you have any ideas for applications or content on Web Wiz? Then leave your suggestions here.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26104
Printed Date: 28 March 2026 at 6:02am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Avatar Selector
Posted By: mwebber
Subject: Avatar Selector
Date Posted: 13 August 2008 at 1:31pm
It looks like all the default avatars are hard coded into the forum via the select_avatar.asp file.
 
Would it not make sence to display whats in the avatar folder. so if you want to custom you avatars without changing the code its as easy as just putting new ones in or deleting unwanted ones.
 
      <%   
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder(Server.MapPath("./")& "/avatars/")
for each x in fo.files
 if not x.Name = "Thumbs.db" then
 %>
 
  <option value="avatars/<%=x.Name%>"> <%=x.Name%> </option>
  <%
  end if
next
set fo=nothing
set fs=nothing
%> 



Replies:
Posted By: WebWiz-Bruce
Date Posted: 13 August 2008 at 2:18pm
This was considered, however quite a few web hosts disable the FSO object for security reasons and without FSO you can't read files/images from a folder.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



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