Difference between revisions of "Mark online"

From cm2.liecourt.com
Line 1: Line 1:
{{#vardefineecho:@useronlinesince|{{#show:User:{{CURRENTLOGGEDUSER}}|?Online since}} }}<!--  
+
{{#vardefine:@useronlinesince|{{#show:User:{{CURRENTLOGGEDUSER}}|?Online since}} }}<!--  
 
  -->{{#if:{{#var:@useronlinesince}}|<!--
 
  -->{{#if:{{#var:@useronlinesince}}|<!--
 
   // User has an online status
 
   // User has an online status
   -->{{#vardefine:@useronlinesince-unixtimestamp|{{#time: U | {{#var:@onlinesince}} }} }}<!--  
+
   -->{{#vardefine:@useronlinesince-unixtimestamp|{{#time: U | {{#var:@useronlinesince}} }} }}<!--  
 
   -->{{#vardefine:@onehourago-unixtimestamp|{{#time: U | now - 1 hour }} }}<!--  
 
   -->{{#vardefine:@onehourago-unixtimestamp|{{#time: U | now - 1 hour }} }}<!--  
   -->{{#ifexpr: {{#var:@useronlinesince-unixtimestamp}} > {{#var:@onehourago-unixtimestamp}}|<!--  
+
   -->{{#ifexpr: {{#var:@useronlinesince-unixtimestamp}} > {{#var:@onehourago-unixtimestamp}}<!--
   -->Online since less than an hour ago<!--  
+
  -->|Online online recently<!--
 +
   -->|User not online recently<!--
 
   -->}}<!--
 
   -->}}<!--
 
  -->}}
 
  -->}}
  
  
{{#vardefineecho:@timestamp|<nowiki>{{subst:#time: r | now - 2 hours }}</nowiki>}}
+
{{#vardefineecho:@timestamp|<nowiki>{{subst:#time: r | now - 1 hour }}</nowiki>}}
  
 
<wsform action="addToWiki"><!--   
 
<wsform action="addToWiki"><!--   

Revision as of 11:55, 9 June 2021

Expression error: Unexpected < operator.


{{subst:#time: r | now - 1 hour }}