The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Option "completly hide an ignored user's post"
I know I can just delete all the content of the postbit_ignore template and that will mean my users don't see anything when a person on their ignore list posts. But what I want to do is give them this as an option.
I've done this with threads by adding the following to the threadbits template <if condition="($vbulletin->userinfo['field12'] == 'Yes') AND $ignore[ $thread['postuserid'] ]"> Do my ignore stuff <else /> Standard threadbit </if> However I don't seem to be able to use the same code (adjusted for the custom profile field) in postbit_ignore? Any suggestions how I could do this i.e. check if a member wants to display either nothing or the standard ignore template depending on a custom profile field? |
#2
|
||||
|
||||
You should just have to check the profile field value and not the ignore value because the template will only show if the post is supposed to be ignored.
So: Code:
<if condition="($vbulletin->userinfo['field12'] == 'Yes') "> Stuff Here <else /> Other Stuff Here </if> |
#3
|
|||
|
|||
Duh! Of course!!!
Thanks - I've been trying to work this out for ages - totally not seeing the blatantly obvious! I'll go and sit in the corner with my dunces cap on. |
#4
|
||||
|
||||
My pleasure We all miss the obvious sometimes. That's why we have each other for backup.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|