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 DEV-Group
 DEV Bug Reports (Closed)
 BUG+FIX: Category expansion code in Default.asp
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 03 April 2004 :  08:15:04  Show Profile  Visit HuwR's Homepage
Small bug in the expand/collapse code for categories.

basically, if you click on a category title to go to the page which displays the forums in that category, if you then try to expand or collapse the category, you will get sent back to the standard default.asp displaying all categories, this is because the expand/collapse code is not passing the cat_id.

To fix it, look for this code (about line 475)


	if Request.Cookies(HideForumCat) = "Y" then
        	Response.Write	"<a href=""" & ScriptName & "?" & HideForumCat & "=N"">" & getCurrentIcon(strIconPlus,"Expand This Category","") & "</a>"
	else
		Response.Write	"<a href=""" & ScriptName & "?" & HideForumCat & "=Y"">" & getCurrentIcon(strIconMinus,"Collapse This Category","") & "</a>"
	end if

You need to change it as follows (changes marked in red)

	if Request.Cookies(HideForumCat) = "Y" then
        	Response.Write	"<a href=""" & ScriptName & "?" & HideForumCat & "=N&CAT_ID=" & Cat_ID & """>" & getCurrentIcon(strIconPlus,"Expand This Category","") & "</a>"
	else
		Response.Write	"<a href=""" & ScriptName & "?" & HideForumCat & "=Y&CAT_ID=" & Cat_ID & """>" & getCurrentIcon(strIconMinus,"Collapse This Category","") & "</a>"
	end if

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 September 2004 :  20:19:09  Show Profile
fixed in v3.4.05
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07