PDA

View Full Version : test if post has infraction - in postbit


SDB
06-20-2007, 11:49 AM
Hi

Is there a variable somewhere i can test from within the postbit template to see if the post has received an infraction?

If I can get at the infraction reason as well that would be great.

SDB
06-27-2007, 02:49 PM
BTT

ANY help, even towards this would be great.

Incase I wasn't clear.

I want to put some code into the postbit template, which will allow me, through a conditional to determine if the current post has been infracted.

Thanks in advance.

calorie
06-27-2007, 03:05 PM
Go to the vB ACP -> Usergroup Manager -> Edit Usergroup -> User Infraction Permissions and set Can See Others' Infraction Level to yes for your usergroup, and then look at a post with an infraction.

SDB
06-27-2007, 03:57 PM
ah, it may be that i need to revert a template then. Thanks for the pointer :)

hmm

It appears that only tells me if the POSTER has infractions. Not whether that individual post received an infraction.

Any more pointers?

no.. sorry. I'm thick! it gives me exactly what I want! :D

Thanks again