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 MOD-Group
 MOD Add-On Forum (W/Code)
 Minimize Categories - Feature Modification
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 5

redfive
Starting Member

12 Posts

Posted - 23 June 2001 :  20:48:34  Show Profile
No, to clarify after installing your mod, i go to change the admin options of forum settings, and then my forum barfs. i will try again with your new code now. going to download in 2 mins...

quote:

quote:

would you kindly post the sections of your default.asp for step 5, both this and the end if. again, it works, but it doens't look right. big black box.

new thing:
after installing your mod, if i go to change config, the whole script now pukes.

thanks!





I have not found any errors if i change the config.asp. Please explain.

GauravBhabu





Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 June 2001 :  10:43:03  Show Profile
Mod_CollapseCats

I have made slight changes in implementing the mode:
Please note as below:

changes in inc_Collapse.asp

Remove these statements from inc_collapse.asp
This is because the conn object is created in inc_top.
-----------------------------------

set my_Conn = Server.CreateObject("ADODB.Connection")
my_Conn.Open strConnString

----------------------------------
After changes it will look similar to this
---------------------------------

<%
strSql = "Select Max(" & strTablePrefix & "CATEGORY.CAT_ID) as Max_ID "
strSql = strSql & " FROM " & strTablePrefix & "CATEGORY"
set rs0 = my_Conn.Execute (strSql)
MaxID = rs0("MAX_ID")
rs0.close
set rs0 = nothing
strName = Request.QueryString
If MaxID > 0 then
i = 1
do until i > cint(MaxID)
HideForumCat = strUniqueID & "HideCat" & i
If Request.QueryString(HideForumCat) = "Y" or Request.QueryString("HideForums") = "Y" then
Response.Cookies(HideForumCat) = "Y"
Response.Cookies(HideForumCat).Expires = dateAdd("d", 30, strForumTimeAdjust)
Else
If Request.QueryString(HideForumCat) = "N" or Request.QueryString("HideForums") = "N" then
Response.Cookies(HideForumCat) = "N"
Response.Cookies(HideForumCat).Expires = dateAdd("d", 30, strForumTimeAdjust)
End If
End If
i = i + 1
loop
end if

scriptname = request.servervariables("script_name")
%>

---------------------------------------

Changes in default.asp

Move the following statement (About Line 41 in your default.asp)
------------------------------

<!--#INCLUDE FILE="inc_collapse.asp" -->

---------------------------------
below this statement (About Line 42 in your default.asp)
--------------------------------

<!--#INCLUDE FILE="inc_top.asp" -->

-------------------------------
After change it will look like this
---------------------------------------

%>
<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_functions.asp" -->
<!--#INCLUDE FILE="inc_top.asp" -->
<!--#INCLUDE FILE="inc_collapse.asp" -->
<%

--------------------------------------


GauravBhabu

Download Mod_CollapseCats at GauravBhabu Forums.

Thanks

GauravBhabu


There is only one miracle...That is LIFE!
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 June 2001 :  20:07:32  Show Profile  Visit dayve's Homepage
newest topic still does not show

Dayve
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 June 2001 :  20:12:45  Show Profile  Visit dayve's Homepage
ahh, you go by CATEGORY.CAT_ID, why? that wouldn't show the last topic posted in ??

Dayve
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 June 2001 :  20:24:31  Show Profile  Visit dayve's Homepage
here's the problem

<b><% =ChkDate(strLastPost) %></b><br>
<% =ChkTime(strLastPost) %><%= strLastUser%></font></td>

should be:

<b><% =ChkDate(strLastPostDate) %></b><br>
<% =ChkTime(strLastPostDate) %><%= strLastUser%></font></td>

works for me now...


ack! but it shows the wrong Last Poster and wrong Time ..

Dayve

Edited by - dayve on 24 June 2001 20:28:41

Edited by - dayve on 24 June 2001 20:30:29
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 June 2001 :  20:36:18  Show Profile
quote:

here's the problem

<b><% =ChkDate(strLastPost) %></b><br>
<% =ChkTime(strLastPost) %><%= strLastUser%></font></td>

should be:

<b><% =ChkDate(strLastPostDate) %></b><br>
<% =ChkTime(strLastPostDate) %><%= strLastUser%></font></td>

works for me now...


ack! but it shows the wrong Last Poster and wrong Time ..

Dayve

Edited by - dayve on 24 June 2001 20:28:41

Edited by - dayve on 24 June 2001 20:30:29




Where did you get the variable strLastPostDate. I have used the variable strLastPost and it works correctly. Compare the results with the last post details shown in statstics section.

GauravBhabu

There is only one miracle...That is LIFE!
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 June 2001 :  20:41:19  Show Profile
quote:

here's the problem

<b><% =ChkDate(strLastPost) %></b><br>
<% =ChkTime(strLastPost) %><%= strLastUser%></font></td>

should be:

<b><% =ChkDate(strLastPostDate) %></b><br>
<% =ChkTime(strLastPostDate) %><%= strLastUser%></font></td>

works for me now...


ack! but it shows the wrong Last Poster and wrong Time ..

Dayve

Edited by - dayve on 24 June 2001 20:28:41

Edited by - dayve on 24 June 2001 20:30:29



I will not use the variable strLastPostDate because it is used to display the details in statistics section. And the Last Post date shows correctly. There is no such error, unless you can show it to me.


Check here: GauravBhabu Forums.

GauravBhabu

There is only one miracle...That is LIFE!

Edited by - GauravBhabu on 24 June 2001 20:50:58

Edited by - GauravBhabu on 30 June 2001 09:16:19
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 June 2001 :  21:07:32  Show Profile  Visit dayve's Homepage
http://www.nineinchnailz.com/forum

look at the ninternet section. when collapsed the wrong topic shows...

I edited my other posts because I realized later my goof up. still can't get it to work right though...

Dayve
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 June 2001 :  21:11:09  Show Profile  Visit dayve's Homepage
UPDATE! only one section does not work??? how can that be?

collapse the ninternet section and you will see that May 10th shows when June 24th should show...?

Dayve
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 June 2001 :  21:17:12  Show Profile
quote:

http://www.nineinchnailz.com/forum

look at the ninternet section. when collapsed the wrong topic shows...

I edited my other posts because I realized later my goof up. still can't get it to work right though...

Dayve



Here is but you have in your statistics section:
---------------

108 members have made 4436 posts in 20 forums, with the last post on Jun 24 2001 7:38:24 PM by: Lightning.
---------------
The last post I see when all cats are expanded is this:

-----------------
nine inch nails
post your thoughts on anything and everything relating to nine inch nails 167 1922 Jun 24 2001
7:17:23 PM
by: imnothing666 burning soul, nineinchnailz
-------------------
This is the post with the latest time after the cats are collapsed

------------
general discussions... [4]
371 3552 Jun 24 2001
7:17:23 PM
by: imnothing666
------------------------

The problem seems to be different.

GauravBhabu

There is only one miracle...That is LIFE!
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 June 2001 :  22:11:05  Show Profile  Visit dayve's Homepage
you lost me there. just to clarify, all the other categories are working with exception of:

ninternet

if you collapse that one you will clearly see that the wrong date shows, May 10th should not show. June 24th should... wouldn't you say?

sorry to be a bother but this anomoly does not appear to make any sense to me.

Dayve
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 25 June 2001 :  04:33:16  Show Profile
quote:

you lost me there. just to clarify, all the other categories are working with exception of:

ninternet

if you collapse that one you will clearly see that the wrong date shows, May 10th should not show. June 24th should... wouldn't you say?

sorry to be a bother but this anomoly does not appear to make any sense to me.

Dayve



I looked at your website very carefully and observed that the date settings on your web are US(Med) and Time settings are 12Hr. There was a bug which was causing the incorrect results. This has been fixed and the new version has been checked under different date and time settings. The tests performed are listed at GauravBhabu Forums in the Testing Area. New version Mod_Collapse_Cats_2.0 can be downloaded at the site. You must be logged on to see the link.

Thanks

GauravBhabu

There is only one miracle...That is LIFE!

Edited by - GauravBhabu on 30 June 2001 09:17:07

Edited by - GauravBhabu on 11 July 2001 06:16:38
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 30 June 2001 :  00:07:35  Show Profile  Visit dayve's Homepage
download link is not working

Dayve
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 30 June 2001 :  04:25:03  Show Profile
quote:

download link is not working

Dayve



I will have it restored this weekend

gauravbhabu

There is only one miracle...That is LIFE!

Edited by - gauravbhabu on 30 June 2001 04:25:45
Go to Top of Page

stuF
Average Member

United Kingdom
561 Posts

Posted - 30 June 2001 :  05:28:29  Show Profile  Visit stuF's Homepage
youre site is 404ing...

Go to Top of Page
Page: of 5 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07