Author |
Topic |
|
weeweeslap
Senior Member
USA
1077 Posts |
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!< |
coaster crazy |
|
Etymon
Advanced Member
United States
2385 Posts |
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.< |
|
|
Etymon
Advanced Member
United States
2385 Posts |
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.< |
Edited by - Etymon on 14 December 2008 01:18:42 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 14 December 2008 : 13:58:58
|
Here's what you do:
In "inc_header.asp", look for the following (appx line 469): Above that, add the following:
Now, save the following as "inc_readtopic.asp" 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 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
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.< |
|
|
weeweeslap
Senior Member
USA
1077 Posts |
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!< |
coaster crazy |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
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
Senior Member
USA
1077 Posts |
|
|
Topic |
|