Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Force user to read post ... looking for such mod.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
weeweeslap Posted - 14 December 2008 : 00:16:19
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!<
7   L A T E S T    R E P L I E S    (Newest First)
weeweeslap Posted - 14 December 2008 : 19:13:26
Hey Carefree, I got an error and posted in the mod implemention forum: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=67962<
Carefree Posted - 14 December 2008 : 18:34:25
I posted this in the (W Code) forum since it's complete. This topic can be closed, I guess.<
weeweeslap Posted - 14 December 2008 : 18:33:14
Many thanks! I appreciate the code guys. I am going to install this in the nextb few hours!<
Carefree Posted - 14 December 2008 : 17:49:48
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.<
Carefree Posted - 14 December 2008 : 13:58:58
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.<
Etymon Posted - 14 December 2008 : 01:15:34
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.<
Etymon Posted - 14 December 2008 : 00:32:24
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.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07