PHP Bulletin Board Home
News About Home
Features of phpBB Test drive phpBB Downloads Support for phpBB The phpBB Community Styles for customising phpBB 3rd party modifications to phpBB

Support Home | Knowledge Base Home | Submit Article | Search Articles | Browse Articles
 List of tpl files 
Description: List of tpl files with explanation what file is used for.
Author: CyberAlien
Date: Thu Apr 15, 2004 7:17 pm
Type: Info
Keywords: tpl, template, templates
Category: Styles
Hello,

This document explains what each tpl file is used for.

First let me explain how phpBB templates are used. Every page generated by phpBB consists of at least 3 templates. Every page has header, content and footer. For main pages header is always overall_header.tpl and footer is always overall_footer.tpl, for popups and topic review header is simple_header.tpl and footer is simple_footer.tpl. Between contents of those files phpBB puts content of current page. Also sometimes phpBB puts other files before content page, like error_body.tpl when there is error.

Here is list of all tpl files (in alphabetical order):

  • agreement.tpl - Registration agreement. It is shown when user clicks on "register" link.
  • bbcode.tpl - All html for bbcode. This is non-standard tpl file and it is parsed differently, so syntax in that tpl file is slightly different.
  • confirm_body.tpl - Confirmation window. It is used when you need to confirm something, like for example deleting topic.
  • error_body.tpl - Error. It is used to show errors. For example, when you register and forgot to enter username this template will be used to show error. This template is usually used with some other tpl file (for example for registration page it is used with profile_add_body.tpl)
  • faq_body.tpl - FAQ page.
  • groupcp_info_body.tpl - Information about usergroup. Click on "usergroups" button on forum, select group, click on "view information" and it will show group information using this tpl file.
  • groupcp_pending_info.tpl - List of pending users. Moderators see this template when they view some usergroup that has pending members.
  • groupcp_user_body.tpl - List of usergroups. Click on "usergroups" button on forum and you'll see content generated by this template.
  • index_body.tpl - Main page. Used for forum index.
  • jumpbox.tpl - Jumpbox template. This is a small jumpbox that allowes to quickly select forum. Go to any forum and you'll see example of usage of this tpl file on bottom of page where you can select forum. Usually that template is shown as select input with "go" button.
  • login_body.tpl - Login page. Click on "login" button on top of forum and you'll see page generated by this template.
  • memberlist_body.tpl - List of users. Click on "memberlist" button on top of forum and you'll see page generated by this template.
  • message_body.tpl - Generic message. This template is used everywhere. For example, when you post it shows message "click here to go to your post" or when you change your profile it shows message "your profile was modified".
  • modcp_body.tpl - Moderator control panel main page. Go to some forum where you are moderator, on bottom of page where permissions are click on "moderate" link and you'll see page generated by this template.
  • modcp_move.tpl - Move thread. Go to some thread that you can moderate, on bottom click on "move" button and it will show you page generated by this template.
  • modcp_split.tpl - Split thread. Go to some thread that you can moderate, on bottom click on "split" button and it will show you page generated by this template.
  • modcp_viewip.tpl - View IP. Go to some thread that you can moderate, on every post you'll see "IP" button. Click on that button and you'll see page generated by this template.
  • overall_footer.tpl - Main footer. Used with overall_header.tpl for all main forum pages.
  • overall_header.tpl - Main header. Used with overall_footer.tpl for all main forum pages.
  • posting_body.tpl - Posting page. Used when you are posting some thread or when you are posting private message.
  • posting_poll_body.tpl - Posting poll page. This is a part of posting_body.tpl that is shown only when you are allowed to start polls.
  • posting_preview.tpl - Preview post. When you are posting click on "preview" button and you'll see post preview - that preview is generated by this template. For private messages privmsgs_preview.tpl is used instead of this template.
  • posting_smilies.tpl - Smilies popup. This template is shown when you click on "more smilies" link when posting. It is used in popup and for header/footer phpBB uses simple_header.tpl and simple_footer.tpl
  • posting_topic_review.tpl - Topic review. This is used when you are posting reply to some thread. It shows you previous posts.
  • privmsgs_body.tpl - Private messages. It shows list of private messages. Click on "private messages" button on top of forum and you'll see page generated by this template.
  • privmsgs_popup.tpl - Private message notification. This page is used in popup that you see when new private message arrives. To see this popup you should enable popups in your profile and you should receive new private message. Header/footer for this page are simple_header.tpl and simple_footer.tpl
  • privmsgs_preview.tpl - Private message preview. This page is used to show preview when you are posting new private message. Click on "preview" button and you'll see it. This is similar to posting_preview.tpl
  • privmsgs_read_body.tpl - Private message. It shows contents of a private message.
  • profile_add_body.tpl - Profile and registration page. This template is used when you are editing your profile and when new user tries to register.
  • profile_avatar_gallery.tpl - Avatars gallery. This template is shown when you browse avatar gallery when editing your profile.
  • profile_send_email.tpl - Send email. This is mail form that is shown when you click on "email" button for some user and email via board is enabled.
  • profile_send_pass.tpl - Send password. This is used when you forgot your password and try to get yourself new password.
  • profile_view_body.tpl - Profile. This page shows profile of a user. Click on "profile" button for any user (or on username on some pages) and you'll see user's profile - that profile is shown with this template.
  • search_body.tpl - Search. This is main search page.
  • search_results_posts.tpl - Search results. This template is shown when you search and select to show results as posts.
  • search_results_topics.tpl - Search results. This template is shown when you search and select to show results as topics.
  • search_username.tpl - Search username popup. This template is shown when you are searching for some user. You can see it in private messages when you posting new private message and click on "find user" button. Header/footer for this template are simple_header.tpl/simple_footer.tpl
  • simple_footer.tpl - Footer for popups and topic review. Used with simple_header.tpl
  • simple_header.tpl - Header for popups and topic review. Used with simple_footer.tpl
  • subSilver.cfg - Style configuration file. It is a php file and it is executed every time style is initialized. Usually it contains list of predefined images.
  • subSilver.css - Style css. For subSilver it isn't used and style is in overall_header.tpl instead.
  • theme_info.cfg - Style configuration file. It is a php file that contains style data. It is used only when you install style.
  • viewforum_body.tpl - Forum. This template is used to show forum page.
  • viewonline_body.tpl - Online users. This template is used to show list of online users. On main page where list of online users is click on caption and you'll see complete list - that complete list is generated by this template.
  • viewtopic_body.tpl - Topic. This template is used to show topic.
  • viewtopic_poll_ballot.tpl - Poll. This template is used to show poll inside topic. It contains radio inputs where you can select option.
  • viewtopic_poll_result.tpl - Poll. This template is used to show poll inside topic. It contains results of poll where you already voted.

Username: Password:
News | Features | Demo | Downloads | Support | Community | Styles | Mods | Links | Merchandise | About | Home
 © Copyright 2002 The phpBB Group.