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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 category format in forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

canadave
Starting Member

7 Posts

Posted - 03 July 2003 :  14:23:21  Show Profile
Hi,

Apologies right off...this is a really really basic question, but I have almost zero knowledge of ASP.

What I'm trying to design is an "idiot-proof" forum for people who aren't too computer literate. What this means is that I'd like to change the default visual layout/format of the forum.

Specifically, I would like to:

1. Remove the "Category" row from the header. In other words, under the header row of "Forum....Topics.....Posts....Last Post....", there's usually a green row with the category. I don't need different categories of forums...I just want to create a "General Discussion" forum and a "FAQ". That's it. If users see a category name which can be clicked on, they will, and then they'll get lost and confused.

2. From the header where it has things like "Home | Profile | Register", I want to remove the "Active Topics", "Members", and "FAQ" links.

3. Inside the forum topics, I would like to remove the bar below the topic list that says "Showing topic # of #, sorted by [field] in [order] etc etc". It just clutters up the view and will distract the users I'm anticipating.

Any help with this would be MUCH appreciated...the link to my forum is at http://www.apfa.ca/forum. Thanks!!

Dave Klein

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 03 July 2003 :  15:20:24  Show Profile
Here's a quick (and probably dirty), but working solution to your question on how to remove the Category row. It's basically adding some codes so guests and members won't see the category row, but admins and moderators will (admins will have to be able to add and delete forums, as well as modifying the category's properties):

Open default.asp and find lines 468 to 470, which look like this:
						if chkDisplayHeader then
							Call DoHideCategory(CatID)
							Response.Write	"              <tr>" & vbNewline & _

Add the code in red as shown here:
if (mLev < 3) then '## hide the category row from guests and members
						if chkDisplayHeader then
							Call DoHideCategory(CatID)
							HideForumCat = strUniqueID & "HideCat" & CatID
							chkDisplayHeader = false
						end if
else '## show the category row to moderators and admins
						if chkDisplayHeader then
							Call DoHideCategory(CatID)
							Response.Write	"              <tr>" & vbNewline & _

Now find line 503 to 506 (those are the line numbers after having made the previous modification!) which should look like this:
							chkDisplayHeader = false
						end if
				       		if Request.Cookies(HideForumCat) <> "Y" then  '##### added as part of Minimize Category Mod #####
							Response.Write	"              <tr>" & vbNewline & _

Add the code in red as shown here:
							chkDisplayHeader = false
						end if
end if '## close the if statement to hide category from guests and members
				       		if Request.Cookies(HideForumCat) <> "Y" then  '##### added as part of Minimize Category Mod #####
							Response.Write	"              <tr>" & vbNewline & _


Now, if you want to hide the category row from moderators too, just change the 3 in the line if (mLev < 3) then '## hide the category row from guests and members to a 4.

I've tested this being logged in as admin and as not being logged in, and it worked. Still, do create a backup of your file before you make any changes in case you want to undo the changes at a later time.


To remove links from the navigation at the top of the forum pages, you should check out the sub sForumNavigation() at the bottom of inc_header.asp
You can edit those codes to remove or modify the navigation. If you need the exact code changes, post about it and someone will help you with that.


To remove the topic sorting on forum.asp you should edit some codes on forum.asp. The easiest way is by deleting all codes starting at line 568, all the way down to line 636.
Line 568 to 570 look like this:
'-------------------------------------------------
' TOPIC SORTING MOD
'-------------------------------------------------

Line 636 looks like this:
'-------------------------------------------------

Again, not the cleanest way of doing it, but it's the fastest and easiest way Please do create a backup of your file before you make this change. It's a rather drastical one and not easilly undone.
Go to Top of Page

canadave
Starting Member

7 Posts

Posted - 04 July 2003 :  11:20:54  Show Profile
Roland,

Thanks for your help!

The forum navigation fixes worked perfectly. However, the category bar still shows up, whether or not I'm logged in as an admin, after applying the changes you suggested. Any ideas? I swear I did it right ;)

Thanks again,
Dave
Go to Top of Page

canadave
Starting Member

7 Posts

Posted - 04 July 2003 :  11:26:25  Show Profile
Whoa...never mind that...I changed the mlev < 3 to mlev < 4, and suddenly it works. Hmmmmmm. Guess the forum was really good at remembering I was a moderator/admin, even after I logged out! ;)

Thanks for your help, I think I can take it from here....

Dave
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 04 July 2003 :  12:19:42  Show Profile
I'm glad it worked for you too. If the category row still showed even when you weren't logged in, it might've been a chaching problem of default.asp either in your browser or on the server. But as you said, it's working now, so never mind that

Post again if you need help with anything else.
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.51 seconds. Powered By: Snitz Forums 2000 Version 3.4.07