Version: 1.00, by N9ne
Developer Last Online: Jul 2019
Version: 2.3.x
Rating:
Released: 03-15-2003
Last Update: Never
Installs: 19
No support by the author.
Must Read Page Before Posting In A Forum
> A hack by N9ne, Copyright 2003+
> Hack created on March 16th 2003
Description: This hack will allow you to specify,
on a per forum basis, if a must read page comes up,
when someone tries to post a new thread in that
forum. You may use HTML code in the message.
After reading the page, the user is presented with two
options.
One: 'Proceed'; This will move them onto the page where
they can create the thread (ie. type up the post, subject,
etc.).
Two: 'Cancel'; This option will take them back to the forum.
Queries to run: 1
Files to modify:
admin/forum.php
newthread.php
Templates to add:
newthread_mustread
For: vB 2.x.x (created on 2.3.0)
ChangeLog
1.01: 2nd April 2003: BugFix: Post Preview now works.
Demo: Try posting a new thread in the full releases forum here, it brings up a must read page, i've re-created the system.
Credit: To DrkFusion for helping me with a HTTP_POST_VAR problem.
Note: Download the attached file and open in a text editor to view installation instructions!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
// ############################### start new thread ###############################
if ($action=="newthread" and $foruminfo[mustread]=="1") {
$mustreadtext = addslashes($foruminfo[mustreadtext]);
eval("dooutput(\"".gettemplate("newthread_mustread")."\");");
exit;
} elseif (($HTTP_POST_VARS['action']=="postnewthread" and $foruminfo[mustread]=="1") or ($action=="newthread" and $foruminfo[mustread]=="0") or ($HTTP_POST_VARS['action']=="vbform")) {
// ############################### start new thread ###############################
if ($action=="newthread" and $foruminfo[mustread]=="1" and !$previewpost and !$preview) {
$mustreadtext = addslashes($foruminfo[mustreadtext]);
eval("dooutput(\"".gettemplate("newthread_mustread")."\");");
exit;
} elseif (($HTTP_POST_VARS['action']=="postnewthread" and $foruminfo[mustread]=="1") or ($action=="newthread" and $foruminfo[mustread]=="0") or ($previewpost)) {
This seems like a perfect hack for certain forums on my site! Great work.
Quick question though -- will this "must read" page show up for everyone who tries to post a new thread, or just new posters who haven't done this before? If it's the former, I'm just worried that oldtimers might get a little annoyed if, every time they post, they're confronted by the same "must read" page that they've already read!
And I have no idea if that paragraph made any sense.
Kira, you are correct, everytime someone opts to post a new thread in the forum, the must read page comes up. However it shouldn't annoy anyone too much, as it only requires simply pressing the Proceed button to continue