Difference between revisions of "Mark online"

From cm2.liecourt.com
Line 1: Line 1:
{{#vardefine:@useronlinesince|{{#show:User:{{CURRENTLOGGEDUSER}}|?Online since}} }}<!--
+
{{#vardefine:@onlinerecently|{{Online recently}} }}<!--  
-->{{#if:{{#var:@useronlinesince}}|<!--
+
 
  // User has an online status
 
  -->{{#vardefine:@useronlinesince-unixtimestamp|{{#time: U | {{#var:@useronlinesince}} }} }}<!--
 
  -->{{#vardefine:@onehourago-unixtimestamp|{{#time: U | now - 1 hour }} }}<!--
 
  -->{{#ifexpr: {{#var:@useronlinesince-unixtimestamp}} > {{#var:@onehourago-unixtimestamp}}<!--
 
  -->|{{#vardefine:@onlinerecently|Yes}}<!--
 
  -->|{{#vardefine:@onlinerecently|No}}<!--
 
  -->}}<!--
 
-->}}<!--
 
  
 
-->{{#ifeq: {{#var: @onlinerecently}} | Yes <!--  
 
-->{{#ifeq: {{#var: @onlinerecently}} | Yes <!--  

Revision as of 13:48, 11 June 2021