Author |
Topic |
|
rabufo
Junior Member
Italy
328 Posts |
Posted - 17 April 2006 : 13:02:08
|
Hello,
how can I setup the Snitz to make all categories closed (hide) by default in the main page?
Thank you very much |
|
leatherlips
Senior Member
USA
1838 Posts |
|
rabufo
Junior Member
Italy
328 Posts |
Posted - 18 April 2006 : 03:57:54
|
Sorry, trying to be more clear. This is the Snitz main page, with categories showing forums contained in themselves
I'd make the main page appear by default in the way below, with categories "closed", not showing forums. Users must click on category title to open it.
|
Edited by - rabufo on 18 April 2006 03:58:46 |
|
|
leatherlips
Senior Member
USA
1838 Posts |
Posted - 18 April 2006 : 11:57:50
|
Try this, (make a backup copy first):
In default.asp:
Find:
Sub DoHideCategory(intCatId) HideForumCat = strUniqueID & "HideCat" & intCatId if Request.QueryString(HideForumCat) = "Y" then Response.Cookies(HideForumCat) = "Y" Response.Cookies(HideForumCat).Expires = dateAdd("d", 30, strForumTimeAdjust) else if Request.QueryString(HideForumCat) = "N" then Response.Cookies(HideForumCat) = "N" Response.Cookies(HideForumCat).Expires = dateadd("d", -2, strForumTimeAdjust) end if end if end sub
Replace with:
Sub DoHideCategory(intCatId) HideForumCat = strUniqueID & "HideCat" & intCatId if Request.QueryString(HideForumCat) = "N" then Response.Cookies(HideForumCat) = "N" else Response.Cookies(HideForumCat) = "Y" end if Response.Cookies(HideForumCat).Expires = dateAdd("d", 30, strForumTimeAdjust) end sub
|
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
|
|
rabufo
Junior Member
Italy
328 Posts |
Posted - 19 April 2006 : 03:02:26
|
It works fine, leastherlips, thank you very much! |
|
|
|
Topic |
|