View Full Version : [SOLVED]How to hide New Thread button in forum closed via acp
blind-eddie
12-12-2012, 04:49 PM
With vbulletin, when you close a forum, no one can create a thread or post in that forum.
I have a form that automatically creates new thread in a closed forum, thats fine & what I want.
What I am after is allowing members to be able to quick reply in a closed forum but, not be able to create new threads.
How can this be achieved?
Am I over looking a setting I may have seen 100's of time that allows this?
Thank you
Lynne
12-12-2012, 05:07 PM
It is a usergroup setting. You may set Can Post Threads to No, but set Can Reply to Own/Other Threads to Yes.
blind-eddie
12-12-2012, 05:35 PM
Thank you for replying Lynne.
Maybe I didn;t word that properly, sorry.
When I said forum, I meant 1 discussion forum within the forums.
If I set Can Post Threads to No that would be global and that usergroup would not be allowed to create threads anywhere.
There is no forum specific setting or settings in usergroup permissions that allow that.
Am I still over looking something?
mokujin
12-12-2012, 06:10 PM
Then you will have to go to Forum Permissions, after each Forum there are usergroups to edit permissions.
blind-eddie
12-12-2012, 11:53 PM
Thank you for your reply
I know where & how to set permissions. I have done that a million times over the last 6 years. :rolleyes:
But, in vbulletin, there is no settings anywhere that I can find that will allow members to reply to threads in a forum that is closed to new threads.
I want members to be able to comment on threads that are in a closed thread but not be able to create new threads...
Is there an option that I must be overlooking that will allow this?
Thank you
Pixelduck
12-13-2012, 02:08 AM
"Can Reply to Others' Threads" click yes x.x. I texted it on mine and it works fine
Lynne
12-13-2012, 02:22 AM
You need to go to Forum Permissions > find the forum > edit the Usergroup settings just for that forum.
blind-eddie
12-13-2012, 03:44 AM
I know how to do that, but even if "Can Post to others Threads" is set to yes, that usergroup still cannot post a reply in that closed forum....I am closing forum via admincp, not via thread tools.
I don't want to close automated threads manually, mis-understanding
Try it... Close a forum via acp, dbl check your settings which you already know are marked as yes.... go to the forum you just closed via acp and try to reply or quick reply.... You can not reply... thats what I am talking about, I want member to be able to reply.
Sorry
Lynne
12-13-2012, 05:46 PM
Ah, I see, I thought you were just not allowing usergroups to post in there (even though you did state exactly what you meant in your first post - my bad!). I don't see how you can do this with the forum closed. If you simply didn't allow users to post threads in there, then you would be able to allow them to post, but not with the way you have it. You'd have to use a modification of some sort to do what you want with the forum closed.
blind-eddie
12-13-2012, 10:49 PM
Yes, I did not word my first post correctly...
I guess I will have figure out how to hide the new thread button in that forum and show my linked button.., I only want members to reply to threads that are automatically created via submitted form.
My next adventure begins.... Thanks Lynne!
--------------- Added 1355459067 at 1355459067 ---------------
I got it... no plugin required.
I looked at the Vbulletin 3.8 Conditionals List on vb.com & found what I was looking for.
For those that want to hide the "New Thread" Button in certain forum you will need to edit the FORUMDISPLAY template. (Backup your template before you edit it)
There will be two instances of the following.
Find:
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td>
Replace with:
<if condition="$forumid != 6">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /> </if></td></if>
The only change in the code is the if conditional.
Also, my forum id is 6 that I want to hide the New Thread Buttons, change that number to the forum ID you want to hide the New Thread button in...
Thank You for your replies...
blind-eddie
12-15-2012, 02:07 AM
OK Lynne, I went a step further and hid the edit button in postbit in all the forums that use a form to generate threads. If I allow OP to edit his/her post, they will see the output of the form and really confuse them & they could mess it all up... But using the code below to hide the edit button also stops Admin & moderators the ability to edit the OP and all other post as well.
<if condition="in_array($forumid, array(X,Y,Z))">
I have searched vbulletin conditionals but can't find a way to allow the edit button on on those forums to be seen by admin & moderators....
Any ideas?
This is postbit_legacy template, edit.gif section with the conditional added to hide the edit button.
Added quote brackets for better viewing.
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
<if condition="!in_array($forum['forumid'], array(137,138,141,142,143))"><a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if></if>
Thank you
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.