Any way to Disable "New Topics" (General)

by Troy @, Monday, August 08, 2011, 13:42 (4664 days ago)

Is there a way to disable "New Topics" from all users except Admins?

Avatar

Any way to Disable "New Topics"

by Auge ⌂, Monday, August 08, 2011, 22:44 (4663 days ago) @ Troy

Hello

Is there a way to disable "New Topics" from all users except Admins?

If you mean that only an admin can start a new thread but members (or anyone else) can reply to it: no. This is a classical scenario for a weblog but not for a forum.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

Any way to Disable "New Topics"

by Troy @, Wednesday, August 10, 2011, 14:20 (4662 days ago) @ Auge

Based on that "logic".....then the option for non registered users to be denied the ability to post new messages (or allowed to post) should not be available either. :-)
FYI, I accomplished what I was looking to accomplish.

Avatar

Any way to Disable "New Topics"

by Auge ⌂, Sunday, August 14, 2011, 13:51 (4658 days ago) @ Troy

Hello

Based on that "logic".....then the option for non registered users to be denied the ability to post new messages (or allowed to post) should not be available either. :-)
FYI, I accomplished what I was looking to accomplish.

No, your logic fails. There is a difference between forbidding everybody except one person to open a new thread and forbid this for a group of persons (i.e. unregistered visitors). Techically it is possible and you did, but in this case you can use a blog script and allow to comment your entry. This sort of software is made for that.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

Any way to Disable "New Topics"

by arye2, Tuesday, August 09, 2011, 11:05 (4663 days ago) @ Troy

open themes/default/subtemplates/posting.inc.tpl

Find:

{config_load file=$language_file section="posting"}
{config_load file=$language_file section="thread_entry"}


Add under it:

{if $admin || $id!=0}


Find at the end of the file:

</div>
</form>
{/if}


Add under it:

{/if}

Any way to Disable "New Topics"

by Troy @, Wednesday, August 10, 2011, 14:17 (4662 days ago) @ arye2

Thank you very much arye2 for the detailed response. I had already accomplished the task in a slightly different way. I am a big fan of Smarty and love this project.
I ended up adding another entry to mlf2_settings table with some extra code similar to what you provided, using the new mlf2_settings entry as to make it easy to switch this feature on/off.

RSS Feed of thread