Unofficial SMF API Documentation

./Themes/default/Post.template.php

template_main

function template_main(): void

The main template for the post page.

Integration hooks
integrate_upload_template

template_spellcheck

function template_spellcheck(): void

The template for the spellchecker.

template_quotefast

function template_quotefast(): void

The template for the AJAX quote feature

template_announce

function template_announce(): void

The form for sending out an announcement

template_announcement_send

function template_announcement_send(): void

The confirmation/progress page, displayed after the admin has clicked the button to send the announcement.

template_post_header

function template_post_header(): void

Prints the input fields in the form’s header (subject, message icon, guest name & email, etc.)

Mod authors can use the ‘integrate_post_end’ hook to modify or add to these (see Post.php).

Theme authors can customize the output in a couple different ways:

  1. Change specific values in the $context[‘posting_fields’] array.
  2. Add an ‘html’ element to the ‘label’ and/or ‘input’ elements of the field they want to change. This should contain the literal HTML string to be printed.

See the documentation in Post.php for more info on the $context[‘posting_fields’] array.

Suggest an edit to this page on GitHub