Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 17 Mar 2010, 02:24
sarahk's Avatar
sarahk sarahk is offline
 
Join Date: Jun 2004
What variables are available in infraction_received_post phrase

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].
__________________
Property Management Services
Simple SEO Blog
Reply With Quote
  #2  
Old 17 Mar 2010, 12:03
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Do a dump of the $infraction array to see what is available.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 17 Mar 2010, 18:57
sarahk's Avatar
sarahk sarahk is offline
 
Join Date: Jun 2004
Originally Posted by Marco van Herwaarden View Post
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?
__________________
Property Management Services
Simple SEO Blog
Reply With Quote
  #4  
Old 20 Mar 2010, 13:34
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Check the phrasegroups loaded.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:14.

Layout Options | Width: Wide Color: