The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Why does "Post New Thread" button appear for usergroup member's that cannot post?
I have a forum called "FAQ" in which I want to restrict all members except Admin from posting new threads.
So for example, members of "Registered Users" should be able to Reply to threads, but not create their own. However, even though I've set up my forum permissions with "Can Post Threads: NO" When I impersonate a user in the "registered users" usergroup, they still see the button "Post New Thread" even though they cannot post. Clicking the button takes them to a permission denied screen. So its confusing the user. Why show the button if you already know they can't post??? So I'm wanting to remove that button for everyone but admin or the admin usergroup. Thanks in advance for the help :-) ~ scott |
#2
|
|||
|
|||
IIRC, you can't remove the button. The best someone can do is click it and see the denied screen. You can write in the forum description for that specific one that "Only Admins can post new threads in this forum."
|
#3
|
|||
|
|||
Thanks Boosted.
How about this: Can I insert some vbulletin code on this template (I have no idea of the syntax, but something like this in PHP): Code:
<?php if (is_forum('FAQ') && !is_user_in('ADMINISTRATORS')) return; else [INSERT BUTTON CODE]; end if; ?> |
#4
|
|||
|
|||
Anyone know the vb code I would need to do this check and in what php script it resides?
I'd really appreciate the help :-) |
#5
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=231525" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=231525</a>
|
#6
|
|||
|
|||
Quote:
Now if anyone happens to know the script that contains the "Post New Thread" button, I'm golden. |
#7
|
||||
|
||||
The other option is to write plugin (you would need to know a little bit of php though). The button has a condition around it based on $show['newthreadlink'], so you could write a plugin that basically sets that variable to false if you are in forumid x and if you are not an admin.
|
#8
|
|||
|
|||
Quote:
Would you happen to have a quick link reference to a tutorial on how to write a most basic VB plugin? Otherwise, I'm fine with wrapping the appropriate script in the conditional check if I can determine which script holds the "Post New Thread" button. I'm starting my search with "forumdisplay.php" and working out from there. |
#9
|
||||
|
||||
I would download a real simply mod from the Add-Ons forum to see some basic plugin code.
PHP Code:
|
#10
|
|||
|
|||
Lynne,
Is there a way to limit this button based on a user's permissions to post. I have several forums where only members of certain groups can post, but others can read. Is there a way to enhance the "condition="$show['newthreadlink']" so that it simply doesn't display the 'New Thread' button based on a user's permission to post there? Thanks in advance |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|