Print Page | Close Window

Update Change avatar size for admin and user

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=28724
Printed Date: 29 March 2026 at 3:12am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Update Change avatar size for admin and user
Posted By: hohuybinh
Subject: Update Change avatar size for admin and user
Date Posted: 22 July 2010 at 5:38am
i'm form vietnam, i'm not a fluent english speaker but i'm hope every one can do it with short directions.

1-in forum_post.asp

a/ create 1 variable to contain authorid
Dim strAuthorID


b/ find sql select command line to edit and add unndeline element
'SQL SELECT
strSQL = strSQL & strDbTable & "Thread.Thread_ID, " & strDbTable & "Thread.Message, " & strDbTable & "Thread.Message_date, " & strDbTable & "Thread.Show_signature, " & strDbTable & "Thread.IP_addr, " & strDbTable & "Thread.Hide, " & strDbTable & "Author.Author_ID, " & strDbTable & "Author.Username, " & strDbTable & "Author.Homepage, " & strDbTable & "Author.Location, " & strDbTable & "Author.No_of_posts, " & strDbTable & "Author.Join_date, " & strDbTable & "Author.Signature, " & strDbTable & "Author.Active, " & strDbTable & "Author.Avatar, " & strDbTable & "Author.Avatar_title, " & strDbTable & "Group.Name AS GroupName, " & strDbTable & "Group.Stars, " & strDbTable & "Group.Custom_stars, " & strDbTable & "GuestName.Name AS GuestName, "& strDbTable & "Author.Group_ID "


c/ Find command line
strAuthorSignature = sarryPosts(12,intCurrentRecord)
add following code after that
'authorID for poster
strAuthorID= sarryPosts(20,intCurrentRecord)


d/ find the command line
'If the user has an avatar then display it

and replace all if after that by following code
If blnAvatar = True AND strAuthorAvatar <> "" and strAuthorID="1" Then Response.Write("<img src=""" & strAuthorAvatar & """ alt=""" & strTxtAvatar & """ class=""avatar"" onerror=""this.src='avatars/blank_avatar.jpg';"" id=""adavatar""") else Response.Write("<img src=""" & strAuthorAvatar & """ alt=""" & strTxtAvatar & """ class=""avatar"" onerror=""this.src='avatars/blank_avatar.jpg';"" id=""avatar""") end if If 


2/ in css_styles  folder open all default.css at all skin and add following code

.avatar,#adavatar
{
    width: 140px;
    height: 140px;
    border: 1px solid #000000;
    margin: 2px;   
}


i'm hope it is useful for you





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