Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Mar 16, 2013 17:54:06 GMT -8
Brilliant, thank you! Now is there any way to get this applied to guest MPs as well? I've fiddled around with $[user]<br /> {if $[user.is_guest]}Guest<br />{/if}
but I am not really sure what it does haha. is_guest isn't a valid variable. If you want to display something for guests only, you'll want to use {if !$[user.is_member]} =] it isn't? I could've sworn that was there when i started messing with the MP template. :S
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Mar 16, 2013 19:27:36 GMT -8
Brilliant, thank you! Now is there any way to get this applied to guest MPs as well? I've fiddled around with $[user]<br /> {if $[user.is_guest]}Guest<br />{/if}
but I am not really sure what it does haha. is_guest isn't a valid variable. If you want to display something for guests only, you'll want to use {if !$[user.is_member]} =] is_guest is the variable used by default, just checked on a reset template. It works though, so it might just be one of those variables that aren't actually listed. To style the guest name, you could add a span with a class you want to it so you'd have <span class="guest-name">Guest</span>. Then you use the same CSS as before but replace a.user-link with span.guest-name
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Mar 16, 2013 19:55:52 GMT -8
is_guest isn't a valid variable. If you want to display something for guests only, you'll want to use {if !$[user.is_member]} =] is_guest is the variable used by default, just checked on a reset template. It works though, so it might just be one of those variables that aren't actually listed. To style the guest name, you could add a span with a class you want to it so you'd have <span class="guest-name">Guest</span>. Then you use the same CSS as before but replace a.user-link with span.guest-name Odd. I thought I'd seen it too, but it definitely doesn't show in the variable list at mine or Kami's forum. =/
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Mar 17, 2013 9:08:20 GMT -8
is_guest is the variable used by default, just checked on a reset template. It works though, so it might just be one of those variables that aren't actually listed. To style the guest name, you could add a span with a class you want to it so you'd have <span class="guest-name">Guest</span>. Then you use the same CSS as before but replace a.user-link with span.guest-name Odd. I thought I'd seen it too, but it definitely doesn't show in the variable list at mine or Kami's forum. =/ There's currently an internal task to update the variable list to reflect what's actually available.
|
|