just installed the latest package.

under the default forum, i added 3 sub forums.

forums
--sub1
--sub2
--sub3
i want people to only post to the subforums, not the root one, so i checked the lock box on the root forum, yet "new thread" link still show up and i am able to post to the root forum.

Comments

nickistre’s picture

Are you testing this from a regular user, or are you logged in as an administrator? As far as I know, administrators can post in locked areas.

jackxwu’s picture

Title: new thread link show up even if forum is locked » request to remove the "Posting not allowed"
Priority: Normal » Minor

i see. when i log on as normal user, i do see "Posting not allowed" on the root forum.

please change this bug report to a feature request.

i would like to be able to "not show" "Posting not allowed" when user is not allowed to posting. i think it is more user friendly that way.

jackxwu’s picture

Category: bug » feature
nickistre’s picture

In the meantime, you can hack the code to get this desired result. Open up uieforum.module and search for the phrase "Posting not allowed", and try commenting out the line that has that phrase (Put '//' at the beginning of the line). On my install, it's line 607, and has the following code around there:

    else if ($user->uid || $CurrentForum->Locked)
    {
      $NEW_THREAD_TEXT = t('Posting not allowed');
      $NEW_REPLY_TEXT = '';
    }

I've modified it like so to remove the text:

    else if ($user->uid || $CurrentForum->Locked)
    {
      //$NEW_THREAD_TEXT = t('Posting not allowed');
      $NEW_REPLY_TEXT = '';
    }

It does seem to work fine without it. If you have problems, revert it by removing the '//'.

daniel.hunt’s picture

Assigned: Unassigned » daniel.hunt

Thanks Nick, that's a perfect solution for now. Ideally this should be configurable in the control panel for the module though :)

Daniel

denney’s picture

This is where containers come in handy.

I'd like to remove that "Posting not allowed" text but then that removes it for ALL locked forums. Even ones where I post into but I don't want normal people to.

daniel.hunt’s picture

Status: Active » Closed (fixed)

Nick: I've added that configuration option to the system settings - admins can now configure the 2 messages ("posting not allowed", or "login to reply")