inherit
252842
0
Oct 15, 2018 6:17:19 GMT -8
kosamk
12
February 2018
kosamk
|
Post by kosamk on Feb 10, 2018 3:08:42 GMT -8
Hey ,i would like to ask you to give me this (( its on layout templates mini profile)) : If user is online : Status: Online If user is offline : Status: Offline The blue color id : 4ca7ca The green color name : lime The red color name : red
|
|
inherit
252842
0
Oct 15, 2018 6:17:19 GMT -8
kosamk
12
February 2018
kosamk
|
Post by kosamk on Feb 10, 2018 15:01:35 GMT -8
Yo? Anyone can help me?
|
|
Kami
Forum Cat
Posts: 40,204
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,204
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Feb 11, 2018 11:29:36 GMT -8
A simple "bump" would suffice, really. I'm certain that's not your intent, but this comes across as rude especially since a) it's the weekend, and b) we are all volunteers and aren't obligated to help you.
The best way to do this would be to use conditional statements and CSS.
In your layout templates, try this:
<span class="status-text">Status:</span> {if $[user.is_online]}<span class="status-online">Online</span> {else}<span class="status-offline">Offline</span> {/if}
Then in your CSS (admin > themes > advanced styles & css > stylesheet (tab)), scroll to the bottom and add this (note that I converted lime and red to their hexadecimal [or as you put it, "colour id"] values):
/* ==== Online / Offline Text Colour ==== */ .status-text { color: #4ca7ca; }
.status-online { color: #00FF00; }
.status-offline { color: #FF0000; } /* ====================================== */
|
|
Former Member
inherit
guest@proboards.com
252794
0
Dec 4, 2024 16:08:27 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 3, 2018 10:45:43 GMT -8
A simple "bump" would suffice, really. I'm certain that's not your intent, but this comes across as rude especially since a) it's the weekend, and b) we are all volunteers and aren't obligated to help you. The best way to do this would be to use conditional statements and CSS. In your layout templates, try this: <span class="status-text">Status:</span> {if $[user.is_online]}<span class="status-online">Online</span> {else}<span class="status-offline">Offline</span> {/if}
Then in your CSS ( admin > themes > advanced styles & css > stylesheet (tab)), scroll to the bottom and add this (note that I converted lime and red to their hexadecimal [or as you put it, "colour id"] values): /* ==== Online / Offline Text Colour ==== */ .status-text { color: #4ca7ca; }
.status-online { color: #00FF00; }
.status-offline { color: #FF0000; } /* ====================================== */Thanks Files
|
|