Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

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

Windows Web Hosting 30 Day Free Trial

Windows Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For moreĀ informationĀ see our Windows Hosting 30 Day Free Trial page.

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
Avatar
1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 838
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
Avatar

Joined: 12 May 2003
Status: Offline
Points: 3941
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
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Web Wiz on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved