UPB2 Template Variables
From MyUPBWiki
Notes about the required update: "Global Variables" section has no useful information. Comments needed on template variables to give modders a better idea of what ech is Here is a quick reference to all the variables available to you in the template. I will try and comment them as much as I can.
Contents |
Global Variables
These variables are set in every page (most likly because they exist in header.tpl or footer.tpl)
Per-file Variables
Here is a per-file listing of all the available variables in the templates.
index.tpl
skin
users_online
members_online
guests_online
members_list
online_record
online_record_time
topics
posts
num_members
latest_member_id
latest_member
page_views
stat_hits_record
stat_time_record
render_time
BLOCK Announcements
announceContent
BLOCK NoCats
msg
add_cat
BLOCK SortWarning
msg
BLOCK CatsList
CatName
CatCont
footer.tpl
skin
upb_version
render_time
header.tpl
title
skin
loginout
user
breadcrumb
user_message
BLOCK MetaRedirect
time
url
BLOCK BlockHeaderStart
before
BLOCK BlockHeaderEnd
BLOCK BlockFooter
after
BLOCK pmLink
new_pm
BLOCK loginLink
BLOCK adminLink
index_forumlist.tpl
BLOCK ForumEntry
skin
icon
id
forum
des
mod
topics
posts
when
viewforum.tpl
pagination
ForumName
paginationBtm
BLOCK NewTopic
id
t
t_id
skin
BLOCK Topic
icon
fid
tid
subject
starter
replies
views
time
userid
latest_user
BLOCK NewTopicBtm
id
t
t_id
skin
login.tpl
BLOCK LoginError
msg
BLOCK LoginSuccess
user
BLOCK LoginBlock
u_name
u_pass
rememberme
