Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Avatar MOD (version 2.0)
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 12

rick7165
Senior Member

USA
1094 Posts

Posted - 03 April 2001 :  23:54:00  Show Profile  Visit rick7165's Homepage
Richard...

Any way to get the persons Avatar to show up in their profile?
and if they don't have one just a blank?




Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 04 April 2001 :  01:29:28  Show Profile
For those interested in the additional mod Rick ( see above ) mentioned

After line 159 ( about there that is )
<% end if ' strPicture %>
Insert this code
<% '################avatar mod #######################'%>
<% if Trim(rs("M_AVATAR_URL")) <> "" and lcase(rs("M_AVATAR_URL")) <> "noavatar.gif" and (IsNull(rs("M_AVATAR_URL")) = false) then

'## Forum_SQL - Get Avatar Settings from DB
strSql = "SELECT " & strTablePrefix & "AVATAR2.A_WSIZE"
strSql = strSql & ", " & strTablePrefix & "AVATAR2.A_HSIZE"
strSql = strSql & ", " & strTablePrefix & "AVATAR2.A_BORDER"
strSql = strSql & " FROM " & strTablePrefix & "AVATAR2"
set rsav = my_Conn.Execute (strSql) %>
<tr>
<td align=center bgcolor="<% =strCategoryCellColor %>" colspan="2"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %> "> My Avatar </font></b></td>
</tr>
<tr>
<td bgColor=<% =strPopUpTableColor %> align=center colspan="2">
<img src="<% =rs("M_AVATAR_URL") %>" align="absmiddle" width=<% =rsav"A_WSIZE") %> height=<% =rsav("A_HSIZE") %> border=<% =rsav("A_BORDER") %> hspace="0" ><% set rsav = nothing %><% end if %>
</td>
</tr>
<% '################avatar mod #######################'%>

that's it


http://www.ugfl.net/forums
Go to Top of Page

Id
Junior Member

USA
129 Posts

Posted - 04 April 2001 :  17:03:21  Show Profile  Visit Id's Homepage
quote:

You are probably missing the following code(in red) in the SQL statement around line 800 in pop_profile.asp. It's the SQL statement for the case "goModify"

strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL "
strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_AVATAR_URL"


If it's not there, just add it and it should solve your problem.



BabyGate
http://forum.g4systems.net/babygate/

Edited by - babygate on 03 April 2001 23:10:48



nah, that's not it, i double-checked that line of code is there, it's not a problem of the avatar showing up, it's just a problem of it not remembering my preference everytime I go edit my profile

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 04 April 2001 :  17:25:12  Show Profile
If you e-mail me your pop_profile.asp file I'll take a look at it.
Go to Top of Page

Id
Junior Member

USA
129 Posts

Posted - 04 April 2001 :  18:15:34  Show Profile  Visit Id's Homepage
quote:

If you e-mail me your pop_profile.asp file I'll take a look at it.



is on it's way, thanks

Go to Top of Page

Rmagddon
Starting Member

11 Posts

Posted - 07 April 2001 :  12:05:49  Show Profile
when I was installing I got this, and I was wondering what it is trying to tell me.

Any help would be helpful.
--------------------------------------------------------------------------------
Avatar Mod v2.0

Creating table(s)...
CREATE TABLE FORUM_AVATAR( A_ID int COUNTER NOT NULL , A_URL text (255) NULL , A_NAME text (50) NULL , A_MEMBER_ID int NULL DEFAULT 0)
-2147217900 | [Microsoft][ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement.

--------------------------------------------------------------------------------

Creating table(s)...
CREATE TABLE FORUM_AVATAR2( A_HSIZE int NULL , A_WSIZE int NULL , A_BORDER int NULL )
Table created succesfully

--------------------------------------------------------------------------------

Adding new records..
INSERT INTO FORUM_AVATAR2 (A_HSIZE, A_WSIZE, A_BORDER) VALUES (64, 64, 0)

Value(s) updated succesfully
--------------------------------------------------------------------------------

Adding Column...
ALTER TABLE FORUM_MEMBERS ADD COLUMN M_AVATAR_URL text (255) NULL
Column added successfully
Table(s) updated

--------------------------------------------------------------------------------
There were errors please post a question in the MOD Implementation Forum at
Snitz Forums

Edited by - Rmagddon on 07 April 2001 12:06:41
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 07 April 2001 :  12:16:13  Show Profile
If you change your strConnString from the one labeled as Access 97 to the one labeled as Access 2000 you won't get that error.
Go to Top of Page

Rmagddon
Starting Member

11 Posts

Posted - 07 April 2001 :  12:24:11  Show Profile
Thanks, that did the trick.

One other ?, can I set it up so that my members can enter a URL to an image that I have not setup as a Avatar?
Go to Top of Page

Rmagddon
Starting Member

11 Posts

Posted - 07 April 2001 :  17:16:58  Show Profile
Sry, but one more ?, can I change the max size of the images?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 07 April 2001 :  17:26:07  Show Profile
The code for the size selection is in admin_avatar_settings.asp on line #'s 129 - 142. You can either change the existing values or add more values if you like.

On your question about the URL, this MOD was made to eliminate the need for the user to enter a URL for the Avatar.
Go to Top of Page

mbuchsbaum
Starting Member

1 Posts

Posted - 14 April 2001 :  17:08:40  Show Profile
I noticed the mod_dbsetup.asp file uses the FSO component. My host does not have FSO enabled.

Is it possible to make the database changes another way? Possibly by manually editing the db...and if so, do you have the changes written out?

Thanks,
Michael

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 14 April 2001 :  20:30:41  Show Profile
try this instead of mod_dbsetup.asp:

http://www16.brinkster.com/richardk/files/avatar_dbsetup.zip
Go to Top of Page

bjlt
Senior Member

1144 Posts

Posted - 15 April 2001 :  05:04:51  Show Profile
would you kindly provide an alternative download link for this mod also?

Well, i'd also suggest that mod author asign version number for their mods, and note down changes in the beginning of readme and in the first message of the post. hence implementors would know if they are downloading the current version, esp when they download it from other site than the original author's.

TIA.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 April 2001 :  05:14:46  Show Profile
Alternate download link added to the Topic of this thread.
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 15 April 2001 :  07:05:23  Show Profile
I made all the changes to the files admin_home.asp ,inc_profile.asp,pop_profile.asp,register.asp,topic.asp .and the tabes were created succesfully. But I don't see any changes in topic.asp and other files. Did I miss something?

Go to Top of Page
Page: of 12 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07