The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Check if user has permission to post in forum
I'm looking for a conditional to check if a user has permission to post in a certain forum.
My goal is to show a message to members where the 'post thread' button would be for users who don't have permission to post in a certain forum. One of my forum's sections is a paid section for upgraded members only, and I'd like to show a 'you must upgrade your account to post here' message. |
#2
|
|||
|
|||
You might be able to use $show['newthreadlink'].
|
#3
|
|||
|
|||
That's what the template already uses. I'm using vb 4.1.12.
It says if condition shownewthreadlink I was thinking underneath that if statement I could add something, like an additional statement to would show the message I described. Can I just add a ! to the condition like !$showthreadlink in an additional if statement underneath? |
#4
|
|||
|
|||
Quote:
Code:
<vb:if condition="$show['newthreadlink']"> Show Link <vb:else /> Show message </vb:if> either way you get the same result. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|