Hi, how do I change index.inc so that the "Add Thread" box only shows on sub forum pages rather than directly on the index page? I don't want them to be able to post to webroot...
Any help?
Hi, how do I change index.inc so that the "Add Thread" box only shows on sub forum pages rather than directly on the index page? I don't want them to be able to post to webroot...
Any help?
It shouldn't be that hard. You can check for `PATH_DIR` to be '/', and just not display the whole <section id="new"> thing in index.inc.php. :)
Yes, in the theme page just add an if block around the form.
I'm working on an access control feature for the next version, which will allow you to lock the root forum so that nobody can post to it.
Thanks, done it. I just didn't want masses of .rss mixed in with other web root files :-). This way I can have organised sub forums. Slight OCD ha. Cheers guys!
Re-downloaded Kroc, all pages are static html now. Can I no longer achieve this?
Yes! Just use the access control added in v8, see the readme for details, but basically this should do it:
Create a locked.txt file on the root of the forum and in it write "posts" (sans-quotes). This will lock the root-forum so that only moderators or members can post there, everybody else will see the sub-forums and no input form.
Hope that helps.
Thanks. Helped!
Your friendly neighbourhood moderators: Kroc, Impressed, theraje, Martijn