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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 a dump question about xtra fields in the profile
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Disi
Starting Member

9 Posts

Posted - 21 May 2002 :  08:27:24  Show Profile  Send Disi an ICQ Message
hi there

i just wanted to edit the snitz forum a little bit (to fit to our clanpage) but unfortunatly nothing works a it schuld

i make a DB entry at FORUM_MEMBERS just behind M_LEVEL , i put M_MEMBER in

now i've change the following code ind the inc_profile (about line 592)

<%if Request.Form("Method_Type") = "Modify" then %>
<tr>
<td bgColor="<% =strPopUpTableColor %>" align=right valign=top nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Member Level: </font></b></td>
<td bgColor="<% =strPopUpTableColor %>" valign=top>
<%if rs("M_NAME") = "Admin" then %>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Administrator</font>
<input type="hidden" value="3" name="Level">
<%else %>
<SELECT value="1" name="Level">
<OPTION VALUE="1"<% if rs("M_LEVEL") = 1 then Response.Write(" selected") %>>Normal User
<OPTION VALUE="2"<% if rs("M_LEVEL") = 2 then Response.Write(" selected") %>>Moderator
<OPTION VALUE="3"<% if rs("M_LEVEL") = 3 then Response.Write(" selected") %>>Administrator
</SELECT>
<%end if %>
</td>
</tr>
<tr>
<td bgColor="<% =strPopUpTableColor %>" align=right valign=top nowrap height="23"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
Member : </font></b></td>
<td bgcolor="<% =strCategoryCellColor %>" height="23">
<input type="checkbox" name="m_member" value="m_member" <% if rs("M_MEMBER") = 1 then Response.Write("Checked") end if %> >
</td>
</tr>

<%end if %>
<!--</table>
</td> -->
<%

[/code]

the checkbox schuld do the following things, set the m_member field at the DB on true or false so that i can show on my clanpage a list of members well the problem is that all members are checked (not only the ones with the true in the DB) or NONE

i dont know why (im quite new at asp)

thx 4 helping

regards Disi

redbrad0
Advanced Member

USA
3725 Posts

Posted - 22 May 2002 :  05:13:04  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
if you look above all that code you will see where its actually getting the info out of the database. you will need to add M_MEMBER, to the list of fields it returns

Brad
Web Hosting with SQL Server @ $24.95 per month
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07