Web Wiz - Green Windows Web Hosting

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

Avatar Mod

 Post Reply Post Reply
Author
justme View Drop Down
Groupie
Groupie


Joined: 06 January 2006
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote justme Quote  Post ReplyReply Direct Link To This Post Topic: Avatar Mod
    Posted: 09 November 2006 at 9:11pm
AVATAR MOD:
 Credit goes to original author:
 
Find file: forum/includes/select_avatar.asp
Just replase all inside thet file whit the code below :)
It will show all files you have in your avatar folder.
So you can just upload all the default avatar files you like :)
it shows files names, so if you upload a file thet has a name like this:
1213244324.jpg  then the user will see thet in the list.
try making your avarar files look nice for the user the selest from.
Cool_Man.jpg will look better than: 1213244324.jpg
<%
'#########################################################################
'##
'## Select Avatar WebWizForums v7.x
'## Works in version 8.x also testst by www.QCode.dk
'##
'## If you have any problems with this visit www.maddogs-asp.com
'## and post on the forums with the problem you are having and
'## if you have any error please post the full error so we can
'## help you easyer.
'##
'## Just change the database connection in the strMembersModCon
'## variable.
'##
'## Then make sure the strMembersModForumPath is the right path
'## to your forum.
'##
'## Writen by Drew Gauderman (aka MadDog)
'## Email: drew@madasp.com
'## Website: www.maddogs-asp.com
'##
'#########################################################################
Dim fso
Dim rootFolder
Dim files
Dim file
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set rootFolder = fso.GetFolder(Server.MapPath("avatars/"))
Set files = rootFolder.Files

For Each file in files
    If file.Type = "GIF Image" OR file.Type = "JPG Image" OR file.Type = "JPEG Image" Then
        Response.Write("          <option value=""avatars/" & file.Name & """>" & file.Name & "</option>")
    End If
Next
Set rootFolder = Nothing
Set fso = Nothing
Set files = Nothing
%> 
 
 
Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2006 at 12:36pm
Have you got permission from Maddog to reproduce this code?

EDIT: Ooops can a mod move this back to the Mods forum please


Edited by Mikey - 12 November 2006 at 12:39pm
Handyman man?
Back to Top
justme View Drop Down
Groupie
Groupie


Joined: 06 January 2006
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote justme Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2006 at 6:04pm

This Mod was already in the forum, I only re-created it in the Mod index so people can find it, I don't think I did anything worng by doing that. I even indicated that credit goes to original author, I am not trying to get credit for this, only trying to help others.

 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2006 at 9:58pm
I think you should also notify the original authors when you relocate their code.

Personally, I like to keep track of what code I post and any downloads I set up - primarily so that there's no unpatched versions running around in the future with my name on it.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
justme View Drop Down
Groupie
Groupie


Joined: 06 January 2006
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote justme Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2006 at 11:38pm
Yes, I agree on that one dpyers, I did not think about that :)
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.