Avatar Mod for 3.4

Original Author: Richard Kinser, adapted by Hamlin.

Download: www.ian-hamlin.co.uk/downloads/avatar34.zip

Support: http://forum.snitz.com/forum

Background: It’s basically a complete rip off of the avatar mod 2 made by Richard Kinser.  I did not add really add anything new, no upload support etc just fiddled with the old mod so it worked for 3.4.

Tested On: 3.4.0.1

New Files:

Changed Files:

Installation

Upload all the files to your forum directory.

Update the database

  1. Go to Admin Options > Mod Setup
  2. Select Avatar Mod for 3.4 from the dropdown list
  3. Click "Update"

After the database has been updated you can delete the dbs_avatar.asp file.

Modify Existing Files

CONFIG.ASP

Look for this code around line 124

Directly after that code add the following

Look for this code around line 389

Directly after that code add the following

That's all for config.asp


ADMIN_HOME.ASP

Look for this code around line 146

Directly after that code add the following

That's all for admin_home.asp


INC_PROFILE.ASP

Look for this code around line 202

In between the line end if ' strPicture and if (strBio + strHobbies + strLNews + strQuote) > 0 then add the following

Note: Add a %> before and  <% after the new line

It should now look like the following

end if ' strPicture
%>
<!--#INCLUDE FILE="inc_avatar.asp" -->
<%
if (strBio + strHobbies + strLNews + strQuote) > 0 then 

That's all for inc_profile.asp


REGISTER.ASP

Look for this code around line 86

Change the first line in that block so it looks like this

Look for this code around line 141

Add the following code after the line strSql = strSql & ", M_SHA256" 

So it will now look like this

Now look for this code around line 181

Add the following code after the line strSql = strSql & ", 1"

So it will now look like this

Find the following code around line 450

Add the following code after the line strSql = strSql & ", M_SHA256"

So it will now look like this

Find the following code around line 587

Add the following code after the line strSql = strSql & ", 1"

So it will now look like this

That's all for register.asp


POP_PROFILE.ASP 

Look for this code around line 188

Add the following code under the line strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL"

So it will now look like the following

Look for the following code around line 305

Directly under that code add the following

Look for the following code around line 838

Add the following after the line strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL"

So it will now look like this

Look for the following code around line 971

Add the following after the line strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL"

So it will now look like this

Look for this code around line 1185

Directly under that code add the following

Look for the following code around line 1249

Directly after that code add the following

Look for this code around line 1490

Directly after that code add this

Look for this code on line 1549

Directly after that add the following

Thats all for pop_profile.asp


TOPIC.ASP

Find the following code around line 96

Replace the line ", M.M_TITLE, M.M_HOMEPAGE, M.MEMBER_ID, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY" & _ with this code

Look for this code around line 131

Directly after that add this code

Look for this code around line 309

Replace the line strSql = strSql & ", M.M_TITLE, M.MEMBER_ID, M.M_HOMEPAGE, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY" with this code

Look for this block of code around line 515

Replace all of that with this code

Look for this code around line 552

Directly after that add this code

Look for this code arond line 584

Replace that with the following code

Look for this code around line 789

Replace that with the following code

that all for topic.asp, and that should be it for the mod as well!

What's that nothing's working?

Then pop along to http://forum.snitz.com/forum/forum.asp?FORUM_ID=94