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/O Code)
 Force user to read post ... looking for such mod.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

weeweeslap
Senior Member

USA
1077 Posts

Posted - 14 December 2008 :  00:16:19  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message  Reply with Quote
I am looking for a mod where I can force users to read / load up a topic before they can do anything else. I searched this forum and did not find anything so was wondering if someone coded up something before and would like to share such mod.
Thanks!<

coaster crazy

Etymon
Advanced Member

United States
2385 Posts

Posted - 14 December 2008 :  00:32:24  Show Profile  Visit Etymon's Homepage  Reply with Quote
I would think that you could redirect them to that topic upon logging in. You may have to hard-code it for now, but it is possible.<
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 14 December 2008 :  01:15:34  Show Profile  Visit Etymon's Homepage  Reply with Quote
I haven't tested this, but I am pretty sure that in inc_header.asp, you can replace the action below with the url location you want them to land on. It will need to be more elaborate than that because you need to track who has seen it and then not have them land there the next time. You'll have to code that part in of course.

Response.Write " <form action=""" & Request.ServerVariables("URL") & """ method=""post"" id=""form1"" name=""form1"">

Below the code above is this:

" <input type=""hidden"" name=""Method_Type"" value=""login"">" & vbNewLine & _

If your members have bookmarked login.asp, you should add your code there as well.<

Edited by - Etymon on 14 December 2008 01:18:42
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  13:58:58  Show Profile  Reply with Quote
Here's what you do:

In "inc_header.asp", look for the following (appx line 469):
	Response.Write	"          <a href=""" & strHomeURL & """" & dWStatus("Homepage") & " tabindex=""-1""><acronym title=""Homepage"">Home</acronym></a>" & vbNewline & _

Above that, add the following:
	%>
	<!--#INCLUDE FILE="inc_readtopic.asp"-->
	<%


Now, save the following as "inc_readtopic.asp"
<%
'###############################################################################
'## Snitz Forums 2000 v3.4.06
'###############################################################################
'## Copyright (C) 2000-06 Michael Anderson, Pierre Gorissen,
'## Huw Reddick and Richard Kinser
'##
'## This program is free software; you can redistribute it and/or
'## modify it under the terms of the GNU General Public License
'## as published by the Free Software Foundation; either version 2
'## of the License, or (at your option) any later version.
'##
'## All copyright notices regarding Snitz Forums 2000
'## must remain intact in the scripts and in the outputted HTML
'## The "powered by" text/logo with a link back to
'## http://forum.snitz.com in the footer of the pages MUST	
'## remain visible when the pages are viewed on the internet or intranet.
'##
'## This program is distributed in the hope that it will be useful,
'## but WITHOUT ANY WARRANTY; without even the implied warranty of
'## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'## GNU General Public License for more details.
'##
'## You should have received a copy of the GNU General Public License
'## along with this program; if not, write to the Free Software
'## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA02111-1307, USA.
'##
'## Support can be obtained from our support forums at:
'## http://forum.snitz.com
'##
'## Correspondence and Marketing Questions can be sent to:
'## manderson@snitz.com
'##
'###############################################################################
TPID="378"
if strSetCookietoForum = "1" then
	if Request.Cookies(strCookieURL & "viewedtopic") <> "" & TPID & "" then
		Response.Cookies(strCookieURL & "viewedtopic") = "" & TPID & ""
		Response.Redirect	("topic.asp?TOPIC_ID=" & TPID & "")
	end if
end if
%>

Change the number in red to the number of the topic you want to force users to view.

That's a fast way of getting it done and will only force users to view the topic once instead of constantly redirecting them with every connection to the board.

If you want an admin panel link to enable you to set a topic number without further software modification, I'll have that ready later today.<

Edited by - Carefree on 14 December 2008 14:02:05
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  17:49:48  Show Profile  Reply with Quote
OK, I made this into a packaged mod. The Required Reading MOD v01.00 provides administrators with a simple method to force members to view a topic before continuing to use the board. It also sets a value in the members' table which can be confirmed by administrators if, for example, rules are broken subsequent to a member viewing the post about a rules change.

Get it here.<
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 14 December 2008 :  18:33:14  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message  Reply with Quote
Many thanks! I appreciate the code guys. I am going to install this in the nextb few hours!<

coaster crazy
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 14 December 2008 :  18:34:25  Show Profile  Reply with Quote
I posted this in the (W Code) forum since it's complete. This topic can be closed, I guess.<
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 14 December 2008 :  19:13:26  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message  Reply with Quote
Hey Carefree, I got an error and posted in the mod implemention forum: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=67962<

coaster crazy
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07