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: Configurable Member Fields
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 4

need300z
Starting Member

14 Posts

Posted - 10 January 2001 :  23:43:58  Show Profile
This is the error I get when I run the setup from the mod screen.

-2147217900 | [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'COLUMN'.

it reffers to:
strSql = strSql & "ADD COLUMN C_INTUSERFIELDS smallint NULL" in memeber_profile_setup.asp anybody have any clues at to what could be wrong here.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20593 Posts

Posted - 11 January 2001 :  05:06:43  Show Profile  Visit HuwR's Homepage
quote:

This is the error I get when I run the setup from the mod screen.

-2147217900 | [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'COLUMN'.

it reffers to:
strSql = strSql & "ADD COLUMN C_INTUSERFIELDS smallint NULL" in memeber_profile_setup.asp anybody have any clues at to what could be wrong here.





A couple of questions first,
which version of the forumcode are you using?
Did you download this as part of Myforum code, or from the link in this Topic?

I will post you a file when you have answered

'Resistance is futile'
Go to Top of Page

evehawk
New Member

Australia
65 Posts

Posted - 11 January 2001 :  06:07:15  Show Profile  Send evehawk an ICQ Message
Thanks HuwR,
i send u email to the addy in your profile on this board

I did redo the mod, this time i got it show up on profile but it does not update or record the field value when post.
I am lost:( thanks for help



Edited by - evehawk on 11 January 2001 06:08:51
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20593 Posts

Posted - 11 January 2001 :  06:43:27  Show Profile  Visit HuwR's Homepage
quote:

Thanks HuwR,
i send u email to the addy in your profile on this board

I did redo the mod, this time i got it show up on profile but it does not update or record the field value when post.
I am lost:( thanks for help



Edited by - evehawk on 11 January 2001 06:08:51



I have been trying to respond, but your mail program does not give the correct return address. I have now sent it to the address listed here in your profile

'Resistance is futile'
Go to Top of Page

need300z
Starting Member

14 Posts

Posted - 11 January 2001 :  09:38:34  Show Profile
HuwR, i'm using 3.1sr4 and Yes I download your code from above. I'm using sql 7 and the mod commader to run it and running into those problems

Go to Top of Page

need300z
Starting Member

14 Posts

Posted - 11 January 2001 :  11:35:21  Show Profile
Ok i added the colum in forum_config that was missing: C_INTUSERFIELDS smallint NULL but now when i go to the mod commmander and and try and run go. I get:
ADODB.Recordset error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/board/mods/admin_user_fields.asp, line 59


know what do I do

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20593 Posts

Posted - 11 January 2001 :  11:44:15  Show Profile  Visit HuwR's Homepage
quote:

Ok i added the colum in forum_config that was missing: C_INTUSERFIELDS smallint NULL but now when i go to the mod commmander and and try and run go. I get:
ADODB.Recordset error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/board/mods/admin_user_fields.asp, line 59


know what do I do




look in admin_userfields for

rs2.AbsolutePage = iPage

change it to

if not rs2.BOF or not rs2.EOF then
rs2.AbsolutePage = iPage
end if



'Resistance is futile'
Go to Top of Page

need300z
Starting Member

14 Posts

Posted - 11 January 2001 :  11:47:23  Show Profile
ok here is what I had to do:


I have added a small fix to this, modify line 59 to this

'############################################
if rs2.AbsolutePage > 0 then
rs2.AbsolutePage = iPage
end if
'############################################

I had also changed the [Page:1/0] so it would display correctly [Page:1/1] by changing line 80 to this:

'############################################
response.write " [Page:" & iPage & "/"
if iPageCount = 0 then
iPageCount = 1
end if
response.write iPageCount & "]"
'############################################


Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 17 January 2001 :  17:23:32  Show Profile  Visit rick7165's Homepage
HuwR... I'm having trouble with User Fields.. Here is the files. Let me know if you see what's wrong

www.eastpasco.com/files/userf.zip

The setup file will not work either... I'm on 3.1 SR4

Thanks
Rick

My Demo Site
www.eastpasco.com

Edited by - rick7165 on 17 January 2001 17:37:18
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20593 Posts

Posted - 17 January 2001 :  18:05:42  Show Profile  Visit HuwR's Homepage
firstly, you need to edit the include directives in
admin_user_fields remove the ../

'Resistance is futile'
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 22 January 2001 :  20:54:06  Show Profile  Visit rick7165's Homepage
Fields are showing up, but no data :( here is the line of code:

<%'Rem User Field Code #######################################
if (intUserFields > 0) then
%> <tr>
<td align=center bgcolor="<% =strCategoryCellColor %>" colspan="2"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">Extra Info..</font></b></td>
</tr>
<tr><td></td></tr>
<%
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open strConnString
set rs2 = Conn.Execute("SELECT * FROM " & strMemberTablePrefix & "USERFIELDS ORDER BY USR_FIELD_ID")
do until rs2.EOF
fieldValue = getUserFieldValue(rs2("USR_FIELD_ID"),RS("MEMBER_ID"))
Response.Write ("<tr><td valign=""top"" align=""right"" bgColor=" &strPopUpTableColor & " > <b><font face=""" & strDefaultFontFace & """ size=" & strDefaultFontSize & ">" & rs2("USR_LABEL") & ":</font></b></td>")
if rs2("USR_FIELDTYPE") = "T" then %>
<td valign="top" bgColor="<% =strPopUpTableColor %>"><textarea maxLength="255" name=<%=rs2("USR_SHORTNAME")%> cols="20" rows=3><%= getUserFieldValue(rs2("USR_FIELD_ID"),RS("MEMBER_ID")) %></textarea></td>
<% Else
if rs2("USR_FIELDTYPE") = "S" then %>
<td valign="top" bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><INPUT name=<%=rs2("USR_SHORTNAME")%> size="20" value="<%= getUserFieldValue(rs2("USR_FIELD_ID"),RS("MEMBER_ID")) %>"></font></td>
<% Else %>
<td valign="top" bgColor=<% =strPopUpTableColor %>><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><INPUT name=<%=rs2("USR_SHORTNAME")%> type="checkbox" value="1" <% If fieldValue = "1" then %>checked<% End If %>></font></td>
<% End If %>
<% End If %>
<% rs2.MoveNext
loop
rs2.Close
Conn.close
set Conn = Nothing
end if
'Rem User Field Code #######################################

My Demo Site
www.eastpasco.com
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 23 January 2001 :  22:58:46  Show Profile  Visit rick7165's Homepage
Not sure if it's me.. Most likely... LOL

But The user fields work when a new member joins.. they can enter into that field and it shows up, But if a current member trys to go and enter info in the extra field.. It will not show up.

Any Suggestions?

Rick

My Demo Site
www.eastpasco.com
Go to Top of Page

CrAzY
New Member

USA
50 Posts

Posted - 24 January 2001 :  15:32:34  Show Profile  Send CrAzY an AOL message  Send CrAzY an ICQ Message
Does anyone have this mod working on their site? I'd like to see an example of what this does.

I'm Beyond Help
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20593 Posts

Posted - 24 January 2001 :  15:46:32  Show Profile  Visit HuwR's Homepage
You can try it here

Test Forum


You can log in as Admin/admin to test the admin stuff.

'Resistance is futile'
Go to Top of Page

CrAzY
New Member

USA
50 Posts

Posted - 24 January 2001 :  16:25:27  Show Profile  Send CrAzY an AOL message  Send CrAzY an ICQ Message
Thanks HuwR ...

Now I've got an idea of how i might implement this.

I'm Beyond Help
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous 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.57 seconds. Powered By: Snitz Forums 2000 Version 3.4.07