![]() |
Condition for if user is ignored?
I noticed that by default, ignoring a post doesn't hide things like the avatar of the user, just the message. I'd like to modify this but am unsure where to begin.
Is there a condition that I can use to hide additional elements of users who are ignored? For example: <if condition="$post[ignoreuser]">This person is ignored</if> What's the best way of going about this? Thanks! |
Posts from ignored users use the postbit_ignore template, so you can just change that to look however you want it.
|
I thought that too but either something I have installed is messing with it or it's not working properly. On my site, ignored posts are definitely showing the postbit_legacy template, just without the message part in the middle of each post.
|
Hmm...which vb version do you have? I was look at source for 3.8.3, but maybe it worked differently in older versions.
ETA: In any case if you're using vb3.X, you can just use the $ignore array like: Code:
<if condition="$ignore[$post['userid']]"> |
All times are GMT. The time now is 05:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|