<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Existing user database integration + segregation</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Existing user database integration + segregation]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 08 Apr 2026 20:02:44 +0000</pubDate>
  <lastBuildDate>Fri, 20 Oct 2006 09:35:09 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=21637</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Existing user database integration + segregation : Looks good  ]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115859.html#115859</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 20&nbsp;October&nbsp;2006 at 9:35am<br /><br />Looks good&nbsp;<img src="https://forums.webwiz.net/smileys/smiley32.gif" border="0" align="absmiddle" alt="Clap" />]]>
   </description>
   <pubDate>Fri, 20 Oct 2006 09:35:09 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115859.html#115859</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : Well, I&amp;#039;m happy to say that...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115849.html#115849</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=24987">gariputro</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 19&nbsp;October&nbsp;2006 at 7:59pm<br /><br /><P>Well, I'm happy to say that after messing around with the code for the past 12 hours or so (my eyes hurt) I have a workable solution.&nbsp; Is it the best possible solution?&nbsp; Well, probably not, but I'm open to some guru taking my example, cleaning it up&nbsp;and writing it in as a feature in the future (attn: boRg <img src="http://forums.webwiz.net/smileys/smiley1.gif" height="17" width="17" border="0" align="absmiddle" alt="Smile" />).&nbsp; I resorted to using an SQL insert statement to change the database because I was having troubles with writing using rsCommon.</P><P>All modifications were done to functions_members_API.asp.&nbsp; Line markers are estimates and may be off by a few.</P><DIV>Line 90 (insert):</DIV><DIV><FONT color=#ff0000>Dim strGroup</FONT></DIV><DIV><FONT color=#ff0000>Dim oldGroupID</FONT></DIV><DIV>&nbsp;</DIV><DIV>Line 98 (insert):</DIV><DIV><FONT color=#ff0000>'Get the current user group ID passed in your session; rename Group to whatever you called your session variable</FONT><BR><FONT color=#ff0000>strGroup = Session("Group")</FONT></DIV><DIV>&nbsp;</DIV><DIV>Line 109 (replace):</DIV><DIV>strSQL = "SELECT " &amp; strDbTable &amp; "Author.Password, " &amp; strDbTable &amp; "Author.Salt, " &amp; strDbTable &amp; "Author.Username, " &amp; strDbTable &amp; "Author.Author_ID, " &amp; strDbTable &amp; "Author.User_code, " &amp; strDbTable &amp; "Author.Active, " &amp; strDbTable &amp; "Author.Login_attempt, " <FONT color=#ff0000>&amp; strDbTable &amp; "Author.Group_ID "</FONT> &amp; _</DIV><DIV>&nbsp;</DIV><DIV>Line 139 (insert):</DIV><DIV><FONT color=#ff0000>oldGroupID = rsCommon("Group_ID")</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV>Line 194 (insert):</DIV><DIV><FONT color=#ff0000>'If the Session Group_ID does not match that on record we need to overwrite it in the db<BR>If NOT strGroup = oldGroupID Then&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp; 'Set the forum group ID number for an Existing Member</FONT></DIV><DIV><FONT color=#ff0000>&nbsp; 'Check tblPermissions&nbsp;for values used below</FONT></DIV><DIV><FONT color=#ff0000>&nbsp; '1 = Adminsitrator (reserved for Admin only)<BR>&nbsp; '2 = Guest (default)<BR>&nbsp; '3 = Moderator (all User Admins)<BR>&nbsp; '4 = Newbie</FONT></DIV><DIV><FONT color=#ff0000>&nbsp; '5 = Operator<BR>&nbsp; '6 =&nbsp;Power User</FONT></DIV><DIV><FONT color=#ff0000></FONT>&nbsp;</DIV><DIV><FONT color=#ff0000>&nbsp; If strGroup = 1 or strGroup =&nbsp;2 Then<BR>&nbsp;&nbsp;&nbsp; intForumStartingGroup =&nbsp;5</FONT></DIV><DIV><FONT color=#ff0000>&nbsp; ElseIf strGroup =&nbsp;3 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;intForumStartingGroup = 6</FONT></DIV><DIV><FONT color=#ff0000>&nbsp; ElseIf strGroup =&nbsp;4 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;intForumStartingGroup = 3</FONT></DIV><DIV><FONT color=#ff0000>&nbsp; ElseIf strGroup =&nbsp;9 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;intForumStartingGroup = 1<BR>&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;intForumStartingGroup = 2<BR>&nbsp; End If<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp; 'Setup SQL statement to update tblAUthor db with new Group_ID<BR>&nbsp; strSQL2 = "UPDATE " &amp; strDbTable &amp; "Author " &amp; strRowLock &amp; _<BR>&nbsp; " SET Group_ID=" &amp; intForumStartingGroup &amp; _<BR>&nbsp; " WHERE Author_ID =" &amp; lngUserID &amp; ";"&nbsp;<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp; 'Set error trapping<BR>&nbsp; On Error Resume Next<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp; 'Write SQL query to the db<BR>&nbsp; adoCon.Execute(strSQL2)<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp; 'If an error has occured write an error to the page<BR>&nbsp; If Err.Number &lt;&gt; 0 Then&nbsp;Call errorMsg("An error has occured while writing to the database.", "existingMemberAPI()_update_pass", "functions_member_API.asp")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp; 'Disable error trapping<BR>&nbsp; On Error goto 0<BR>&nbsp;&nbsp;<BR>End If</FONT></DIV><DIV><FONT color=#ff0000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>*EDIT* Oops, I lied.&nbsp; I made one addition to database_connections.asp for the SQL statement I ran.</FONT></DIV><DIV>Line 73 (insert):</DIV><DIV><FONT color=#ff0000>Dim strSQL2</FONT></DIV><span style="font-size:10px"><br /><br />Edited by gariputro - 19&nbsp;October&nbsp;2006 at 8:02pm</span>]]>
   </description>
   <pubDate>Thu, 19 Oct 2006 19:59:30 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115849.html#115849</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : Found a solution, no. Have a theory,...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115753.html#115753</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=24987">gariputro</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 18&nbsp;October&nbsp;2006 at 6:33pm<br /><br />Found a solution, no.&nbsp; Have a theory, yes!<DIV>&nbsp;</DIV><DIV>I'll post back if I can figure out how to make this work.&nbsp; I'm sure someone else can benefit from my sweat. <img src="http://forums.webwiz.net/smileys/smiley1.gif" height="17" width="17" border="0" align="absmiddle" alt="Smile" /></DIV>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 18:33:48 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115753.html#115753</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : Without going all through the...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115747.html#115747</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 18&nbsp;October&nbsp;2006 at 5:30pm<br /><br />Without going all through the code it looks like you might have found a solution yourself.<br><br>If you download the Access version and open the database you will get all the table names and field names so you shouldn't get them wrong.<br><br>All the table names and field names are the same no matter which database you are using.<br>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 17:30:59 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115747.html#115747</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : Well, I by no means am an ASP...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115746.html#115746</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=24987">gariputro</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 18&nbsp;October&nbsp;2006 at 5:25pm<br /><br />Well, I by no means am an ASP programmer.&nbsp; PHP, that's another story.<DIV></DIV><DIV>&nbsp;</DIV><DIV>In looking at the code, I realize it wouldn't be a quick fix, but wouldn't it still be rather easy?&nbsp; I would need to&nbsp;modify the SQL statement to also pull 'strDbTable &amp; "Permissions.Group_ID"' from the Permissions table (this is all on a shared server which I have limited access to, so if I get a tbl name wrong, don't burn me), then read it as an rsCommon and overwrite it.&nbsp; Have I oversimplified it?</DIV>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 17:25:47 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115746.html#115746</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : It looks like a simple change...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115745.html#115745</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 18&nbsp;October&nbsp;2006 at 5:11pm<br /><br />It looks like a simple change may not do it and the API file may need to be re-written to accommodate the customisations you require. If you are unsure about ASP programming you may need to ask a developer about this.]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 17:11:29 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115745.html#115745</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : And now onto my question #2...  How...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115744.html#115744</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=24987">gariputro</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 18&nbsp;October&nbsp;2006 at 4:51pm<br /><br />And now onto my question #2...<DIV>&nbsp;</DIV><DIV>How can I update this the GroupID on the fly, so that&nbsp;when I change a user designation within my own login system, the next time that user logs in their GroupID is changed?</DIV><DIV>&nbsp;</DIV><DIV>Your previous example works perfectly for users visiting the forum for the very first time.&nbsp; Once I got that up and running, I copied and inserted the code to around&nbsp;line 172 in functions_members_API.asp and then inserted:&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>rsCommon.Fields("Group_ID") = intForumStartingGroup</DIV><DIV>&nbsp;</DIV><DIV>at line 182 (just before the rsCommon.Update) hoping that the user designation would be read from Session, converted to a GroupID number and rewritten to the database, just as a changed password would.&nbsp; Doing this however, gives me an error message:</DIV><DIV>&nbsp;</DIV><DIV><strong>Server Error in Forum Application<BR></strong>An error has occured while writing to the database.<BR>Please contact the forum administrator.<BR><BR><strong>Support Error Code:-</strong> err_SQLServer_existingMemberAPI()_update_pass<BR><strong>File Name:-</strong> functions_member_API.asp<BR><BR><strong>Error details:-</strong><BR>ADODB.Recordset<BR>Item cannot be found in the collection corresponding to the requested name or ordinal.</DIV><DIV>&nbsp;</DIV><DIV>Did I miss something?<BR></DIV>]]>
   </description>
   <pubDate>Wed, 18 Oct 2006 16:51:45 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115744.html#115744</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : That is just the type of answer...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115699.html#115699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=24987">gariputro</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 17&nbsp;October&nbsp;2006 at 4:55pm<br /><br />That is just the type of answer I was looking for!&nbsp; I was hoping that someone would point me to a spot in the scripts where the group is assigned/checked.&nbsp; I will give this a try.&nbsp; Thanks boRg!]]>
   </description>
   <pubDate>Tue, 17 Oct 2006 16:55:29 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115699.html#115699</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : The simplest way would be for...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115697.html#115697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 17&nbsp;October&nbsp;2006 at 4:39pm<br /><br />The simplest way would be for you to edit the file functions_member_API.asp<br><br>At line 222 you will find the following line:-<br><br>intForumStartingGroup = CInt(rsCommon("Group_ID"))<br><br>This line gets the Gorup_ID number of the strating group to place the user in.<br><br>What you would need to do is change this so based on your login system if it is user A they are given the group ID of the group you want them to be in and another for group B users:-<br><br>If UserA Then<br>&nbsp;&nbsp;&nbsp; intForumStartingGroup = 3<br>ElseIf UserB Then<br>&nbsp;&nbsp;&nbsp; intForumStartingGroup = 4<br>End If<br><br>You can get the Group_ID number by looking in ten tblGroup table in the database and get the ID numbers for the groups you want to use.<br>]]>
   </description>
   <pubDate>Tue, 17 Oct 2006 16:39:50 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115697.html#115697</guid>
  </item> 
  <item>
   <title><![CDATA[Existing user database integration + segregation : I know it sounds confusing, so...]]></title>
   <link>https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115693.html#115693</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=24987">gariputro</a><br /><strong>Subject:</strong> 21637<br /><strong>Posted:</strong> 17&nbsp;October&nbsp;2006 at 4:22pm<br /><br />I know it sounds confusing, so let me explain.&nbsp; I have a site that contains an existing SQL user database.&nbsp; I already know how, and have performed, the function of using my existing user database as the forum members database: <DIV><a href="http://forums.webwiz.net/forum_posts.asp?TID=19621&amp;KW=integrate+user+database" target="_blank">http://forums.webwiz.net/forum_posts.asp?TID=19621&amp;KW=integrate+user+database</A></DIV><DIV>&nbsp;</DIV><DIV>Now that I have the forum setup and users are able to access it without logging in, I need the ability to&nbsp;control what the users see based on their rights within the website (see example):</DIV><DIV>&nbsp;</DIV><DIV>User A logs into the website, visits the forum, and is only allowed to see section A of the forum</DIV><DIV>User&nbsp;B logs into the website, visits the forum, and is only allowed to see section&nbsp;B of the forum</DIV><DIV>&nbsp;</DIV><DIV>I have the forum set up with group permissions and I have User A separate from User B in the SQL database based on a field where I store an access rights number (eg A=1, B=2, Admin=9, etc), so how do I pass that information to the forum and automatically assign them to a group when they visit, thereby restricting what they can view within the forum?</DIV><span style="font-size:10px"><br /><br />Edited by gariputro - 17&nbsp;October&nbsp;2006 at 4:23pm</span>]]>
   </description>
   <pubDate>Tue, 17 Oct 2006 16:22:29 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/existing-user-database-integration-segregation_topic21637_post115693.html#115693</guid>
  </item> 
 </channel>
</rss>