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 - Update Change avatar size for admin and user
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Web Wiz 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.

Update Change avatar size for admin and user

 Post Reply Post Reply
Author
hohuybinh View Drop Down
Newbie
Newbie
Avatar

Joined: 22 July 2010
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote hohuybinh Quote  Post ReplyReply Direct Link To This Post Topic: Update Change avatar size for admin and user
    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




Edited by hohuybinh - 25 July 2010 at 1:20am
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