The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
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?
|
#3
|
|||
|
|||
![]()
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 |
#4
|
||||
|
||||
![]()
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.
|
#5
|
|||
|
|||
![]()
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. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|