phpBB

Development Wiki

Viewonline Template Variables

From phpBB Development Wiki

Revision as of 20:46, 24 February 2011 by Prototech (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Default Mode

Corresponding template files: viewonline_body.html

General Variables

Variable Description Raw Code Example Rendered Example
LEGEND Type: String
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_SWITCH_GUEST_DISPLAY Type: Conditional language string
Returns Display guests or Hide guests based on the current guest visibility status.
  Display guests  
META Type: String
Meta refresh.
  <meta http-equiv="refresh" content="60;url=http://localhost/phpBB3/viewonline.php?sg=0&sk=b&sd=d&start=0" />  
ON_PAGE Type: Integer
Current page number.
  1  
PAGE_NUMBER Type: Language string
Current page.
  Page <strong>1</strong> of <strong>2</strong>  
Page 1 of 2
PAGINATION Type: String
Pagination HTML.
  <strong>1</strong><span class="page-sep">, </span><a href="./viewonline.php?sg=0&sk=b&sd=d&start=25">2</a>  
S_SWITCH_GUEST_DISPLAY Type: Boolean
Returns true if guests listings are enabled.
  1  
TOTAL_GUEST_USERS_ONLINE Type: Language string
Total number of guests online.
  There are 0 guest users online  
TOTAL_REGISTERED_USERS_ONLINE Type: Language string
Total number of registered users online.
  There is 1 registered user and 0 hidden users online  
U_SORT_LOCATION Type: URL
Sort users by their location in the board.
  ./viewonline.php?sk=c&sd=a&sg=0  
U_SORT_UPDATED Type: URL
Sort users by last time updated.
  ./viewonline.php?sk=b&sd=a&sg=0  
U_SORT_USERNAME Type: URL
Sort users by username.
  ./viewonline.php?sk=a&sd=a&sg=0  
U_SWITCH_GUEST_DISPLAY Type: URL
Returns a URL to hide or display guests on the list based on the current guest visibility status.
  ./viewonline.php?sg=1  


user_row Block

Variable Description Raw Code Example Rendered Example
FORUM_LOCATION Type: Language string
Current location of the user in the board.
  Viewing who is online  
LASTUPDATE Type: Language string
Time on which the data was last updated.
  Sun Dec 19, 2010 9:48 pm  
S_GUEST Type: Boolean
Returns true if the user is a guest.
  0  
S_LAST_ROW Type: Boolean
Returns true if the row is the last iteration of the block.
  1  
S_ROW_COUNT Type: Integer
Current row iteration count. The first row is 0.
  0  
S_USER_HIDDEN Type: Boolean
Returns true if the user has hidden his online status.
  0  
S_USER_TYPE Type: Integer
User type.

0 - Normal
1 - Inactive
2 - Bot
3 - Founder

  3  
USERNAME Type: String
Username.
  x14  
USERNAME_COLOUR Type: String
User color.
  AA0000  
USERNAME_FULL Type: String
Returns an HTML tag for the username (anchor or span depending on whether the user's profile is accessible) with the user color assigned as an inline style.
  <a href="./memberlist.php?mode=viewprofile&u=56" style="color: #AA0000;" class="username-coloured">x14</a>  
x14
USER_BROWSER Type: String
User's browser agent.
  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13  
USER_IP Type: String
User's IP.
  127.0.0.1  
U_FORUM_LOCATION Type: URL
Current location of the user in the board.
  ./viewonline.php  
U_USER_IP Type: URL
View the user's IP details.
  ./viewonline.php?mode=lookup&s=ede34833a00079ee99c6d39d36877d68&sg=0&start=0&sk=b&sd=d  
U_USER_PROFILE Type: URL
View the user's profile.
  ./memberlist.php?mode=viewprofile&u=56  
U_WHOIS Type: URL
View detailed Who is information.
  ./viewonline.php?mode=whois&s=ede34833a00079ee99c6d39d36877d68  


Whois Mode

Accessed via {user_row.U_WHOIS}.


Corresponding template files: viewonline_whois.html

General Variables

Variable Description Raw Code Example Rendered Example
WHOIS Type: String
Who is data.
  # # Query terms are ambiguous. The query is assumed to be: # "n 127.0.0.1" # # Use "?" to get help. # # # The following results may also be obtained via: # <!-- m --><a href="http://whois.arin.net/rest/nets;q=127.0.0.1?showDetails=true&showARIN=false">http://whois.arin.net/rest/nets;q=127.0 ... ARIN=false</a><!-- m --> # NetRange: 127.0.0.0 - 127.255.255.255 CIDR: 127.0.0.0/8 OriginAS: NetName: SPECIAL-IPV4-LOOPBACK-IANA-RESERVED NetHandle: NET-127-0-0-0-1 Parent: NetType: IANA Special Use Comment: This block is assigned for use as the Internet Comment: host loopback address. Datagrams sent to Comment: addresses anywhere within this block loops back Comment: inside the host. Many implementation only Comment: support this for 127.0.0.1. This block was Comment: assigned by the IETF in the Standard document, Comment: RFC 1122 and is further documented in the Best Comment: Current Practice document RFC 5735. These Comment: documents can be found at: Comment: <!-- m --><a href="http://www.rfc-editor.org/rfc/rfc1122.txt">http://www.rfc-editor.org/rfc/rfc1122.txt</a><!-- m --> Comment: <!-- m --><a href="http://www.rfc-editor.org/rfc/rfc5735.txt">http://www.rfc-editor.org/rfc/rfc5735.txt</a><!-- m --> RegDate: Updated: 2010-04-14 Ref: <!-- m --><a href="http://whois.arin.net/rest/net/NET-127-0-0-0-1">http://whois.arin.net/rest/net/NET-127-0-0-0-1</a><!-- m --> OrgName: Internet Assigned Numbers Authority OrgId: IANA Address: 4676 Admiralty Way, Suite 330 City: Marina del Rey StateProv: CA PostalCode: 90292-6695 Country: US RegDate: Updated: 2004-02-24 Ref: <!-- m --><a href="http://whois.arin.net/rest/org/IANA">http://whois.arin.net/rest/org/IANA</a><!-- m --> OrgAbuseHandle: IANA-IP-ARIN OrgAbuseName: Internet Corporation for Assigned Names and Number OrgAbusePhone: +1-310-301-5820 OrgAbuseEmail: <!-- e --><a href="mailto:abuse@iana.org">abuse@iana.org</a><!-- e --> OrgAbuseRef: <!-- m --><a href="http://whois.arin.net/rest/poc/IANA-IP-ARIN">http://whois.arin.net/rest/poc/IANA-IP-ARIN</a><!-- m --> OrgTechHandle: IANA-IP-ARIN OrgTechName: Internet Corporation for Assigned Names and Number OrgTechPhone: +1-310-301-5820 OrgTechEmail: <!-- e --><a href="mailto:abuse@iana.org">abuse@iana.org</a><!-- e --> OrgTechRef: <!-- m --><a href="http://whois.arin.net/rest/poc/IANA-IP-ARIN">http://whois.arin.net/rest/poc/IANA-IP-ARIN</a><!-- m --> # # ARIN WHOIS data and services are subject to the Terms of Use # available at: <!-- m --><a href="https://www.arin.net/whois_tou.html">https://www.arin.net/whois_tou.html</a><!-- m --> #