Announcement

Collapse
No announcement yet.

Disable New Thread button in a forum.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable New Thread button in a forum.

    I have a forum in which I have disabled new threads, I'd prefer it if the New thread button didn't display to normal (non mod/admin) users. How and where would I put in a conditional to stop it being displayed?

    Thanks

  • #2
    If you go to ACP > Forums & Moderators > Forum Permissions and edit "registered" group and turn off "can post new threads" it should go....don't forget to log in as a registered user though as if you log in as an admin you will still see the button

    Comment


    • #3
      Thats how I thought it should work However the user is not evaluated to see if they can post or not untill the button is pressed not when the page is loaded. So I think the button has to be disabled as part of a conditional, but where it is and what to use is a beyond me...

      Comment


      • #4
        I have a conditional I use which only shows the new thread button to user id 1 (the admin login) that I have used on a style for one forum. Would that be any use? You would need to create a new style just for the forum you want it on. I am sure there is a better way than that. I have a new style because I change a lot of things.

        Comment


        • #5
          Sorry for the delay in getting back to you ralphuk100 I have been busy on a forum overhall.

          That conditional sounds like what I need especialy after discussion this forum may well have a different look and feel to the rest of the site.

          thanks.

          Comment


          • #6
            God, sorry. I totally forgot I had offered to post this! If you still need it, this is what I use in my FORUMDISPLAY template:

            PHP Code:
             <td class="smallfont"><if condition="$show['adminoptions']"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]"><img src="$stylevar[imgdir_button]/newthread_custom.gif" alt="$vbphrase[post_new_thread]border="0" /></a><else />&nbsp;</if></if></td

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            X