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)
 Small tweak for Active.asp
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 21 November 2000 :  18:48:30  Show Profile
wow - this is just what I need - so the link is this one http://home.hetnet.nl/~pgoris01/active.zip

and I just replace this with my old active.asp ???? (sorry, I have no ASP experience)

Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 21 November 2000 :  19:00:10  Show Profile
YES !!!! I changed it and it works perfectly - this forum is the best !!!!

thanks !!!!

Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 21 November 2000 :  21:29:12  Show Profile
just one thing:

"one day ago" and "one week ago" gives the same results.

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 21 November 2000 :  23:34:27  Show Profile
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I use my file diff program to migrate each new version to my code, so generally pick them up.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>HuwR, what 'file diff' program do you use? I could have use for such a program.

<center><font color=green>*----*----*----*----*----*----*----*----*----*----*----*
<font size=2>"However, if you suffer as a Christian, do not be ashamed,
but praise God that you bear that name."</font id=size2>
1 Peter 4:16</font id=green></center>
Go to Top of Page

slemieux
Junior Member

USA
234 Posts

Posted - 22 November 2000 :  00:56:17  Show Profile
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
So do we need more votes to see if this new active.asp (without the black bars) should be included in the next release ? <img src=icon_smile_wink.gif border=0 align=middle><hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

HECK NO!!! This is a must have!! Great work <img src=icon_smile.gif border=0 align=middle>

Scott LeMieux
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 22 November 2000 :  01:03:58  Show Profile
Most definetly a must have!!
Didn't think I would need to vote. Thought it was pretty obvious. <img src=icon_smile.gif border=0 align=middle>

<center><font color=green>*----*----*----*----*----*----*----*----*----*----*----*
<font size=2>"However, if you suffer as a Christian, do not be ashamed,
but praise God that you bear that name."</font id=size2>
1 Peter 4:16</font id=green></center>
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 22 November 2000 :  02:48:35  Show Profile  Visit gor's Homepage
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
"one day ago" and "one week ago" gives the same results.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

You're correct, there was an error in the DateAdd() function for "one week ago". I used "w" and that does mean 1 weekday, I should have used "ww".
I changed it in the file here and the one I put up for download.
You can change it in your own file by finding and changing this code:

<pre id=code><font face=courier size=2 id=code>
Select Case ActiveSince
Case "LastVisit"
lastDate = ""
Case "LastHour"
lastDate = DateToStr(DateAdd("h",-1,strForumTimeAdjust))
Case "LastDay"
lastDate = DateToStr(DateAdd("d",-1,strForumTimeAdjust))
Case "LastWeek"
lastDate = DateToStr(DateAdd("w<font color=blue><b>w</b></font id=blue>",-1,strForumTimeAdjust))
Case "LastMonth"
lastDate = DateToStr(DateAdd("m",-1,strForumTimeAdjust))
Case Else
lastDate = ""
End Select
</font id=code></pre id=code>


<b>Pierre Gorissen</b>

<font color=blue><font size=1>Even if you're on the right track,
you'll get run over if you just sit there.</font id=blue></font id=size1>
<font size=1><font color=black>Will Rogers</font id=size1></font id=black>
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 22 November 2000 :  05:28:53  Show Profile
thanks - it works perfectly now:

http://www.alphaville.dk/forum/active.asp

Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 03 December 2000 :  17:03:50  Show Profile  Visit Jeepaholic's Homepage
***in' mod. Great job, as always!

Al Bsharah
Jeepaholics Anonymous
Go to Top of Page

Kenno
Average Member

Cambodia
846 Posts

Posted - 03 December 2000 :  18:59:08  Show Profile  Visit Kenno's Homepage
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
So do we need more votes to see if this new active.asp (without the black bars) should be included in the next release ? <img src=icon_smile_wink.gif border=0 align=middle>

<b>Pierre Gorissen</b>

<font color=blue><font size=1>Even if you're on the right track,
you'll get run over if you just sit there.</font id=blue></font id=size1>
<font size=1><font color=black>Will Rogers</font id=size1></font id=black>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Pleae count my voice! I definitely vote for this feature! <img src=icon_smile.gif border=0 align=middle>

<font color=red>÷</font id=red><font color=blue>§</font id=blue><font color=red>÷</font id=red><font color=green> <b>Kenno</b> </font id=green><font color=red>÷</font id=red><font color=blue>§</font id=blue><font color=red>÷</font id=red>
<font size=1>http://forum.soputtra.net</font id=size1>
Go to Top of Page

work mule
Senior Member

USA
1358 Posts

Posted - 03 December 2000 :  21:28:07  Show Profile
You have my vote! But please, I beg you....
<b>No Recounts!!</b> <img src=icon_smile_wink.gif border=0 align=middle>

Seriously though, it's a very nice feature!

The only concern I would have is the feature for showing topics posted since the last month. A board that has a good deal of traffic may take a little performance hit everytime that request is made. And if the page is set to reload every minute, it could....well, I'll let you figure it out.

The active2.asp page on snitz, set for showing all topics since last month, took well over a minute to load.
(disclaimer: unscientific observation)

"They can make me work long, but they can't make me work hard."
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20587 Posts

Posted - 03 December 2000 :  21:30:15  Show Profile  Visit HuwR's Homepage
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Seriously though, it's a very nice feature!

The only concern I would have is the feature for showing topics posted since the last month. A board that has a good deal of traffic may take a little performance hit everytime that request is made. And if the page is set to reload every minute, it could....well, I'll let you figure it out.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

A very good point, even a week could affect some sites

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

wedont
Junior Member

Canada
344 Posts

Posted - 03 December 2000 :  22:53:19  Show Profile
http://home.hetnet.nl/~pgoris01/active.zip
Great Mod,
Just to make sure before using it, is this Mod compatible with version 3.1 sr2?

wedont

ps: to address the No Recount problem posted above, it could be better to restrict the 'response' to a max count of ex. 50 posts, and 'marking'them as 'read' could allowed to retreive the next 50 unread.



Edited by - wedont on 03 December 2000 22:59:14

Edited by - wedont on 03 December 2000 23:02:16
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 03 December 2000 :  22:56:08  Show Profile
Yes

<center><font color=green>*----*----*----*----*----*----*----*----*
<font size=2>"If you're headed in the wrong direction,
God allows U-turns."</font id=size2>
*----*----*----*----*----*----*----*----*</font id=green></center>
Go to Top of Page

work mule
Senior Member

USA
1358 Posts

Posted - 03 December 2000 :  23:00:04  Show Profile
Ahh, but you know what would be nice? It's either an hour, day, week, or month. How about last 2 hours, last 6 hours, etc.? So for people like me, who may get sidetracked on a couple of different subjects, when I come back a couple of hours later, I don't have to select the last day option. I may have been gone for more than an hour but don't need to see an entire day at this point.

Just thinking maybe one or two additional options would do the trick.

The more I use active2.asp, the more I love it! (I even bookmarked it!)

<b>"What do you mean you don't pay by the line?"

"They can make me work long, but they can't make me work hard."</b>
Go to Top of Page
Page: of 3 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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07