PDA

View Full Version : Option "completly hide an ignored user's post"


Darat
04-11-2006, 12:20 PM
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?

amykhar
04-11-2006, 12:27 PM
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:

<if condition="($vbulletin->userinfo['field12'] == 'Yes') ">
Stuff Here
<else />
Other Stuff Here
</if>

Darat
04-11-2006, 12:32 PM
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.

amykhar
04-11-2006, 12:39 PM
My pleasure :) We all miss the obvious sometimes. That's why we have each other for backup.