vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Infractions (https://vborg.vbsupport.ru/showthread.php?t=273995)

Mentch 11-14-2011 02:48 PM

Infractions
 
We have a page outisde of vbulletin where we display users infractions. It used to work great and still does except every infraction shows as being a custom one. We used the field from the db (customreason) however it doesn't appear anything is being input into that field any longer.

Did something change with how infractions work?? If so how can I get the infraction reason since it is not stored in the db.

Lynne 11-14-2011 09:11 PM

It's hard to tell what is wrong with the code when you haven't posted it up. Also, you asked if anything changed... well, between when and when? I mean, at version did it work and at what version does it now not work?

Mentch 11-14-2011 09:48 PM

There really isnt any code to review. In the db (forums.infraction) it doesn't contain anything as to what the infraction is (the reason). There is a field for customreason which is where the information was (which I am not sure as to when it broke and if it was related to an update or not).

The question is how can you get the infraction reason, or is it supposed to be in the field, customreason.

Were currently running 3.8.6

Lynne 11-14-2011 10:24 PM

You mean you want to know if they were infracted for Spamming or Inappropriate language or... whatever your infractions are? You need to look at the column for infractionlevelid. And then look at the phrase infractionlevelXXXX_title where XXXX is the infractionlevelid - ie infractionlevel1_title or infractionlevel2_title etc.

Mentch 11-15-2011 12:31 AM

When I print out what is in $vbphrase I only get what is in the global phrases. Is there another variable for the other phrases??

--------------- Added [DATE]1321323208[/DATE] at [TIME]1321323208[/TIME] ---------------

I just decided to query the database for the information it was easier than using the phrases since I was on a non vb page anyway.

Thanks for the help.


All times are GMT. The time now is 08:00 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.01531 seconds
  • Memory Usage 1,712KB
  • 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
  • (5)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