inherit
267692
0
Sept 16, 2024 19:31:14 GMT -8
sgtlazarus
14
March 2023
sgtlazarus
|
Post by sgtlazarus on Aug 30, 2024 4:41:36 GMT -8
I need the code to change the "member is online" text to a custom image please?
|
|
inherit
114253
0
Sept 23, 2024 7:58:54 GMT -8
Teg
Can't Wait for V6
3,157
November 2007
teg
|
Post by Teg on Sept 19, 2024 20:51:35 GMT -8
Hello sgtlazarus , You can do this in the profile and mini profile. Mini ProfileIn the example below, I created a small red place holder image so you can see that it is possible to place an image. To do this in the mini profile, go to Admin > Structure > Layout Templates > Mini ProfileThen find this line of code: {if $[user.is_online]}<br /><span class="italic">Member is Online</span>{/if}
Replace it with this: {if $[user.is_online]}<br /><img src="https://i.ibb.co/VDd70HY/placeholder-for-pb.png" />{/if User ProfileIn the example below, I created a small red place holder image so you can see that it is possible to place an image. To do this in the user profile, go to Admin > Structure > Layout Templates > User ProfileEnsure that the User Profile tab is selected. Find this code: {if $[user.is_online]} Member is Online {else} Last Online: <span class="note">$[user.last_online]</span> {/if} Replace it with: {if $[user.is_online]} <img src="https://i.ibb.co/VDd70HY/placeholder-for-pb.png" /> {else} Last Online: <span class="note">$[user.last_online]</span> {/if}
Then all you need to do is replace the URLs in the <img src=" " /> with the image you'd like to use.
|
|