vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What variables are available in infraction_received_post phrase (https://vborg.vbsupport.ru/showthread.php?t=238446)

sarahk 03-17-2010 01:24 AM

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:
Quote:

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:
Quote:

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

Quote:

Originally Posted by Marco van Herwaarden (Post 2005419)
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.


All times are GMT. The time now is 08:28 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.01306 seconds
  • Memory Usage 1,714KB
  • 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
  • (3)bbcode_quote_printable
  • (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