PDA

View Full Version : What variables are available in infraction_received_post phrase


sarahk
03-17-2010, 01:24 AM
Hi

I want to change the private message that is sent when a user receives an email.

None of the existing phrases seem to mention the expiry duration of the infraction so I can't just copy. I figured the field name when I'm setting them up is expires but that doesn't seem to work.

Where do we go to find the variables that we can use?

vB default:
This infraction is worth $infraction[points] point(s) and may result in restricted access until it expires. Serious infractions will never expire.
What we want:
This infraction is worth $infraction[points] point(s) and may result in restricted access until it expires in $infraction[expires].

Marco van Herwaarden
03-17-2010, 11:03 AM
Do a dump of the $infraction array to see what is available.

sarahk
03-17-2010, 05:57 PM
Do a dump of the $infraction array to see what is available.From my experience the variables available differ significantly from template to template so I imagine the same goes for phrases. How do I do a dump from within a phrase?

Marco van Herwaarden
03-20-2010, 12:34 PM
Check the phrasegroups loaded.