Force user to read post ... looking for such mod. - Posted (1232 Views)
Senior Member
weeweeslap
Posts: 1077
1077
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!<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Etymon
Posts: 2396
2396
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.<
Posted
Advanced Member
Etymon
Posts: 2396
2396
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.<
Posted
Advanced Member
Carefree
Posts: 4224
4224
Here's what you do:

In "inc_header.asp", look for the following (appx line 469):
Code:
	Response.Write	"          <a href=""" & strHomeURL & """" & dWStatus("Homepage") & " tabindex=""-1""><acronym title=""Homepage"">Home</acronym></a>" & vbNewline & _
Above that, add the following:
Code:
	%>
<!--#INCLUDE FILE="inc_readtopic.asp"-->
<%

Now, save the following as "inc_readtopic.asp"
Code:
<%
'###############################################################################
'## 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.<
Posted
Advanced Member
Carefree
Posts: 4224
4224
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.<
Posted
Senior Member
weeweeslap
Posts: 1077
1077
Many thanks! I appreciate the code guys. I am going to install this in the nextb few hours!<
Posted
Advanced Member
Carefree
Posts: 4224
4224
I posted this in the (W Code) forum since it's complete. This topic can be closed, I guess.<
Posted
Senior Member
weeweeslap
Posts: 1077
1077
Hey Carefree, I got an error and posted in the mod implemention forum: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=67962<
 
You Must enter a message