vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   test if post has infraction - in postbit (https://vborg.vbsupport.ru/showthread.php?t=150184)

SDB 06-20-2007 11:49 AM

test if post has infraction - in postbit
 
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


All times are GMT. The time now is 08:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01017 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete