So.. I had a look into the code to see how he defines this "C" value. I think what you are looking for (if it is what I understood) is quite simple. All you need to do is copy some lines around to include/exclude them from a condition.
I can't test what I'm writing, though.. I'm still at work :P
Find these lines :
'If the user only wants to see one category, only display the forums for that category If intCatShow = intCatID OR intCatShow = 0 Then
|
Cut, and past them just above the code for the table, getting this result :
'Read in the details from the array of this category intCatID = CInt(sarryForums(0,intCurrentRecord)) strCategory = sarryForums(1,intCurrentRecord)
'If the user only wants to see one category, only display the forums for that category If intCatShow = intCatID OR intCatShow = 0 Then %> <table cellspacing="1" cellpadding="3" class="tableBorder" align="center"> <tr class="tableLedger"> <td width="4%"> </td> <td width="56%"><% = strTxtForum %></td> <td width="6%" align="center"><% = strTxtTopics %></td> <td width="6%" align="center"><% = strTxtPosts %></td> <td width="28%" align="center"><% = strTxtLastPost %></td> </tr><% 'Display the category name Response.Write vbCrLf & " <tr class=""tableSubLedger""><td colspan=""5""><a href=""default.asp?C=" & intCatID & strQsSID2 & """>" & strCategory & "</a></td></tr>"
|
And you'll need to move the "</table>" into the loop, just under the "Loop" command (before this line :
'Else we are not displaying forums in this category so we need to move to the next category in the array Else
|
)
..like I said, I can't test the code here, you may have to fiddle a bit with it.
Edited by Hades - 30 September 2006 at 11:16pm