inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Dec 2, 2016 16:38:32 GMT -8
Sorry I edited the above cause it wasn't working. This was my end output with the if/else statements. was able to get the guest chatbox and the welcome message in there without cluttering it up for members. So, I'm happy but no the other code wasn't working.
|
|
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 Dec 2, 2016 16:46:27 GMT -8
I can't really see that on mobile sorry :( Id be happy to troubleshoot tomorrow if you'd like?
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Dec 2, 2016 21:18:51 GMT -8
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Dec 2, 2016 21:26:00 GMT -8
What other code are you referring to, Tiffy-Bean ? This code worked: {if $[current_user.id] == "1"}$[shoutbox]{elseif $[current_user.id] =="219"}$[shoutbox]{elseif $[current_user.is_guest]}
$[shoutbox]{else}
{/if}
This code did not: {if $[user.group.id] == 1 || $[current_user.is_guest]}
$[shoutbox]
{/if} I ended up breaking down just to the two accounts (user ids) to get it to work instead of using the user grop. Is it because we don't have $[current_user.group.id] as the base? Not sure.
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Dec 2, 2016 21:29:35 GMT -8
YUP! It was that! {if $[current_user.group.id] == 1 || $[current_user.is_guest]}
$[shoutbox]
{/if} completely worked. thanks for all the helps guys!
|
|
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 Dec 2, 2016 21:32:28 GMT -8
YUP! It was that! {if $[current_user.group.id] == 1 || $[current_user.is_guest]}
$[shoutbox]
{/if} completely worked. :) thanks for all the helps guys! DOH what a silly mistake i made! glad you got it!
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Dec 2, 2016 21:35:09 GMT -8
YUP! It was that! {if $[current_user.group.id] == 1 || $[current_user.is_guest]}
$[shoutbox]
{/if} completely worked. thanks for all the helps guys! DOH what a silly mistake i made! glad you got it! We all do it. Me most of all. lol
|
|
inherit
220772
0
Mar 24, 2023 21:43:23 GMT -8
Tiffy-Bean
I support plugin and theme makers rights to create themes and plugins that are paid for.
1,052
April 2015
tiffythecodingwhiz
|
Post by Tiffy-Bean on Dec 2, 2016 21:36:16 GMT -8
|
|
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 Dec 2, 2016 21:40:27 GMT -8
|
|