Difference between revisions of "Mark online"

From cm2.liecourt.com
Line 1: Line 1:
 
{{#vardefine:@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:@useronlinesince}} }} }}<!--  
 
   -->{{#vardefine:@useronlinesince-unixtimestamp|{{#time: U | {{#var:@useronlinesince}} }} }}<!--  
Line 8: Line 8:
 
   -->|{{#vardefine:@onlinerecently|No}}<!--
 
   -->|{{#vardefine:@onlinerecently|No}}<!--
 
   -->}}<!--
 
   -->}}<!--
-->}}
+
-->}}<!--
  
{{#ifeq: {{#var: @onlinerecently}} | Yes <!--  
+
-->{{#ifeq: {{#var: @onlinerecently}} | Yes <!--  
 
  -->|<!--  
 
  -->|<!--  
  -->{{#vardefine:@buttontext | {{Fa|toggle-off}} Mark offline}}<!--  
+
  -->{{#vardefine:@buttontext | {{Fa|toggle-off|text-warning}} Mark offline}}<!--  
 
  -->{{#vardefine:@marktimestamp | now - 1 hour}}<!--
 
  -->{{#vardefine:@marktimestamp | now - 1 hour}}<!--
 
  -->|<!--  
 
  -->|<!--  
  -->{{#vardefine:@buttontext | {{Fa|toggle-on}} Mark online}}<!--  
+
  -->{{#vardefine:@buttontext | {{Fa|toggle-on|text-success}} Mark online}}<!--  
 
  -->{{#vardefine:@marktimestamp | now }}<!--
 
  -->{{#vardefine:@marktimestamp | now }}<!--
-->}}
+
-->}}<!--
{{#vardefine:@timestamp|<nowiki>{{subst:#time: r | </nowiki>{{#var:@marktimestamp}}<nowiki>}}</nowiki>}}
 
  
<wsform action="addToWiki"><!--   
+
-->{{#vardefine:@timestamp|<nowiki>{{subst:#time: r | </nowiki>{{#var:@marktimestamp}}<nowiki>}}</nowiki>}}<!--
--><wsedit target="{{PAGEID:User:{{CURRENTLOGGEDUSER}} }}" formfield="Online since" template="User"  value="{{#var:@timestamp}}" /><!--
+
--><wsform action="addToWiki"><!--   
-->{{#widget: Link
+
--><wsedit target="{{PAGEID:User:{{CURRENTLOGGEDUSER}} }}" formfield="Online since" template="User"  value="{{#var:@timestamp}}" /><!--
 +
-->{{#widget: Link
 
|type=button
 
|type=button
|class=btn-success
+
|class=btn btn-default color-blue
 
|style=
 
|style=
 
|text={{#var:@buttontext}}
 
|text={{#var:@buttontext}}

Revision as of 12:26, 9 June 2021

Expression error: Unexpected < operator.