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)
 mini MOD mark new topic checked
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

gahfe
Starting Member

Argentina
12 Posts

Posted - 26 October 2003 :  13:21:00  Show Profile
hi, i make this MOD because never remember the new topic checked for my and in a forum with a lot of topic is very important this function

here is the zip file
http://www.ilmortoquiparla.com.ar/snitz/markread.zip

and if the link dont work here is the mod:


in inc_iconfiles.asp

search this

Const strIconYahoo = "icon_yahoo.gif|16|15"
and add this (you need the .gif included in zip file)

'##markread
Const strIconFolderNewOK = "icon_folder_new_ok.gif|15|15"
Const strIconFolderNewHotOK = "icon_folder_new_hot_ok.gif|15|17"
Const strIconFolderNewStickyOK = "icon_folder_new_sticky_ok.gif|15|15"
'##markread end


in inc_func_chknew.asp

search something like that (the flang(*) is for international version, in the standar version is replaced for a text string)

Function ChkIsNew2(dt)
	if Topic_Replies = "" then Topic_Replies = rs("T_REPLIES")
	if dt > Session(strCookieURL & "last_here_date") then
		if Topic_Replies >= intHotTopicNum and lcase(strHotTopic) = "1" Then
			ChkIsNew2 = getCurrentIcon(strIconFolderNewHot,fLang(strLangInc_Func_Chknew00030),"hspace=""0""")
		else
			ChkIsNew2 = getCurrentIcon(strIconFolderNew,fLang(strLangInc_Func_Chknew00040),"hspace=""0""")
and change to this

Function ChkIsNew2(dt)
	if Topic_Replies = "" then Topic_Replies = rs("T_REPLIES")
	if dt > Session(strCookieURL & "last_here_date") then
		if Topic_Replies >= intHotTopicNum and lcase(strHotTopic) = "1" Then
			'##markread
       			if Session(strCookieURL & "topic" & Topic_ID) > dt then 
			ChkIsNew2 = getCurrentIcon(strIconFolderNewHotOK,fLang(strLangInc_Func_Chknew00030) & " checked","hspace=""0""")
			else
			'##markread end
			ChkIsNew2 = getCurrentIcon(strIconFolderNewHot,fLang(strLangInc_Func_Chknew00030),"hspace=""0""")
			'##markread
	       		end if
			'##markread end
		else
			'##markread
       			if Session(strCookieURL & "topic" & Topic_ID) > dt then 
			ChkIsNew2 = getCurrentIcon(strIconFolderNewOK,fLang(strLangInc_Func_Chknew00040) & " checked","hspace=""0""")
			else
			'##markread end
			ChkIsNew2 = getCurrentIcon(strIconFolderNew,fLang(strLangInc_Func_Chknew00040),"hspace=""0""")
			'##markread
	       		end if 
			'##markread end


in default.asp

search something like that (the flang(*) is for international version, in the standar version is replaced for a text string)

sub ChkIsNew(dt)
	Response.Write	"<a href=""forum.asp?FORUM_ID=" & ForumID & """>"
	if CatStatus <> 0 and ForumStatus <> 0 then
		if dt > Session(strCookieURL & "last_here_date") and (ForumCount > 0 or ForumTopics > 0) then
			Response.Write	getCurrentIcon(strIconFolderNew,fLang(strLangDefault00170),"hspace=""0""") & "</a>"
and change to this

sub ChkIsNew(dt)
	Response.Write	"<a href=""forum.asp?FORUM_ID=" & ForumID & """>"
	if CatStatus <> 0 and ForumStatus <> 0 then
		if dt > Session(strCookieURL & "last_here_date") and (ForumCount > 0 or ForumTopics > 0) then
			'##markread
			if Session(strCookieURL & "foro" & ForumID) > dt then 
			Response.Write	getCurrentIcon(strIconFolderNewOK,fLang(strLangDefault00170) & " checked","hspace=""0""") & "</a>"
			else
			'##markread end
			Response.Write	getCurrentIcon(strIconFolderNew,fLang(strLangDefault00170),"hspace=""0""") & "</a>"
			'##markread
		        end if
			'##markread end


in forum.asp

search this

<!--#INCLUDE FILE="inc_moderation.asp" -->
<%
and add this

'##markread 
Session(strCookieURL & "foro" & Forum_ID) = (DateToStr(strForumTimeAdjust))
'##markread end


search something like that (the flang(*) is for international version, in the standar version is replaced for a text string)

			if Topic_Sticky and strStickyTopic = "1" then 
				if Topic_LastPost > Session(strCookieURL & "last_here_date") then
					Response.Write	getCurrentIcon(strIconFolderNewSticky,fLang(strLangForum00190),"hspace=""0""")
and change to this

			if Topic_Sticky and strStickyTopic = "1" then 
				if Topic_LastPost > Session(strCookieURL & "last_here_date") then
					'##markread
					if Session(strCookieURL & "topic" & Topic_ID) > dt then 
					Response.Write	getCurrentIcon(strIconFolderNewStickyOK,fLang(strLangForum00190) & " checked","hspace=""0""")
					else
					'##markread end
					Response.Write	getCurrentIcon(strIconFolderNewSticky,fLang(strLangForum00190),"hspace=""0""")
					'##markread
					end if
					'##markread end


in topic.asp

search this

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

<%
and add this

'##markread 
Session(strCookieURL & "topic" & Topic_ID) = (DateToStr(strForumTimeAdjust))
'##markread end


if dont work, let me now in this topic

saludos


il morto qui parla
test forum il morto parla (demo|demo)
snitz mods (not available)

Edited by - gahfe on 26 October 2003 15:03:41

redbrad0
Advanced Member

USA
3725 Posts

Posted - 26 October 2003 :  13:39:24  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Can you please explain a little more on what this does and maybe post a demo?

Brad
Oklahoma City Online Entertainment Guide
Oklahoma Event Tickets
Go to Top of Page

gahfe
Starting Member

Argentina
12 Posts

Posted - 26 October 2003 :  15:12:40  Show Profile
my english is very poor (hablo espańol) basically this MOD mark when a new post is checked with this icon thus one can know that it already saw it

being like this
No new posts since the last visit.
Contains new posts since last visit
Contains new posts since last visit already checked


il morto qui parla
test forum il morto parla (demo|demo)
snitz mods (not available)

Edited by - gahfe on 26 October 2003 15:25:31
Go to Top of Page

Baroudeur
Starting Member

25 Posts

Posted - 27 October 2003 :  08:46:14  Show Profile
Tiny problem in topic.asp i have not

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

This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. Beware of this, before you register at his forums!
Go to Top of Page

gahfe
Starting Member

Argentina
12 Posts

Posted - 27 October 2003 :  09:01:02  Show Profile
put this code after all <!--#INCLUDE about line 70

can be

%>
<!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#INCLUDE FILE="inc_header.asp" -->
<!--#INCLUDE FILE="inc_func_secure.asp" -->
<!--#INCLUDE FILE="inc_func_member.asp" -->
<!--#INCLUDE FILE="inc_moderation.asp" -->

<%
or something like that


il morto qui parla
test forum il morto parla (demo|demo)
snitz mods (not available)

Edited by - gahfe on 27 October 2003 09:02:07
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 27 October 2003 :  13:48:35  Show Profile  Visit Ryan's Homepage
So what you are saying is that if someone makes a new topic and you view it then it will mark with the checked new topic that way on your next visit you will see that that topic has new replies but you already read it?

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

gahfe
Starting Member

Argentina
12 Posts

Posted - 27 October 2003 :  16:17:01  Show Profile
jeje, sorry, for my english, I cannot explain it clearly, although I am going it to try:
it only works in the session, and mark with the checked new topic
i make this mod for the long session users, that way after one hour with the page open, the user will see that topic already read it, if that topic has new replys the new checked folder change to the normal new folder.
my next mod for this type of user, me, is a modification to see the new post after the last session/logout replacing the actual new post showed after the last login


il morto qui parla
test forum il morto parla (demo|demo)
snitz mods (not available)
Go to Top of Page

cladon
Junior Member

Belgium
110 Posts

Posted - 11 December 2003 :  14:50:02  Show Profile
Looks like a nice MOD. Is there any progress in the next version. When you modify this mod that it works like the moderation option on a Forum a user can mark a topic as "I have read this" ...
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 11 December 2003 :  14:54:34  Show Profile
Sounds like Active Topics ?
Go to Top of Page

cladon
Junior Member

Belgium
110 Posts

Posted - 11 December 2003 :  16:17:28  Show Profile
Yes that is correct - but what i mean is when you have read the post and you come again the post is not anymore active because you have read it already. Suppose you want to chech something and you come back to the forum the post is not active anymore for the system and you have to search again to the post (when this is after after a few days this can be a problem ...)

It would be intresting a member can mark a topic as been readed. When it is not marked the post has to stay active only for that member.
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.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07