phpBB

Development Wiki

Index Template Variables

From phpBB Development Wiki

Corresponding template files: index_body.html, forumlist_body.html

General Variables

Variable Description Raw Code Example Rendered Example
BIRTHDAY_LIST Type: String
List of birthdays occurring today.
  <a href="./memberlist.php?mode=viewprofile&u=14">John Doe</a>, <a href="./memberlist.php?mode=viewprofile&u=54">BertieZilla</a> (6), <a href="./memberlist.php?mode=viewprofile&u=62">Bob Smith</a> (61)  
John Doe, BertieZilla (6), Bob Smith (61)
FORUM_IMG Type: Image
Normal forum.
  <img src="./styles/prosilver/imageset/forum_read.gif" width="27" height="27" alt="No unread posts" title="No unread posts" />  
http://www.phpbb.com/community/styles/prosilver/imageset/forum_read.gif
FORUM_LOCKED_IMG Type: Image
Locked forum.
  <img src="./styles/prosilver/imageset/forum_read_locked.gif" width="27" height="27" alt="No unread posts [ Locked ]" title="No unread posts [ Locked ]" />  
http://www.phpbb.com/community/styles/prosilver/imageset/forum_read_locked.gif
FORUM_UNREAD_IMG Type: Image
Normal forum containing unread posts.
  <img src="./styles/prosilver/imageset/forum_unread.gif" width="27" height="27" alt="Unread posts" title="Unread posts" />  
http://www.phpbb.com/community/styles/prosilver/imageset/forum_unread.gif
FORUM_UNREAD_LOCKED_IMG Type: Image
Locked forum containing unread posts.
  <img src="./styles/prosilver/imageset/forum_unread_locked.gif" width="27" height="27" alt="Unread posts [ Locked ]" title="Unread posts [ Locked ]" />  
http://www.phpbb.com/community/styles/prosilver/imageset/forum_unread_locked.gif
LAST_POST_IMG Type: Image
Last post icon. Defined as img_icon_topic_latest in imageset.cfg.
  <img src="./styles/prosilver/imageset/icon_topic_latest.gif" width="11" height="9" alt="View the latest post" title="View the latest post" />  
http://www.phpbb.com/community/styles/prosilver/imageset/icon_topic_latest.gif
LEGEND Type: String
Who is online group legend.
  <a style="color:#AA0000" href="./memberlist.php?mode=group&g=5">Administrators</a>, <a style="color:#00AA00" href="./memberlist.php?mode=group&g=4">Global moderators</a>  
Administrators , Global moderators
L_SUBFORUM Type: Conditional language string
Returns the singular or plural form of Subforum based on the number of visible forums.
  Subforums  
NEWEST_USER Type: Language string
Newest registered user on the board.
  Our newest member <strong><a href="./memberlist.php?mode=viewprofile&u=56" style="color: #AA0000;" class="username-coloured">x14</a></strong>  
Our newest member x14
S_DISPLAY_BIRTHDAY_LIST Type: Boolean
Returns true if the birthday list is enabled.
  1  
S_HAS_SUBFORUM Type: Boolean
Returns true if there are any visible forums.
  1  
TOTAL_POSTS Type: Language string
Total number of posts on the board.
  Total posts <strong>46</strong>  
Total posts 46
TOTAL_TOPICS Type: Language string
Total number of topics on the board.
  Total topics <strong>25</strong>  
Total topics 25
TOTAL_USERS Type: Language string
Total number of active users on the board.
  Total members <strong>5</strong>  
Total members 5
UNAPPROVED_IMG Type: Image
Unapproved post icon. Defined as img_icon_topic_unapproved in imageset.cfg.
  <img src="./styles/prosilver/imageset/icon_topic_unapproved.gif" width="16" height="14" alt="At least one topic in this forum has not been approved." title="At least one topic in this forum has not been approved." />  
http://www.phpbb.com/community/styles/prosilver/imageset/icon_topic_unapproved.gif
U_MARK_FORUMS Type: URL
Mark all of the forums as read.
  ./index.php?hash=31919aef&mark=forums  
U_MCP Type: URL
Moderator Control Panel.
  ./mcp.php?i=main&mode=front&sid=ede34833a00079ee99c6d39d36877d68  

forumrow Block

See: Forumrow Template Variables