Camen Design Forum

Only show "Add Thread" box on sub forum page?

append delete ChrisG

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?

Reply RSS

Replies

append delete #1. Richard

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. :)

append delete #2. Kroc

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.

append delete #3. ChrisG

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!

append delete #4. Chria G

Re-downloaded Kroc, all pages are static html now. Can I no longer achieve this?

append delete #5. Kroc

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.

append delete #6. ChrisG

Thanks. Helped!

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, theraje, Martijn